[Pywikipedia-bugs] [Maniphest] [Commented On] T142021: Error mysqlquery

2016-08-04 Thread Vladis13
Vladis13 added a comment.
I repoted to Qursql. But I doubt that there will be repaired and ever be answered. 
Problem of Pwb is that the error is now, and no way works with MySQL, and old info in documentation.

Also, "python scripts\listpages.py" does not write a list of pages in file. And, redirect output in file on Windows does not work (like "python scripts \ listpages.py -transcludes:"template_name"> list.txt" or "... | more > list.txt"). It gives error of python, as if ">" is argument of its call.TASK DETAILhttps://phabricator.wikimedia.org/T142021EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Vladis13Cc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


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

2016-08-04 Thread Joutbis
Joutbis created this task.Joutbis added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTIONI just upgraded pywikibot from quite an old version (from around 2014), worked for a day or so just fine, and then (I guess the cookie expired), login doesn't work any more.

What I usually did:


do edits from the bot normally. From time to time, it requested the password. I typed it in, and it went on merrily for at least a couple weeks.


After the update (running [https] r-pywikibot-core.git (d21ee03, g7381, 2016/08/04, 08:27:53, n/a) on Linux. Tried with two systems. One, running python 2.7.3; the other, an up-to-date Ubuntu running python 2.7-12:


when I try to do a Page.put, I get the following errors:


  File "/home/bot/.pywikibot/core/pywikibot/tools/__init__.py", line 1414, in wrapper
return obj(*__args, **__kw)
  File "/home/bot/.pywikibot/core/pywikibot/page.py", line 1279, in put
**kwargs)
  File "/home/bot/.pywikibot/core/pywikibot/tools/__init__.py", line 1414, in wrapper
return obj(*__args, **__kw)
  File "/home/bot/.pywikibot/core/pywikibot/page.py", line 1196, in save
cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
  File "/home/bot/.pywikibot/core/pywikibot/page.py", line 1207, in _save
watch=watch, bot=botflag, **kwargs)
  File "/home/bot/.pywikibot/core/pywikibot/site.py", line 1300, in callee
self.login(False)
  File "/home/bot/.pywikibot/core/pywikibot/site.py", line 2057, in login
if loginMan.login(retry=True):
  File "/home/bot/.pywikibot/core/pywikibot/login.py", line 276, in login
cookiedata = self.getCookie()
  File "/home/bot/.pywikibot/core/pywikibot/data/api.py", line 3033, in getCookie
prefix = login_result['login']['cookieprefix']
KeyError: u'cookieprefix'

CRITICAL: Closing network session.

If I type the wrong password, it just keeps asking for it. It only crashes when I enter the right password.

On the fresh install, I tried just the minimum:


install from git
create user-config.py with the generate_user_files.py utility.
python pwb.py login
enter password


I get:

WARNING: API warning (login): Main-account login via action="" is deprecated and may stop working without warning. To continue login with action="" see [[Special:BotPasswords]]. To safely continue using main-account login, see action=""
Traceback (most recent call last):
  File "pwb.py", line 257, in 
if not main():
  File "pwb.py", line 251, in main
run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 121, in run_python_file
main_mod.__dict__)
  File "./scripts/login.py", line 193, in 
main()
  File "./scripts/login.py", line 176, in main
site.login(sysop)
  File "/home/bot/.pywikibot/core/pywikibot/site.py", line 2057, in login
if loginMan.login(retry=True):
  File "/home/bot/.pywikibot/core/pywikibot/login.py", line 276, in login
cookiedata = self.getCookie()
  File "/home/bot/.pywikibot/core/pywikibot/data/api.py", line 3033, in getCookie
prefix = login_result['login']['cookieprefix']
KeyError: u'cookieprefix'

CRITICAL: Closing network session.

This is completely reproducible, at least with my user. I find it impossible to login and I've tried two systems: the one where I usually do all the work, and a fresh install in an up-to-date Ubuntu.

In case you need to know, site is ca.wikipedia, where my bot is registered.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoutbisCc: Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T137805: API action=login is deprecated

2016-08-04 Thread Aschroet
Aschroet added a comment.
I experience the same now on dewikisource now.TASK DETAILhttps://phabricator.wikimedia.org/T137805EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AschroetCc: Aschroet, MarcoAurelio, Jogo.obb, valhallasw, jayvdb, Aklapper, Zppix, Xqt, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142021: Error mysqlquery

2016-08-04 Thread Aklapper
Aklapper added a comment.
(This looks like a support request to me, and issues with Oursql like T142021#2521093 should be reported to Oursql instead.)TASK DETAILhttps://phabricator.wikimedia.org/T142021EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AklapperCc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs