Please help m debug this. In gluon/dal.py there is this code:
try:
from new import classobj
from google.appengine.ext import db as gae
from google.appengine.api import namespace_manager, rdbms
from google.appengine.api.datastore_types import Key ### needed
for belongs \
on
ID
from google.appengine.ext.db.polymodel import PolyModel
drivers.append('google')
...
except:
...
One of the imports fails for you. Can you please remove the
try:...except:... so we can get a traceback?
On May 19, 11:04 pm, Arbie Samong <[email protected]> wrote:
> Hi Massimo,
>
> I tried to use python2.5 and I still get the same output:
> python2.5 dev_appserver.py web2py/
>
> Thanks,
> Arbie
>
> On May 20, 11:44 am, Massimo Di Pierro <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > appengine SDK requires python 2.5
>
> > On May 19, 9:47 pm, Arbie Samong <[email protected]> wrote:
>
> > > Hello Massimo, thanks for the reply. I do:
>
> > > python2.6 dev_appserver.py web2py/
>
> > > and my web2py project is in that web2py/ folder.
>
> > > Thanks,
> > > ARbie
>
> > > On May 20, 1:53 am, Massimo Di Pierro <[email protected]>
> > > wrote:
>
> > > > How are you starting web2py? Somehow it is not staring the google
> > > > libraies.
>
> > > > On May 19, 9:24 am, Arbie Samong <[email protected]> wrote:
>
> > > > > This is the error I get:
>
> > > > > ERROR 2011-05-19 14:07:16,175 restricted.py:145] Traceback (most
> > > > > recent call last):
> > > > > File ".../gae/web2py/gluon/restricted.py", line 181, in restricted
> > > > > exec ccode in environment
> > > > > File ".../gae/web2py/applications/resume/models/db.py", line 9, in
> > > > > <module>
> > > > > db = DAL('gae') # connect to Google
> > > > > BigTable
> > > > > File ".../gae/web2py/gluon/dal.py", line 3720, in __init__
> > > > > raise RuntimeError, "Failure to connect, tried 5 times:\n%s" %
> > > > > error
> > > > > RuntimeError: Failure to connect, tried 5 times:
> > > > > global name 'GAEDecimalProperty' is not defined
>
> > > > > I made sure web2py and gae is updated. localhost:8000 works fine, but
> > > > > when I try it on the local gae in localhost:8080 the page loads from
> > > > > sometime and then the page says Internal error and the above
> > > > > stacktrace is what I see in the console.
>
> > > > > Thanks for any help.