Did you install web2py from PyPi at some point in the past? It looks like
you have a version of the gluon modules in
/usr/lib/pymodules/python2.7/gluon. Your traceback includes:
File "/usr/lib/pymodules/python2.7/gluon/restricted.py", line 205, in restricted
exec ccode in environment
That particular line in restricted.py hasn't been at line number 205 since
web2py 1.99.7 (it is now at line number 220).
I think the problem is that because the web2py_magic.py simply appends the
web2py path to sys.path, it is looking in
/usr/lib/pymodules/python2.7/gluon before it looks in the path of your
current version of web2py and therefore running the old version of gluon.
In web2py_magic.py, maybe change sys.path.append(WEB2PY_PATH) to
sys.path.insert(1, WEB2PY_PATH). You could also simply remove the old
web2py gluon folder, use virtualenv, etc.
Anthony
On Tuesday, May 13, 2014 10:27:23 AM UTC-4, Johann Spies wrote:
>
>
>
>
> Is it possible you are running an old version of web2py that doesn't
> support those arguments. Based on the restricted.py line number shown in
> the traceback, it looks like you're on web2py 1.99 or earlier.
>
> Version 2.9.5-trunk+timestamp.2014.05.09.15.41.38
>
>
> --
> Because experiencing your loyal love is better than life itself,
> my lips will praise you. (Psalm 63:3)
>
--
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.