Plumo- Web2Py is using 2.5.1, I have 2.7 on my computer.
On Mon, Feb 21, 2011 at 6:13 PM, Jack Lyons <[email protected]> wrote: > Jonathan- > > When I tried to put that in my script, I got this error message: > > > Traceback (most recent call last): > > > File "gluon/restricted.py", line 188, in restricted > > File > "/Users/jacklyons/Downloads/web2py/web2py.app/Contents/Resources/applications/Stalker/models/anyjson.py" > <http://127.0.0.1:8000/admin/default/edit/Stalker/models/anyjson.py>, line > 50, in <module> > > TypeError: 'tuple' object is not callable > > > On Mon, Feb 21, 2011 at 6:12 PM, Plumo <[email protected]> wrote: > >> What Python version are you using? The json module was introduced in 2.5. >> simplejson can be downloaded here: >> https://github.com/simplejson/simplejson >> >> try: >> import simplejson as json >> except ImportError: >> import json >> >> >> >> > > > -- > Peace > ┌─┐ ─┐☮ > │▒│ /▒/ > │▒│/▒/ > │▒ /▒/─┬─┐ > │▒│▒|▒│▒│ > ┌┴─┴─┐-┘─┘ > │▒┌──┘▒▒▒│ > └┐▒▒▒▒▒▒“” > > -- Peace ┌─┐ ─┐☮ │▒│ /▒/ │▒│/▒/ │▒ /▒/─┬─┐ │▒│▒|▒│▒│ ┌┴─┴─┐-┘─┘ │▒┌──┘▒▒▒│ └┐▒▒▒▒▒▒“”

