"<type 'exceptions.TypeError'> float argument required" occurs when registering a user on GAE SDK

67 views
Skip to first unread message

Peter G.

unread,
Feb 25, 2012, 5:15:55 PM2/25/12
to web2py-users
The full stack trace is as follows:

Traceback (most recent call last):
File "/home/pyg/Development/capstonemoot/web2py/gluon/
restricted.py", line 204, in restricted
exec ccode in environment
File "/home/pyg/Development/capstonemoot/web2py/applications/init/
controllers/default.py", line 72, in <module>
File "/home/pyg/Development/capstonemoot/web2py/gluon/globals.py",
line 172, in <lambda>
self._caller = lambda f: f()
File "/home/pyg/Development/capstonemoot/web2py/applications/init/
controllers/default.py", line 34, in user
return dict(form=auth())
File "/home/pyg/Development/capstonemoot/web2py/gluon/tools.py",
line 1141, in __call__
return getattr(self,args[0])()
File "/home/pyg/Development/capstonemoot/web2py/gluon/tools.py",
line 1938, in register
next = replace_id(next, form)
File "/home/pyg/Development/capstonemoot/web2py/gluon/tools.py",
line 79, in replace_id
return url % form.vars
TypeError: float argument required

The registration IS successful as their information is stored in the
database and they can log-in afterwards.
The odd thing is that this ONLY occurs on local dev environment using
the latest web2py (1.99.4 stable) and GAE SDK (1.6.2), users can
register perfectly fine on the live version running on GAE.

Massimo Di Pierro

unread,
Feb 25, 2012, 10:39:02 PM2/25/12
to web2py-users
That line no longer exists in trunk. Try the nightly build.

Peter G.

unread,
Feb 25, 2012, 11:46:45 PM2/25/12
to web2py-users
Thanks Massimo, I'll update to trunk in that case.
Reply all
Reply to author
Forward
0 new messages