Thank you very much for your advise! I will keep this in mind. On Tuesday, January 14, 2014 4:25:22 AM UTC+1, LightDot wrote: > > Looking at your python version, you're running a RHEL 5 (or a derivative, > such as CentOS). Just a word of caution if you decide to attempt updating > the OS python's version - search the net for previous experiences. It's not > straightforward, as other important parts of the OS depend on it (ie. yum, > etc.). > > You might want to look into other possibilities, such as using python 2.6 > from EPEL repository. This solution also has virtualenv available. > > Regards > > > On Tuesday, January 14, 2014 1:08:23 AM UTC+1, Wonton wrote: >> >> 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> 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.