Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Terry Reedy
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

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Karim
On 28/03/2017 18:35, Chris Angelico wrote: On Wed, Mar 29, 2017 at 3:32 AM, Karim wrote: On 28/03/2017 18:05, Chris Angelico wrote: On Wed, Mar 29, 2017 at 2:59 AM, wrote: Please help if this wont resolve, I have to completely move away from

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Chris Angelico
On Wed, Mar 29, 2017 at 3:32 AM, Karim wrote: > > On 28/03/2017 18:05, Chris Angelico wrote: >> >> On Wed, Mar 29, 2017 at 2:59 AM, wrote: >>> >>> Please help if this wont resolve, I have to completely move away from >>> python. >> >> How about,

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Chris Angelico
On Wed, Mar 29, 2017 at 2:59 AM, wrote: > Please help if this wont resolve, I have to completely move away from python. How about, instead, moving away from CGI? Switch to Apache's modpython. I've deployed several Python-based web sites without difficulties. ChrisA --

AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread vishnuprasadh
What did you do? I have configured in apache httpd.conf - enabling of mod_cgi.so and httpd-vhosts.conf. In httpd-vhosts have following conifguration. Basically am trying to capture all /images/ pattern, read have that process using a index.py script and return back as image/jpeg content.