| Pintoch added a comment. |
Hi, I still have the error above with the latest version of pywikibot in PyPi.
https://pypi.python.org/pypi/pywikibot
When logging in (from wmflabs, with a bot account), I get the KeyError exception. Applying the hack above does not solve the problem, because I then get another exception:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "main.py", line 541, in test_run
site.login()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/pywikibot-2.0rc3-py2.7.egg/pywikibot/site.py", line 1684, in login
if loginMan.login(retry=True):
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/pywikibot-2.0rc3-py2.7.egg/pywikibot/login.py", line 239, in login
cookiedata = self.getCookie()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/pywikibot-2.0rc3-py2.7.egg/pywikibot/data/api.py", line 2563, in getCookie
login_result['login']['lg' + key.lower()]))
KeyError: u'lgtoken'It seems to me that this is a critical issue! Please solve this as soon as possible!
TASK DETAIL
EMAIL PREFERENCES
To: Legoktm, Pintoch
Cc: Pintoch, Vladis13, Gallicbot, Krinkle, MZMcBride, Jay8g, revi, Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Legoktm, JJMC89, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, MayS, Mdupont, Alchimista, Rxy
Cc: Pintoch, Vladis13, Gallicbot, Krinkle, MZMcBride, Jay8g, revi, Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Legoktm, JJMC89, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, MayS, Mdupont, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
