web2py 2.18.5 breaks mysql connection

273 views
Skip to first unread message

var...@seas.upenn.edu

unread,
Apr 9, 2019, 8:43:43 PM4/9/19
to web2py-users

Commit 59a9260c5d7b5677d207a90798c1058779dfe871 adds the following line to gluon/packages/dal/pydal/adapters/mysql.py (line 44 in 2.18.5):

            self.driver_args['password'] = password

This does not work with MySQLdb.py.  "TypeError: \'password\' is an invalid keyword argument for this function\n'"  It needs to be

            self.driver_args['passwd'] = password

Making this change in my copy of the source fixes the problem.  Could you please fix this in web2py?

Thanks

Kris

Massimo Di Pierro

unread,
Apr 11, 2019, 11:59:55 PM4/11/19
to web2py-users
will release 2.18.6 asap. fixed in pydal master

Donald McClymont

unread,
Mar 17, 2020, 3:33:23 PM3/17/20
to web2py-users
Any update on when 2.18.6 will be released - or is there an accepted workaround other than taking latest version?  This seems a rather fundamental bug when you upgrade a mysql setup?

Regards
Donald

Massimo Di Pierro

unread,
Mar 21, 2020, 3:05:58 AM3/21/20
to web2py-users
This week-end.
Reply all
Reply to author
Forward
0 new messages