Pydal validate issue 2.15.4

77 views
Skip to first unread message

Vlad Doster

unread,
Oct 30, 2019, 11:21:23 PM10/30/19
to web2py-users
Hi all,

I am currently trying to get a dev environment up and running. I try to login and the pydal/object.py 
complains about __call__() taking 3 arguments but expecting exactly 2.

Is this a web2py issue or Python versioning issue?

Traceback (most recent call last):
 
File "/home/vlad/V_ENVS/ims/web2py/gluon/restricted.py", line 219, in restricted
   
exec(ccode, environment)
 
File "/home/vlad/V_ENVS/ims/web2py/applications/ims/controllers/default.py", line 1210, in <module>
 
File "/home/vlad/V_ENVS/ims/web2py/gluon/globals.py", line 414, in <lambda>
   
self._caller = lambda f: f()
 
File "/home/vlad/V_ENVS/ims/web2py/applications/ims/controllers/default.py", line 920, in user
    user
= auth.login_bare(email, password)
 
File "/home/vlad/V_ENVS/ims/web2py/gluon/tools.py", line 2400, in login_bare
    settings
.passfield].validate(password)[0]
 
File "/home/vlad/V_ENVS/ims/web2py/gluon/packages/dal/pydal/objects.py", line 2006, in validate
   
(value, error) = validator(value, record_id)
TypeError: __call__() takes exactly 2 arguments (3 given)

Any ideas? We are using Python2.7.

Massimo Di Pierro

unread,
Oct 31, 2019, 2:36:28 AM10/31/19
to web2py-users
You have a recent version of web2py with an old version of pydal

Fabrizzio Andrioli

unread,
Nov 18, 2019, 11:19:12 PM11/18/19
to web2py-users
same here, how can I check which version of pydal i have...
i'm using 
Version 2.17.1-stable+timestamp.2018.08.05.17.57.00

Dave S

unread,
Nov 19, 2019, 7:03:40 PM11/19/19
to web2py-users


On Monday, November 18, 2019 at 8:19:12 PM UTC-8, Fabrizzio Andrioli wrote:
same here, how can I check which version of pydal i have...
i'm using 
Version 2.17.1-stable+timestamp.2018.08.05.17.57.00


In my test copy of 2.18.2, the gluon/packages/dal/CHANGES file show 17.11 (Nov 13 2017) at the top.
The README.md file has markup for the pypi version, but not the number.  I don't see a VERSION file.

I see the same CHANGES in a 2.17.1 directory.

I think I used the zip file from the main website for both of these, rather than using a git pull (needs a recursive pull).


/dps

 
Reply all
Reply to author
Forward
0 new messages