I just did some reading... apparently .pth handling is a bit confusing
sometimes. What happens if you remove the .pth file?
On Nov 3, 9:26 am, ryan baldwin <[EMAIL PROTECTED]> wrote:
> My apologies - I meant PYTHONPATH. I've tried installing with Fink
> and setting up the soft links... same problem. I tried installing PIL
> via macPorts, but the install failed for reasons beyond my
> understanding (gotta love useless error messages).
>
> It's very, very bizarre. The error output clearly shows the
> PYTHONPATH containing my PIL module. the PIL.pth file contains
> "PIL". If I run the app under shell ("python manage.py shell") and do> from
> PIL import Image
>
> it works fine. If I runt the app via runserver and try to import
> Image, it fails a horrible death. Makes no sense.
>
> - ryan.
>
> On Nov 3, 9:21 am, Tony Arkles <[EMAIL PROTECTED]> wrote:
>
> > Ryan, do you mean the PATH, or the PYTHONPATH? It doesn't have to be
> > in your PATH, just the PYTHONPATH (which you can view by doing "import
> > sys; print sys.path")
>
> > On Nov 2, 3:39 pm, ryan baldwin <[EMAIL PROTECTED]> wrote:
>
> > > K, I double checked and tried it all out and Alok's proposed solution
> > > just isn't working on my machine (no idea why). I've tried copying
> > > the PIL and .pth file into the /Library/Python/2.5/site-packages
> > > directory and it doesn't work. Neither does soft linking them to the
> > > actual install location, which is /Library/Frameworks/Python.framework/
> > > Versions/2.5/lib/python2.5/site-packages/.
>
> > > One thing I noticed, however, is that in the error I published above,
> > > teh /Library/Python/2.5/site-packages isn't in the path. That strikes
> > > me as odd. Is that odd? I'm pretty new to python/django/GAE, so my
> > > apologies if I'm coming across as a complete newb.
>
> > > Thanks for any and all received help.
>
> > > - ryan.
>
> > > On Nov 2, 2:08 pm, ryan baldwin <[EMAIL PROTECTED]> wrote:
>
> > > > unfortunately I already tried that, both having a copy as well as soft
> > > > linking from that location. In either case the problem still
> > > > persisted. This is why I'm so confused because I've tried all the
> > > > thing that other people have tried, but to no avail. I'll double
> > > > check, though, and reply back to the group.
>
> > > > Thanks Alok.
>
> > > > - ryan.
>
> > > > On Nov 2, 1:38 pm, Alok <[EMAIL PROTECTED]> wrote:
>
> > > > > 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
-~----------~----~----~----~------~----~------~--~---