Closed ph448 closed 7 years ago
In the source there is no imagekit/utils/
directory. There is only imagekit/utils.py
. How are you installing django-imagekit
?
I'm using a pip requirements file that, upon closer inspection, had both 'django-imagekit' and 'imagekit' in it. Now the error makes perfect sense and is clearly on my side. Apologies for the noise.
ImportError: cannot import name 'autodiscover' from 'imagekit.utils'
File "C:\Users\Web-01U\Desktop\Model_X\model-x-web\modelX\lock\models\users.py
", line 11, in
in my case there are two lib in pip list one is 'imagekit' the other is 'django-imagekit' so i deleted imagekit then it worked late but i hope you solved your problem
in my case there are two lib in pip list one is 'imagekit' the other is 'django-imagekit' so i deleted imagekit then it worked late but i hope you solved your problem
How did you get this because I have fetched this but I can not locate this
I did and it turns out that it can not work without this
Imagekit is failing for me with the following in either a Python 2.7.12 or 3.5.2 virtualenv or the official Python 2.7.13 Docker container with Python run bare, or a hosted machine I have that has a 2.7.9 venv with --system-site-packages. The error is below is taken from the Docker image
This happens with both 3.2.4 and 3.3 installed via pip. Looking at my /usr/local/lib/python2.7/site-packages/imagekit/ I can see both a utils/ directory and a utils.py, so I thought maybe the import
was ambiguous. If I manually rename utils/ to foo/, my app loads, which seems to confirm this.