Giter Site home page Giter Site logo

project-template's People

Contributors

krzysztofmadejski avatar

Watchers

 avatar James Cloos avatar  avatar Piotr Pęczek avatar Alan Zard avatar Radu Stefanescu avatar

Forkers

code4romania

project-template's Issues

pip install -r requirements-dev.txt fails on AttributeError: 'module' object has no attribute 'lru_cache'

Error:

pip install -r requirements-dev.txt
Collecting django~=2.0 (from -r requirements.txt (line 3))
  Using cached Django-2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-CT9vPb/django/setup.py", line 32, in <module>
        version = __import__('django').get_version()
      File "django/__init__.py", line 1, in <module>
        from django.utils.version import get_version
      File "django/utils/version.py", line 61, in <module>
        @functools.lru_cache()
    AttributeError: 'module' object has no attribute 'lru_cache'

This might be the result of running on Python 2.x. Are you sure working on Python 3.5 and you have your virtualenv enabled? Run python --version to check it.

Use following command to create new virtual env:

mkvirtualenv myproject --python=`which python3.5`

ModuleNotFoundError: No module named '_sqlite3'

Error:

$ python manage.py migrate
.....
  File "/usr/local/lib/python3.6/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

Looks like your Python was not compiled with sqlite support. Check https://stackoverflow.com/a/24449632/803174 and https://stackoverflow.com/questions/42766063/python3-6-import-sqlite3-error for more info.

On Ubuntu 17.04 try using python3.5 instead of 3.6. (worked for me).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.