I do not understand where "unable to import Rocket" comes from.

On Sep 9, 8:03 am, Richard <richar...@gmail.com> wrote:
> I am using the following simple routes.py and find it works fine on
> GAE with latest trunk:
>
> routes_in = (
>     ('/', '/init/default/index'),
>     ('/topics', '/init/topics/index'),
> )
> routes_out = [(second, first) for (first, second) in routes_in]
>
> On Sep 9, 9:49 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > i cannot reproduce this problem. Can you send me your routes?
>
> > On Sep 7, 1:28 am, Miguel Goncalves <goncalvesmig...@gmail.com> wrote:
>
> > > Hi
>
> > > I guess this bug has not been fixed yet?
>
> > > I am getting the following error:
>
> > > unable to import Rocket
> > > Your routes.py has a syntax error Please fix it before you restart web2py
> > > Traceback (most recent call last):
> > >   File 
> > > "/base/data/home/apps/reviewround/1.344628390884008259/gluon/rewrite.py",
> > > line 106, in load
> > >     exec routesfp.read() in symbols
> > >   File "<string>", line 3
>
> > >    ^
> > > SyntaxError: invalid syntax
>
> > > <type 'exceptions.SyntaxError'>: invalid syntax (<string>, line 3)
> > > Traceback (most recent call last):
> > >   File 
> > > "/base/data/home/apps/reviewround/1.344628390884008259/gaehandler.py",
> > > line 52, in <module>
> > >     import gluon.main
> > >   File 
> > > "/base/data/home/apps/reviewround/1.344628390884008259/gluon/main.py",
> > > line 66, in <module>
> > >     rewrite.load()
> > >   File 
> > > "/base/data/home/apps/reviewround/1.344628390884008259/gluon/rewrite.py",
> > > line 114, in load
> > >     raise e
> > > <type 'exceptions.SyntaxError'>: invalid syntax (<string>, line 3)
>
> > > The routes.py looks like :
> > > #!/usr/bin/python
> > > # -*- coding: utf-8 -*-
>
> > > default_application = 'reviewround'     # ordinarily set in base routes.py
> > > default_controller = 'default'          # ordinarily set in app-specific
> > > routes.py
> > > default_function = 'index'
>
> > > routes_in = ( ('/', '/reviewround/default/index'),)
> > > routes_out = ( ('/reviewround/default/index', '/'),)
>
> > > thanks
> > > Miguel
>
>

Reply via email to