On 3/28/2017 11:59 AM, vishnupras...@gmail.com wrote:

I capture following error in apache logs.
AH01215: from PIL import Image: /var/www/images/index.py
AH01215: ImportError: No module named PIL: /var/www/images/index.py

A general response to this particular message is
a) check spelling in code matches actual filename
b) check search path "import sys; print(sys.path)"
and then see if the path contains the directory actually containing the module

For this specific case, follow Chris's advice.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to