[Pywikipedia-bugs] [Maniphest] [Unblock] T178061: Reduce (API) warning clutter in login.py after clean installation

2020-03-27 Thread Huji
Huji closed subtask T137805: API action=login is deprecated as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T178061 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Zkhalido, Viztor, Wenyi,

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

2020-03-27 Thread Huji
Huji closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa, Huji Cc: zhuyifei1999, XZise, Paucabot, Zoranzoki21, Pablo-WMDE, Prod, Framawiki, Dvorapa,

[Pywikipedia-bugs] [Maniphest] [Unblock] T225591: Make Travis and Appveyor pass again

2020-03-27 Thread Huji
Huji closed subtask T137805: API action=login is deprecated as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T225591 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: D3r1ck01, Mpaa, Framawiki, Dvorapa, Dalba, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Commented On] T224712: Attempt to login fails several times

2020-03-27 Thread gerritbot
gerritbot added a comment. Change 584091 had a related patch set uploaded (by Dvorapa; owner: Dvorapa): [pywikibot/core@master] [test] Enable some sort of APIError logging https://gerrit.wikimedia.org/r/584091 TASK DETAIL https://phabricator.wikimedia.org/T224712 EMAIL PREFERENCES

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

2020-03-27 Thread Dvorapa
Dvorapa added a comment. Yep! \o/ TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: zhuyifei1999, XZise, Paucabot, Zoranzoki21, Pablo-WMDE, Prod, Framawiki, Dvorapa, protonotarios,

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

2020-03-27 Thread Zoranzoki21
Zoranzoki21 added a comment. I don't see this error :) Finally!! kizule@kizule-laptop1:~/Desktop/development/pywikibot-core$ python pwb.py login WARNING: No user is logged in on site wikipedia:sr Password for user Zoranzoki21 on wikipedia:sr (no characters will be shown):

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

2020-03-27 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa, Maintenance_bot Cc: zhuyifei1999, XZise, Paucabot, Zoranzoki21, Pablo-WMDE, Prod,

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

2020-03-27 Thread gerritbot
gerritbot added a comment. Change 584017 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Resolve action=login deprecation warning https://gerrit.wikimedia.org/r/584017 TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T224712: Attempt to login fails several times

2020-03-27 Thread gerritbot
gerritbot added a comment. Change 584017 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Resolve action=login deprecation warning https://gerrit.wikimedia.org/r/584017 TASK DETAIL https://phabricator.wikimedia.org/T224712 EMAIL PREFERENCES

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

2020-03-27 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa, gerritbot Cc: zhuyifei1999, XZise, Paucabot, Zoranzoki21, Pablo-WMDE, Prod, Framawiki,

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

2020-03-27 Thread gerritbot
gerritbot added a comment. Change 584017 had a related patch set uploaded (by Dvorapa; owner: Dvorapa): [pywikibot/core@master] [bugfix] Resolve action=login deprecation warning https://gerrit.wikimedia.org/r/584017 TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T224712: Attempt to login fails several times

2020-03-27 Thread gerritbot
gerritbot added a comment. Change 584017 had a related patch set uploaded (by Dvorapa; owner: Dvorapa): [pywikibot/core@master] [bugfix] Resolve action=login deprecation warning https://gerrit.wikimedia.org/r/584017 TASK DETAIL https://phabricator.wikimedia.org/T224712 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T248376: Install python3-requests from stretch-backports for compatibility with pywikibot

2020-03-27 Thread Dvorapa
Dvorapa added a comment. Yes, but it should be only a warning now, not a failure. TASK DETAIL https://phabricator.wikimedia.org/T248376 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Thibaut120094, Lofhi, Tacsipacsi, Ato_01, bd808,

[Pywikipedia-bugs] [Maniphest] [Commented On] T248376: Install python3-requests from stretch-backports for compatibility with pywikibot

2020-03-27 Thread Ato_01
Ato_01 added a comment. OK. I set up all our processes in our crontab to /shared/pywikibot/stable. It was fine everything until today. Now I see on the log of atobot again as follows: (requests 2.12.4 (/usr/lib/python3/dist-packages),

[Pywikipedia-bugs] [Maniphest] [Unassigned] T125372: Add documentation to textlib.replace_links

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T125372 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, gerritbot,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T192674: Merge duplicate doc subpages lists from cosmetic_changes.py to family.py

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T192674 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: gerritbot, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T182685: archivebot.py could archive unsigned threads using timestamp of thread underneath

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T182685 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: gerritbot, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T212704: Convert english template titles to localised ones with cosmetic_changes.py

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T212704 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Framawiki, gerritbot,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T193476: Reduce duplicate dependency specifications and unnecessary installations

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T193476 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Aklapper, gerritbot,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T69663: unsigned comments cause travis build breakage

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T69663 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Dalba, Magul,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T118719: solve_disambiguation.py gives possibilities from {{disambiguation}}

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Restricted Application added a subscriber: Liuxinyu970226. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T118719 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Unassigned] T103080: Link should recognise {{ns:Project}} in text

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Restricted Application added a subscriber: Liuxinyu970226. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T103080 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Unassigned] T57174: Category name misinterpreted if it starts with an interwiki prefix

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T57174 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Cyberpower678,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T67262: ns parameter of Page object and/or defaultnamespace of Link object should force the namespace

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T67262 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, gerritbot,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T138765: Cosmetic changes breaks tables

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T138765 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: gerritbot, Urbanecm, Xqt,

[Pywikipedia-bugs] [Maniphest] [Unassigned] T192215: Fix sort key handling in category move

2020-03-27 Thread Dvorapa
Dvorapa removed Dvorapa as the assignee of this task. Dvorapa added a comment. Not actively working on it TASK DETAIL https://phabricator.wikimedia.org/T192215 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: gerritbot, Aklapper,

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

2020-03-27 Thread Dvorapa
Dvorapa claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T137805 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: zhuyifei1999, XZise, Paucabot, Zoranzoki21, Pablo-WMDE, Prod, Framawiki, Dvorapa, protonotarios,

[Pywikipedia-bugs] [Maniphest] [Updated] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. This is a bug in Pywikibot if you use user password instead of bot password, see T137805 . I am currently working on a fix for this. TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. Thx the data.api LoginManager works. How do i get rid of the warning: WARNING: API warning (login): Main-account login via action=login is deprecated and may stop working without warning. To continue login with action=login, see [[Special:BotPasswords]]. To

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. Gerrit patch uploader: all steps to generate and upload patch are described: https://tools.wmflabs.org/gerrit-patch-uploader/ > pywikbot.api does not seem to exist and for: Sorrry, it should be pywikibot.data.api, but this is easy to find out: from

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. https://test.pypi.org/project/py-3rdparty-mediawiki/0.0.2rc0/ has the latest code that works with the patch. https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/master/wikibot/wikibot.py#L135 has your proposal but commented it since it breaks the tests.

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. I am trying to figure out how to create a patch file with https://cocoon.apache.org/2.0/howto/howto-patch.html - the unified diff there looks different than the rcsdiff patch above. What is needed for a proper patch file? TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. The new patch seems to be: rcsdiff __init__.py === RCS file: RCS/__init__.py,v retrieving revision 1.1 diff -r1.1 __init__.py 2026c2026 < def login(self, sysop=None,

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. https://pypi.org/project/pywikibot/ shows a build error ... TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Seppl2013 Cc: Dvorapa, Xqt, Mpaa, Aklapper, Seppl2013,

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. When i debug the code i end up in: def getCookie(self): """ Login to the site. @see: U{https://www.mediawiki.org/wiki/API:Login} @return: cookie data if successful, None otherwise. """

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. It looks like site.py is gone now and code moved to site/__init__.py ... what is the motivation for this inorthodox coding style? TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. Tried it and it does not work as advertised. pywikbot.api does not seem to exist and: from pywikibot.login import LoginManager lm = LoginManager(password=self.getPassword(), site=self.site, user=self.user) lm.login() the result is an error:

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. now my software is broken again and I need to repatch manually since pip uninstall removed the RCS directory ... TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To:

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html?highlight=loginmanager#pywikibot.login.LoginManager from pywikibot.api import LoginManager lm = LoginManager(password='', site=pywikibot.Site('', ''), user='') lm.login() If

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. How? TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Seppl2013 Cc: Dvorapa, Xqt, Mpaa, Aklapper, Seppl2013, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho,

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. Why don't you use LoginManager directly if you need to pass a password? TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Dvorapa, Xqt, Mpaa, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. From my point the proposed change is not a workaround. It's fine. The encryption in this case was motivated to be MediaWiki-Japi compatible which uses https://github.com/WolfgangFahl/py-3rdparty-mediawiki/blob/master/wikibot/crypt.py inspired by

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. Note: `readPassword` seems to be the method, that needs adjustments in this case or there should be created a new little brother/sister method to it. TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Dvorapa
Dvorapa added a comment. @Seppl2013 I don't understand. What's the difference in encryption between `user-config.py` and `passwordfile`? Both are just text files and both accept the same values, only passwordfile is deditated only to passwords and not to other settings. Also there is a

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. https://stackoverflow.com/questions/59254302/how-to-login-with-pywikibot-using-password-from-environment-variable/60882730#60882730 shows that others have the same need TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. @Dvorpa - if you now how to handle the patch upload could you please do it for me - i don't know how to create a patchfile from an RCS diff. TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T248471: pywikibot password handling

2020-03-27 Thread Seppl2013
Seppl2013 added a comment. @Dvorpa - i'd like to keep my passwords encrypted. TASK DETAIL https://phabricator.wikimedia.org/T248471 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Seppl2013 Cc: Dvorapa, Xqt, Mpaa, Aklapper, Seppl2013,