>>> sys.path.append("/usr/local/google_appengine")
>>> sys.path.append("/usr/local/google_appengine/lib/yaml/lib")
>>> sys.path.append("/usr/local/google_appengine/lib/fancy_urllib")
>>> sys.path.append("/usr/local/google_appengine/google/appengine/ext")
>>> from google.appengine.ext import db
>>> db = DAL('gae')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/jacobgur/Documents/workspace/web2py/src/gluon/dal.py",
line 3357, in __init__
raise RuntimeError, "Failure to connect, tried 5 times:\n%s" %
error
RuntimeError: Failure to connect, tried 5 times:
global name 'gae' is not defined
Which ones?
On Jan 21, 12:51 pm, Massimo Di Pierro <[email protected]>
wrote:
> The google modules are not in your path.
>
> On Jan 21, 10:36 am, Jacob Gur <[email protected]> wrote:
>
>
>
>
>
>
>
> > I want to run a Python shell in my GAE local development server
> > environment. As I understand, the best way to do this is to run:
> > python web2py.py -S <app_folder_name>
>
> > (Please correct me if I doing something wrong here)
>
> > Next, I run in the shell the following commands:
> > from gluon.dal import DAL
> > from gluon.shell import exec_environment
> > from gluon.tools import Auth
> > db = DAL('gae')
>
> > I get the following error back:
>
> > Traceback (most recent call last):
> > File "<console>", line 1, in <module>
> > File "/Users/jacobgur/Documents/workspace/web2py/src/gluon/dal.py",
> > line 3357, in __init__
> > raise RuntimeError, "Failure to connect, tried 5 times:\n%s" %
> > error
> > RuntimeError: Failure to connect, tried 5 times:
> > global name 'gae' is not defined
>
> > What am I doing wrong?
>
> > As a side note, is there an easy way to using the GAE interactive
> > console, or is there a html-based shell available?
>
> > Thanks