VelinGeorgiev / django-photo-gallery

Responsive Django Image Gallery Site Sample optimized for performance and mobile devices
Apache License 2.0
201 stars 66 forks source link

ImportError: cannot import name 'autodiscover' #1

Closed Gruftgrabbler closed 5 years ago

Gruftgrabbler commented 6 years ago

Hey. I have installed all requirements, but every time i try to run python magage.py runserver I get this Exception. What can I do?

` File "C:\Users\DAVIDW~1\PYCHAR~1\DJANGO~1\GLANGO~1\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "C:\Users\DAVIDW~1\PYCHAR~1\DJANGO~1\GLANGO~1\lib\site-packages\imagekit__init__.py", line 3, in from . import generatorlibrary File "C:\Users\DAVIDW~1\PYCHAR~1\DJANGO~1\GLANGO~1\lib\site-packages\imagekit\generatorlibrary.py", line 1, in from .registry import register File "C:\Users\DAVIDW~1\PYCHAR~1\DJANGO~1\GLANGO~1\lib\site-packages\imagekit\registry.py", line 3, in from .utils import autodiscover, call_strategy_method

ImportError: cannot import name 'autodiscover' ` Thanks. David

VelinGeorgiev commented 6 years ago

@Gruftgrabbler, I updated the sample to python 3.6 and django 2.0.4. Perhaps this is gone for you now?

em1le commented 6 years ago

A similar issue (resolved) can be found there: https://github.com/matthewwithanm/django-imagekit/issues/401

VelinGeorgiev commented 5 years ago

Closing due to lack of response. Feel free to reopen if needed.

Red-origin commented 4 years ago

Uninstall imagekit.