Not sure about why parser isn't found, but instead of using a symlink,
you could add your local installation of web.py to the Python path at
the start of your script.

Assuming your app is in /base/data/home/apps/gprs/1.4/ and your copy
of web.py is at /base/data/home/py-lib/web/, then webgui.py looks
like:
    #!/usr/bin/env python

    import sys
    sys.path.append('/base/data/home/py-lib/')
    import web

Then you don't need to touch /usr/lib, where Google may be putting
some restrictions. (I don't recall which standard modules are blocked,
but you might be hitting one.)


On Jul 7, 2:25 am, flywood <[EMAIL PROTECTED]> wrote:
> Hi,
> I upload my app with webpy(0.3) successfully to GAE. but get the "500
> server error"when request to my app. below is the log message from
> GAE.
>
> <type 'exceptions.ImportError'>: No module named parser
> Traceback (most recent call last):
>   File "/base/data/home/apps/gprs/1.4/webgui.py", line 1, in <module>
>     import web
>   File "/base/data/home/apps/gprs/1.4/web/__init__.py", line 14, in
> <module>
>     import utils, db, net, wsgi, http, webapi, request, httpserver,
> debugerror
>   File "/base/data/home/apps/gprs/1.4/web/debugerror.py", line 15, in
> <module>
>     from template import Template
>   File "/base/data/home/apps/gprs/1.4/web/template.py", line 39, in
> <module>
>     import tokenize, compiler
>   File "/base/python_dist/lib/python2.5/compiler/__init__.py", line
> 24, in <module>
>     from compiler.transformer import parse, parseFile
>   File "/base/python_dist/lib/python2.5/compiler/transformer.py", line
> 29, in <module>
>     import parser
>
> I had created a soft link from webpy installed to my app directory
> like this:
>   ln -s /usr/lib/python2.5/site-packages/web web
>
> what else anything should I do?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to