Hello,
I updated a client to the latest stable build on hostgator and got this
strange error:
S'Traceback (most recent call last):
\n File "/home1/armahq/web2py/gluon/restricted.py", line 219, in restricted
\n exec(ccode, environment)
\n File "/home1/armahq/web2py/applications/adaptfunrun/models/db.py", line
23, in <module>
\n from gluon.tools import Auth, Crud, Service, PluginManager
\n File "/home1/armahq/web2py/gluon/custom_import.py", line 111, in
custom_importer
\n return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
\n File "/home1/armahq/web2py/gluon/tools.py", line 39, in <module>
\n from gluon.authapi import AuthAPI
\n File "/home1/armahq/web2py/gluon/custom_import.py", line 111, in
custom_importer
\n return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
\n File "/home1/armahq/web2py/gluon/authapi.py", line 815
\n \'user\': {k: user[k] for k in table_user.fields if
table_user[k].readable}}
\n ^
\nSyntaxError: invalid syntax
\n'
p209
s.
db.py line 23 is just a simple import:
from gluon.tools import Auth, Crud, Service, PluginManager
The python version on hostgator is 2.6.6. It runs fine locally. Any ideas
what's going on here?
--
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/d/optout.