Login Error when using password_method=pass
Created by: Quazgar
When using password_method=pass in the .pycaosdb.ini, login fails with the error message:
TypeError: configure() got multiple values for keyword argument 'password'
Minimal Example:
import caosdb
q = caosdb.Query("count experiment")
r = q.execute()
Using password_method=plain works fine.
Imported comments:
By Quazgar on 2018-10-22T23:30:51.262Z
closed
By Timm Fitschen on 2018-10-22T23:30:51 (imported from GitLab project)
By Quazgar on 2018-10-22T23:30:50.941Z
Fixed with commit b83858ea
By Timm Fitschen on 2018-10-22T23:30:50 (imported from GitLab project)
By Quazgar on 2018-10-11T19:37:09.451Z
reopened
By Alexander Schlemmer on 2018-10-11T19:37:09 (imported from GitLab project)
By Quazgar on 2018-10-11T19:35:57.341Z
Another fix would be to drop the default keyword password from config before:
if "password_identifier" in config:
del config["password"]
password = _call_pass(config["password_identifier"])
super(PassCaller, self).configure(password=password, **config)
By Alexander Schlemmer on 2018-10-11T19:36:05 (imported from GitLab project)
By Quazgar on 2018-10-11T19:31:52.229Z
closed
By Alexander Schlemmer on 2018-10-11T19:31:52 (imported from GitLab project)
By Quazgar on 2018-10-11T19:31:51.673Z
@tfitsch No, the bug is due to the keyword argument "password=password" being used as well as the default key password in config. I had the same issue with my configuration working previously and it is fixed by 18f25ea5.
By Alexander Schlemmer on 2018-10-11T19:31:51 (imported from GitLab project)
By Quazgar on 2018-10-11T19:29:33.066Z
reopened
By Timm Fitschen on 2018-10-11T19:29:33 (imported from GitLab project)
By Quazgar on 2018-10-11T19:29:25.099Z
@fspreck Did you specify the password in your .pycaosdb.ini
? Or how can it be that you get that error?
I'm asking because the TypeError
indicates that the password is specified elsewhere. That is either a misconfiguration in your .pycaosdb.ini
or a bug that lies deeper than the proposes fix 18f25ea5
By Timm Fitschen on 2018-10-11T19:29:25 (imported from GitLab project)
By Quazgar on 2018-10-11T12:07:52.649Z
closed
By Alexander Schlemmer on 2018-10-11T12:07:52 (imported from GitLab project)
By Quazgar on 2018-10-11T12:07:52.157Z
Fixed in 18f25ea5
By Alexander Schlemmer on 2018-10-11T12:07:52 (imported from GitLab project)