That must be the problem. Both versions are very different. My local 
version is 2.7.5 (default, Aug 25 2013, 00:04:04)  and the server version 
is 2.4.3 (#1, Jun 18 2012, 08:55:23). I will try to update the server 
versionand see what happens.

Thank you very much Ricardo!

On Tuesday, January 14, 2014 12:52:02 AM UTC+1, Ricardo Pedroso wrote:
>
> On Mon, Jan 13, 2014 at 11:08 PM, Wonton <rfer...@gmail.com <javascript:>> 
> wrote: 
> > Hello everyone, 
> > 
> > I'm compiling my local apps with this command: 
> > 
> > python -c "import gluon.compileapp; 
> > gluon.compileapp.compile_application('applications/<myapp>')" 
> > 
> > And everything is working well. But when I try to do the same thing in 
> the 
> > server (as admin), in the production environment I get this error: 
> > 
> > Traceback (most recent call last): 
> >   File "<string>", line 1, in ? 
> >   File "gluon/__init__.py", line 15, in ? 
> >     from globals import current 
> >   File "gluon/globals.py", line 17, in ? 
> >     from storage import Storage, List 
> >   File "gluon/storage.py", line 73 
> >     return value if not value else \ 
> >                   ^ 
> > SyntaxError: invalid syntax 
>
> Probably a python version mismatch. 
>
> What python version do you have when run it from the shell? 
> Can be checked with: 
>
> $ python -c "import sys;print sys.version" 
>
>
> Ricardo 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to