Hello,

I have this code:

import os
import cgi
import sys

import wsgiref.handlers
from google.appengine.ext import webapp

print "Beginning"

for x in sys.path:
    print x

try:
    from gpy import *

except:
    print "Couldn't import"

exit()

...which when run from localhost:8080 outputs this:

Beginning
D:\projects\g\dev\sig\datermine.com\src
C:\Program Files\Google\google_appengine
C:\Program Files\Google\google_appengine\lib\django
C:\Program Files\Google\google_appengine\lib\webob
C:\Program Files\Google\google_appengine\lib\yaml\lib
C:\Program Files\Google\google_appengine
D:\projects\g\dev\standards
C:\WINDOWS\system32\python25.zip
c:\Python25\DLLs
c:\Python25\lib
c:\Python25\lib\plat-win
c:\Python25\lib\lib-tk
c:\Python25
c:\Python25\lib\site-packages
c:\Python25\lib\site-packages\PIL
Couldn't import

The gpy package is located in "D:\projects\g\dev\standards" and it has
an __init__.py file in the D:\projects\g\dev\standards directory and
yet it is unable to import.

What's most unfortunate is that if I do this from the command line:

>>> import sys
>>> for x in sys.path:
        print x


C:\Python25\Lib\idlelib
D:\projects\g\dev\standards
C:\WINDOWS\system32\python25.zip
C:\Python25\DLLs
C:\Python25\lib
C:\Python25\lib\plat-win
C:\Python25\lib\lib-tk
C:\Python25
C:\Python25\lib\site-packages
C:\Python25\lib\site-packages\PIL
>>> from gpy import *

...I have no issues.  The import is successful.

I'm running windows XP and I've added a PYTHONPATH environment
variable, which is set to only "D:\projects\g\dev\standards".

Any suggestions?  What am I doing wrong?  This is frustrating.

Thanks in advance,
George

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to