[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2017-01-02 Thread Pintoch
Pintoch added a comment. @Multichill: I reopened it because the issue is still not solved in the latest version of the library on PyPI. Please just do a new release!TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-23 Thread Magul
Magul added a comment. @Jar #pywikibot-core should work with Python 2.6, 2.7, 3.3, 3.4 and 3.5. If You will find any issue with whatever version mentioned before, feel free to report an issue here.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-23 Thread Jar
Jar added a comment. @Magul is Pywikibot-core only use Python 3.x or there is some Scripts using 2.7?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, JarCc: Magul, Jar, Pintoch, Vladis13, Gallicbot,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-22 Thread Jar
Jar added a comment. Hello, When i login with compat Scripts i get Error: Traceback (most recent call last): File "login.py", line 480, in main() File "login.py", line 475, in main loginMan.login() File "login.py", line 349, in login cookiedata = self.getCookie(api) File "login.py", line

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-09 Thread Pintoch
Pintoch added a comment. Lokal_Profil: thanks, yes indeed that's what I did. I hope someone will be able to make a new release on PyPi soon.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, PintochCc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-09 Thread Lokal_Profil
Lokal_Profil added a comment. If you need a temporary workaround you can install the developers branch of pywikiboy with pip install git+https://github.com/wikimedia/pywikibot-core.git the version you should have after that is 3.0-dev. The reason why I call it a temporary fix is that that is in

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-09 Thread Pintoch
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-09 Thread Lokal_Profil
Lokal_Profil added a comment. I don't think the BotPasswords patch is part of the 2.0rc5 release (since it was released two days before that patch). I'm actually don't think it is in the 2.0 branch at all (where login.py hasn't been changed since 2015).TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-08 Thread Vladis13
Vladis13 added a comment. @Tgr yes, on https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation again was not updated version number 2.0rc4. So I thought that my version Pwb is actual. I make Oauth, but Pwb still ask password. I tried make Oauth from both accounts - user and bot, then write

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-11-01 Thread Vladis13
Vladis13 added a comment. Work nothing: login, Oauth, Botpassword. :( I don't understand, there the common login has broken at past week and it temporary bug? Or it forever, now only Oauth, which dont work?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-10-25 Thread Tgr
Tgr added a comment. @Gallicbot I'm a MediaWiki developer, so I can't really comment on the Pywikibot side, but I don't see what problem still needs to be fixed here. If frwiki requires you to have separate bot and personal accounts (which is probably the sane way for handling bot flags), just use

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-10-25 Thread Gallicbot
Gallicbot added a comment. Hello Tgr & thanks for your answer: yes point 1: my bot account has the bot flag but not my user account, indeed. as far as I know this is still the standard policy on Wikipedia fr.. What is the actual status of the pywikibot toolkit ? do you plan to fix the login

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-10-24 Thread Tgr
Tgr added a comment. In T142155#2716184, @Gallicbot wrote: connection with Username@Botname is logged as Username on Wikipedia (no 'Bot tag' applied on my commits). I'm not sure which one you mean: no bot flag on your edits? Make sure your application has the highvolume grant (and of course

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-10-07 Thread Multichill
Multichill added a comment. In T142155#2698611, @Tgr wrote: In T142155#2530198, @Multichill wrote: Tuesday is way too early. Can you push it back at least 2 months? Two months have passed now (mostly due to me forgetting about this), so let's try re-reverting with the next train (Wed/Thu next

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-10-06 Thread Tgr
Tgr added a comment. In T142155#2530198, @Multichill wrote: Tuesday is way too early. Can you push it back at least 2 months? Two months have passed now (mostly due to me forgetting about this), so let's try re-reverting with the next train (Wed/Thu next week).TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-07 Thread Anomie
Anomie added a comment. In T142155#2530987, @Tgr wrote: I'll leave it to @Anomie to decide whether two months is an acceptable delay (once he is back from vacation). No, it's not acceptable. I already gave them seven months as part of the documented deprecation process for the API. But I

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-07 Thread Udo_T
Udo_T added a comment. Hello everybody, my global interwiki bot "UT-interwiki bot" has global IP block exempt (GIPBE) because it runs on a Linux server whose IP is in a globally blocked range. In German Wiktionary the bot has also the local IP block exempt. With the normal login via username and

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread gerritbot
gerritbot added a comment. Change 303317 merged by jenkins-bot: Revert "API: Remove deprecated response values from action=""> https://gerrit.wikimedia.org/r/303317TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread gerritbot
gerritbot added a comment. Change 303367 had a related patch set uploaded (by John Vandenberg): Stop reading 'cookieprefix' upon login https://gerrit.wikimedia.org/r/303367TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread gerritbot
gerritbot added a comment. Change 303342 merged by jenkins-bot: Stop reading 'cookieprefix' upon login https://gerrit.wikimedia.org/r/303342TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread Multichill
Multichill added a comment. In T142155#2529638, @Tgr wrote: Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)? Thank you Gergő. I can confirm too that login works again. Tuesday is way too early. Can

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread gerritbot
gerritbot added a comment. Change 303342 had a related patch set uploaded (by Legoktm): Stop reading 'cookieprefix' upon login https://gerrit.wikimedia.org/r/303342TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread jayvdb
jayvdb added a comment. Ah, thanks for clarifying that.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread JJMC89
JJMC89 added a comment. In T142155#2530030, @jayvdb wrote: In T142155#2529638, @Tgr wrote: Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)? This is affecting people at the #WikiConferenceIndia.

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-06 Thread jayvdb
jayvdb added a comment. In T142155#2529638, @Tgr wrote: Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)? This is affecting people at the #WikiConferenceIndia. Tuesday doesn't help them. Yes, it

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment. Hah, I found this gem: def storecookiedata(self, data): """Ignore data; cookies are set by threadedhttp module.""" http.cookie_jar.save() So yes, that chunk of code isn't used and can be safely deleted. I'll put up a patch later tonight if no one beats me to

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment. In T142155#2529761, @Tgr wrote: Or do most people use master? Pretty much, though ironically we've been trying to get people to use the proper releases so we can make breaking changes in master.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. In T142155#2529722, @Legoktm wrote: Using OAuth with Pywikibot is documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth, maybe we need to publicize that more? Yes but it is not user-friendly (or rather the OAuth form is not user-friendly, and the doc sends

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment. Using OAuth with Pywikibot is documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth, maybe we need to publicize that more? Hack to make Pywikibot work on Wikimedia wikis once cookieprefix is dropped: diff --git a/pywikibot/data/api.py

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. @Betacommand said something about the bot still working if you just delete the lines which deal with the prefix. Which seems plausible as it uses a cookie jar anyway. I'm not sure how to test that now though, there does not seem to be a wiki family for labs. In any case,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment. Eh. I don't think we should have reverted for now...we could have just fixed pywikibot pretty quickly by hardcoding the cookie prefix.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Stashbot
Stashbot added a comment. Mentioned in SAL [2016-08-05T23:39:43Z] Synchronized php-1.28.0-wmf.13/includes/api/ApiLogin.php: temporarily re-add dropped API feature to unbreak Pywikibot T142155 (duration: 00m 48s)TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread gerritbot
gerritbot added a comment. Change 303320 merged by jenkins-bot: Revert "API: Remove deprecated response values from action=""> https://gerrit.wikimedia.org/r/303320TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread gerritbot
gerritbot added a comment. Change 303320 had a related patch set uploaded (by Gergő Tisza): Revert "API: Remove deprecated response values from action=""> https://gerrit.wikimedia.org/r/303320TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread JJMC89
JJMC89 added a comment. PWB can skip login if there is still a valid session. My bot has edited at enwiki since this task was opened. The API warning did show up in the logs the last time it did login. From my logs, it seems like my bot has to login every ~30 days.TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread DrTrigon
DrTrigon added a comment. Does definetly not work on commons - I can verify this. Stumbled into this issue while testing for file-metadata. Given there is a Conpherence in India and we are in final phase of GSoC currently (beta testing etc.) it is kind of a must have of a working pywikibot.TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. I can reproduce on Commons (and would be surprised if the API there behaved differently). Maybe the user already had a Commons session and PWB is clever enough to skip the login if there is a valid session?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Betacommand
Betacommand added a comment. I saw a note that commons was working which is why I askedTASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BetacommandCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. In T142155#2529513, @Betacommand wrote: Which wikis are currently affected? Presumably all Wikimedia wikis since the change went out with this week's train.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Betacommand
Betacommand added a comment. Which wikis are currently affected?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BetacommandCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. I don't think bot passwords would help with this, they use the same API. Using OAuth is a possible workaround (and is in general the recommended login method for bots; Pywikibot supports it although I have no idea how well tested the feature is).TASK

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Lokal_Profil
Lokal_Profil added a comment. @Multichill: Does using Special:BotPasswords solve the problem for you?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment. Anomie is on vacation (and in general pwb-announce is not a good place to report assumed API bugs). Deprecation of cookieprefix was announced in December (along with a general discouragement of the login API, unless used with bot passwords; see this and this email). Removal

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Multichill
Multichill added a comment. In T142155#2529359, @MarcoAurelio wrote: Not a tech so pardon my ignorance, but I feel it'd be easier to solve this from the pywikibot side rather than on the mediawiki side? In other words, this is not that simple than to submit a revert-patch for @Anomie's change and

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread MarcoAurelio
MarcoAurelio added a comment. Not a tech so pardon my ignorance, but I feel it'd be easier to solve this from the pywikibot side rather than on the mediawiki side? In other words, is not that simple to submit a revert-patch for @Anomie's change and have it merged on gerrit, it needs to be

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment. ...ugh. We (Pywikibot) had 7+ months to fix this, and we didn't.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb,

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Multichill
Multichill added a comment. Emailed the announce list, see https://lists.wikimedia.org/pipermail/pywikibot-announce/2016-August/10.htmlTASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread CodeCat
CodeCat added a comment. Can confirm, having the same problem. I upgraded it to "Unbreak now" because the bot has basically become unusable for everyone as far as I can tell.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Basilicofresco
Basilicofresco added a comment. This morning I had the same problem. I'm running Python 3.5.1 under Win7. Interestingly logging on Commons is working flawlessly.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread MarcoAurelio
MarcoAurelio added a comment. Happening to me as well. My bot can edit, but if I want to use scripts such as delete.py, login with my sysop account fails.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: