django - mportError: PILKit was unable to import the Python Imaging Library. Please confirm it`s installed and available on your current Python path -
everyone. home problem. have django project. project use django-imagekit. if run app command: python3 manage.py runserver - works! but! if use mod_wsgi it:
root@twingo:/home/evgen/twingo/build/env/lib/python3.4/site-packages# tail /var/log/apache2/error.log [fri jun 19 21:13:25.268235 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] .registry import register [fri jun 19 21:13:25.268259 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] file "/home/evgen/twingo/build/env/lib/python3.4/site-packages/imagekit/registry.py", line 3, in <module> [fri jun 19 21:13:25.268388 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] .utils import autodiscover, call_strategy_method [fri jun 19 21:13:25.268414 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] file "/home/evgen/twingo/build/env/lib/python3.4/site-packages/imagekit/utils.py", line 14, in <module> [fri jun 19 21:13:25.268550 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] pilkit.utils import * [fri jun 19 21:13:25.268574 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] file "/home/evgen/twingo/build/env/lib/python3.4/site-packages/pilkit/utils.py", line 6, in <module> [fri jun 19 21:13:25.268752 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] .lib import image, imagefile, stringio, string_types [fri jun 19 21:13:25.268778 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] file "/home/evgen/twingo/build/env/lib/python3.4/site-packages/pilkit/lib.py", line 19, in <module> [fri jun 19 21:13:25.268859 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] raise importerror('pilkit unable import python imaging library. please confirm it`s installed , available on current python path.') [fri jun 19 21:13:25.268898 2015] [wsgi:error] [pid 20907] [remote 91.238.231.242:65535] importerror: pilkit unable import python imaging library. please confirm it`s installed , available on current python path. root@twingo:/home/evgen/twingo/build/env/lib/python3.4/site-packages#
here apache config:
<virtualhost *:80> wsgidaemonprocess twingo python-path=/home/evgen/twingo/build/:/home/evgen/twingo/build/env/lib/python3.4/site-packages/ wsgiprocessgroup twingo wsgiscriptalias / /home/evgen/twingo/build/wsgi.py alias /robots.txt /home/evgen/twingo/build/robots.txt alias /favicon.ico /home/evgen/twingo/build/static/images/favicon.ico alias /media/ /home/evgen/twingo/build/media/ alias /static/ /home/evgen/twingo/build/static/ <directory /home/evgen/twingo/build/static> require granted </directory> <directory /home/evgen/twingo/build/media> require granted </directory> <directory /home/evgen/twingo/build/> <files wsgi.py> require granted </files> </directory>
here listing project dir:
root@twingo:/home/evgen/twingo/build# ls authapp env feedback manage.py service static templates travels twingo users wsgi.py
here listing site-packages dir:
root@twingo:/home/evgen/twingo/build/env/lib/python3.4/site-packages# ls django-1.8.2.dist-info django_appconf-1.0.1.dist-info password_reset six-1.9.0.dist-info pil django_compress-1.0.1-py3.4.egg-info pilkit six.py pillow-2.8.2-py3.4.egg-info django_imagekit-3.2.6-py3.4.egg-info pilkit-1.1.12-py3.4.egg-info tests __pycache__ django_password_reset-0.7.dist-info pip utils _markerlib easy_install.py pip-1.5.6.dist-info utils-0.8.0-py3.4.egg-info appconf image pkg_resources compress image-1.4.0-py3.4.egg-info setuptools django imagekit setuptools-17.0.dist-info
what wrong?
Comments
Post a Comment