Forums

No module named 'PIL'

I am getting following ERROR when i am uploading image in admin. This same code is running on my computer without any error. Any solutions?? Thanks in Advanced... :)

ImportError at /admin/jspmisnew/student/96/ No module named 'PIL' Request Method: POST Request URL: http://jspmis.pythonanywhere.com/admin/jspmisnew/student/96/ Django Version: 1.8.5 Exception Type: ImportError Exception Value:
No module named 'PIL' Exception Location: /home/jspmis/.virtualenvs/django18/lib/python3.4/site-packages/django/forms/fields.py in to_python, line 674 Python Executable: /usr/local/bin/uwsgi Python Version: 3.4.0 Python Path:
['/var/www', '.', '', '/var/www', '/home/jspmis/.virtualenvs/django18/lib/python3.4', '/home/jspmis/.virtualenvs/django18/lib/python3.4/plat-x86_64-linux-gnu', '/home/jspmis/.virtualenvs/django18/lib/python3.4/lib-dynload', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/home/jspmis/.virtualenvs/django18/lib/python3.4/site-packages', '/home/jspmis/mis'] Server time: Tue, 17 Nov 2015 09:20:21 +0000

Do you have PIL installed in your virtualenv?

YUP it seems in python 3.4 console, I do have PIL installed but in virtualenv it was not installed. Thanks I have installed pillow, and it solved the problem. THANKS once again!! :)

pip install pillow

thank you very much, it works for me as well

Thanks for confirming that!