No module named PIL

285 views
Skip to first unread message

Alex Glaros

unread,
May 25, 2013, 12:13:28 AM5/25/13
to web...@googlegroups.com
Tried to deploy web2py_curso / gluon / contrib / imageutils.py but received this error:

<type 'exceptions.ImportError'> No module named PIL

I tried it on both a Windows 7 and a XP machine.

Did I leave something out?

thanks,

Alex Glaros

Anthony

unread,
May 25, 2013, 12:31:02 AM5/25/13
to web...@googlegroups.com
Sounds like you don't have PIL installed.

Alex Glaros

unread,
May 25, 2013, 12:35:23 AM5/25/13
to web...@googlegroups.com
I'll try to install it but can you please tell where and how?   I can't find where Python is in the web2py folders.

thanks,

Alex

Fernando Villarroel

unread,
May 25, 2013, 1:25:58 AM5/25/13
to web...@googlegroups.com
pip install PIL



Enviado desde mi iPhone
--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alex Glaros

unread,
May 25, 2013, 2:01:31 AM5/25/13
to
I have a windows machine.  Where do I type "pip install PIL"?

Do I type in the "plugins" section, shell section, at the DOS command line?

Massimo Di Pierro

unread,
May 25, 2013, 2:27:43 AM5/25/13
to web...@googlegroups.com
You don't. In windows things are done the old fashion way. You download the installer:
and run it. Then you pray it this is the right version.

On Saturday, 25 May 2013 00:56:07 UTC-5, Alex Glaros wrote:
I have a windows machine.  Where do I type "pip install PIL"?

Do I type in the "plugins" section, shell section, at the DOS command line?

On Friday, May 24, 2013 10:25:58 PM UTC-7, visuallinux wrote:

Alex Glaros

unread,
May 25, 2013, 2:44:15 AM5/25/13
to web...@googlegroups.com
error message said: python2.7 required, but was not found in registry

tried all versions down to 2.4

is there a work-around?

thanks,

Alex

António Ramos

unread,
May 25, 2013, 4:06:45 AM5/25/13
to web...@googlegroups.com
you can install python setup tools and then use
easy_install pil 
from the script folder in your python folder



2013/5/25 Alex Glaros <alexg...@gmail.com>

Anthony

unread,
May 25, 2013, 7:53:23 AM5/25/13
to web...@googlegroups.com
Do you have Python installed on your machine, or are you running from the web2py Windows binary? If that latter, try installing Python on your machine and run from web2py source instead.

Anthony

Alex Glaros

unread,
May 25, 2013, 5:04:25 PM5/25/13
to web...@googlegroups.com
Right, am  running from the web2py Windows binary.  

So I will have to install Python and w2p from source

thanks!

Alex

Massimo Di Pierro

unread,
May 25, 2013, 5:11:38 PM5/25/13
to web...@googlegroups.com
web2py source yes. PIL you do not install from source on windows because it includes binary modules that must be compiler. You must get the binary module.

smoggy

unread,
May 26, 2013, 6:33:31 PM5/26/13
to web...@googlegroups.com
In my code i use:
        import Image
Reply all
Reply to author
Forward
0 new messages