Any help will be appreciated.


I'm having trouble using django-imagekit on AWS, under awslinux. The error 
doesn't make any sense, so I must be missing something in my AWS system 
setup.  This same code base runs fine on CentOS 6 and Ubuntu 16.x.  My 
virtualenv is activated.

This is the error, and the whole stack trace is further below.

File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/imagekit/__init__.py"
, line 2, in <module> 

 from . import conf 

ImportError: cannot import name conf


This doesn't make any sense, because "conf.py" is right there next to 
"__init__.py":

$ ls /home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/
python2.7/dist-packages/imagekit/{__init__.py,conf.py} 

/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/
dist-packages/imagekit/conf.py 

/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/
dist-packages/imagekit/__init__.py



This is from my settings.py:

INSTALLED_APPS = ( 
 "imagekit",
 # many others ...
)



This is from pip freeze:

(www) $ pip freeze | grep image 

django-imagekit==4.0.1 # the same thing happens on 3.2.6





Traceback (most recent call last): 

 File "./manage.py", line 14, in <module> 

 execute_from_command_line(sys.argv) 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/django/core/management/__init__.py"
, line 338, in execute_from_command_line 

 utility.execute() 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/django/core/management/__init__.py"
, line 312, in execute 

 django.setup() 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/django/__init__.py"
, line 18, in setup 

 apps.populate(settings.INSTALLED_APPS) 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/django/apps/registry.py"
, line 85, in populate 

 app_config = AppConfig.create(entry) 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/django/apps/config.py"
, line 87, in create 

 module = import_module(entry) 

 File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in 
import_module 

 __import__(name) 

 File 
"/home/ec2-user/green-here/www.oxfamamerica.org/venv/www/local/lib/python2.7/dist-packages/imagekit/__init__.py"
, line 2, in <module> 

 from . import conf 

ImportError: cannot import name conf


This is my python, in my virtualenv:
(www) $ python -V; which python 
Python 2.7.12 
~/green-here/www.oxfamamerica.org/venv/www/bin/python 


Googling produced a similar report, but that involved mixing python 2.x and 
Python 3.x; I don't have Python 3 installed on my VM instance.

What am I doing wrong?

Thanks,

  ---  Bill

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/424cbcfd-0805-4904-97b6-e6a5d0056e10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to