OK, there was a typo in the code:

try:
    from gluon.contrib.gql2 import *     #   <------  .gql2 should
be .gql

Now it works.

Thanks..!

M.

On Oct 7, 2:38 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> hmmm.... the db.py should have
>
> try:
>   from gluon.contrib.gql import *
>   db=GQLDB()
>   session.connect(request,response,db=db)
> except:
>   db=SQLDB()
>
> Thus the last line should never be executed except when you are not on
> GAE. Try replace it with
>
> #try:
> from gluon.contrib.gql import *
> db=GQLDB()
> session.connect(request,response,db=db)
> #except:
> #  db=SQLDB()
>
> and see what happens. Is it possible a typo was introduced in there?
>
> Massimo
>
> On Oct 7, 3:07 pm, MHblue <[EMAIL PROTECTED]> wrote:
>
> > Adding session.forget() to welcome worked, thanks!
>
> > My mistake to not post the error from GAE to begin with.
>
> > The error I get with Reddish is "NameError: global name 'sqlite3' is
> > not defined".
>
> > See full details:
>
> > INFO     2008-10-07 20:00:23,093 gaehandler.py] **** Request:    38ms/
> > 8ms (real time/cpu time)
> > INFO     2008-10-07 20:00:23,105 dev_appserver.py] "GET /reddish/ HTTP/
> > 1.1" 200 -
> > WARNING  2008-10-07 20:00:40,539 cache.py] no cache.disk
> > ERROR    2008-10-07 20:00:40,545 main.py] Traceback (most recent call
> > last):
> >   File "/Users/.../web2py/gluon/restricted.py", line 62, in restricted
> >     exec ccode in environment
> >   File "/Users/.../web2py/applications/reddish/models/db.py", line 9,
> > in <module>
> >     db=SQLDB()
> >   File "/Users/.../web2py/gluon/sql.py", line 362, in __init__
> >     self._pool_connection(lambda:sqlite3.Connection(dbpath))
> >   File "/Users/.../web2py/gluon/sql.py", line 334, in _pool_connection
> >     self._connection=f()
> >   File "/Users/.../web2py/gluon/sql.py", line 362, in <lambda>
> >     self._pool_connection(lambda:sqlite3.Connection(dbpath))
> > NameError: global name 'sqlite3' is not defined
>
> > On Oct 6, 11:44 pm, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > > You are correct that "welcome" does not work unless you place
>
> > > session.forget()
>
> > > somewhere in the default controller. Could you give this a try?
>
> > > Reddish works for me. What error do you see in the logs?
>
> > > On Oct 7, 12:20 am, MHblue <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Massimo,
>
> > > > Thanks for the reply! I was aware that not all of the functionality
> > > > was to be present, but I was surprised that reddish doesn't work
> > > > because I knew it was built to work with GAE.
>
> > > > Since it can't write to disk in GAE, there's no way to see the errors
> > > > (is there a way to set it to display errors even without admin
> > > > access?). The only clue is that when I try to access /welcome/ it says
> > > > Ticket issued: unrecoverable, while accessing "reddish" gives Ticket
> > > > issued: unknown. Non-existent urls say "Invalid request".
>
> > > > Other than that I am not sure what to try. I did clean another clean
> > > > install from the SVN Trunk of web2py (and still the web interface
> > > > tells me I should upgrade..?) and downloaded reddish from the google
> > > > groups link.
>
> > > > Cheers,
>
> > > > Matt
>
> > > > On Oct 6, 8:22 pm, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi MH,
>
> > > > > Admin, examples and appadmin are not supposed to work because they
> > > > > require access to the filesystem. You can use them locally for
> > > > > development but not when running GAE, not even on emulation.
>
> > > > >http://127.0.0.1:8017/welcome
> > > > > andhttp://127.0.0.1:8017/reddish
>
> > > > > work fine as far as I know but I will double check tomorrow.
> > > > > Google has recently updated the GAE and some things have changed.
>
> > > > > Massimo
>
> > > > > On Oct 6, 6:53 pm, MHblue <[EMAIL PROTECTED]> wrote:
>
> > > > > > I'm unable to get web2py working at all using the GAE development
> > > > > > server. This is my first web2py install. I downloaded the latest 
> > > > > > trunk
> > > > > > (when I log in it says web2py Version 1.43 (2008-09-22 11:22:03)).
> > > > > > Starting web2py directly ("python web2py.py") works fine -- I can
> > > > > > browse the admin interface etc. without any problem.
>
> > > > > > But here are various URLs and the error message I receive on port
> > > > > > 8017, which I have my local GAE development server running:
>
> > > > > >http://127.0.0.1:8017/admin/default/site
> > > > > >   admin disabled because unable to access password file
>
> > > > > >http://127.0.0.1:8017sendsmetohttp://127.0.0.1:8017/welcome/default/i...,
> > > > > > then:
>
> > > > > >   Internal error
> > > > > >   Ticket issued: unrecoverable
>
> > > > > > I tried copying the "reddish" app into the "applications" folder,
> > > > > > figuring that this would at least have all the necessary configs in
> > > > > > place to work with GAE.
>
> > > > > >http://127.0.0.1:8017/reddish/
> > > > > >   Internal error
> > > > > >   Ticket issued: unknown
> > > > > >     (click on unknown: admin disabled because unable to access
> > > > > > password file)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to