Hi, I burned a couple of days on this as well. The GAE documentation
contains an error.

You need to copy the PIL directory and PTH file to: /Library/Python/
2.5/Site-Packages/

It should then run fine.

ryan baldwin wrote:
> Hello.  I've burned 2 days trying to figure out why any attempt to
> load the PIL module via my GAE/Django app is failing.  The error I get
> is the infamous ImportError "no module named PIL", despite PIL being
> in my python path.  If anybody could be of assistance it would be
> incredibly appreciated.
>
> Thanks!
>
> Here's the output from the error:
>
> Request Method:       POST
> Request URL:  http://localhost:8000/photos/
> Exception Type:       ImportError
> Exception Value:
>
> No module named PIL
>
> Exception Location:   /Users/ryanbaldwin/dev/mfs/mfs/trunk/src/django/
> forms/fields.py in clean, line 490
> Python Executable:    /Library/Frameworks/Python.framework/Versions/2.5/
> Resources/Python.app/Contents/MacOS/Python
> Python Version:       2.5.2
> Python Path:  ['django.zip', '/Users/ryanbaldwin/dev/mfs/mfs/trunk/src/
> lib', '/Users/ryanbaldwin/dev/mfs/mfs/trunk/src', '/Users/ryanbaldwin/
> dev/mfs/mfs/trunk/src/.google_appengine', '/Users/ryanbaldwin/dev/mfs/
> mfs/trunk/src/.google_appengine/lib/django', '/Users/ryanbaldwin/dev/
> mfs/mfs/trunk/src/.google_appengine/lib/webob', '/Users/ryanbaldwin/
> dev/mfs/mfs/trunk/src/.google_appengine/lib/yaml/lib', '/Users/
> ryanbaldwin/dev/mfs/mfs/trunk/src', '/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python25.zip', '/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5', '/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/Library/
> Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/
> Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
> mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/
> Versions/2.5/lib/python2.5/lib-tk', '/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/
> Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages',
> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
> packages/PIL']
>
> - ryan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to