On Mon, Jan 13, 2014 at 11:08 PM, Wonton <[email protected]> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to