[Pywikipedia-bugs] [Maniphest] [Updated] T89702: Edits fail with "badtoken: Invalid token" after script runs for a while

2016-03-15 Thread Ghouston
Ghouston added a comment. OK, I created https://phabricator.wikimedia.org/T130091. I'm not using pywikibot, so that's not the issue. TASK DETAIL https://phabricator.wikimedia.org/T89702 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Sitic, Ghous

[Pywikipedia-bugs] [Maniphest] [Commented On] T89702: Edits fail with "badtoken: Invalid token" after script runs for a while

2016-03-15 Thread jayvdb
jayvdb added a comment. @Ghouston, this task was before pywikibot understood the badtoken response. pywikibot 2.0 or 3.0-dev now have badtoken handling. There may be bugs in it, or it might be some other problem. Please create a new task describing your problem. Also, if possible, it wo

[Pywikipedia-bugs] [Maniphest] [Commented On] T89702: Edits fail with "badtoken: Invalid token" after script runs for a while

2016-03-15 Thread Ghouston
Ghouston added a comment. I also have a problem that seems related. I save the cookies from a login request and use them in subsequent runs of a bot. Previously, it would work fine for months on end. But in recent weeks/months the bot is no longer able to edit pages after a few hours of inac

[Pywikipedia-bugs] [Maniphest] [Edited] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: VcamX, NDKilla, Southparkfan, JohnLewis, pywikibot-bugs-list, revi, Aklapper, jayvdb ___

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb added a subscriber: VcamX. jayvdb added a comment. @VcamX, do you remember which Oauth permissions were needed for test.orain.org ? Perhaps the test suite should log which oauth permissions are granted to the test account, so in future we can refer to old logs to determine this se

[Pywikipedia-bugs] [Maniphest] [Edited] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: NDKilla, Southparkfan, JohnLewis, pywikibot-bugs-list, revi, Aklapper, jayvdb __

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb removed a subscriber: gerritbot. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: NDKilla, Southparkfan, JohnLewis, pywikibot-bugs-list, revi, Aklapper, jayvdb __

[Pywikipedia-bugs] [Maniphest] [Edited] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: NDKilla, Southparkfan, JohnLewis, pywikibot-bugs-list, revi, Aklapper, gerritbot, jayvdb ___

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb added a subscriber: NDKilla. jayvdb edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: NDKilla, Southparkfan, JohnLewis, pywikibot-bugs-list, revi,

[Pywikipedia-bugs] [Maniphest] [Edited] T115305: Add miraheze support for Pywikibot

2016-03-15 Thread jayvdb
jayvdb edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T115305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: revi, jayvdb Cc: Southparkfan, JohnLewis, pywikibot-bugs-list, revi, Aklapper, gerritbot, jayvdb

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T129193: reimplement imageuncat's -recentchanges as a pagegenerators command line argument

2016-03-15 Thread jayvdb
jayvdb added a subscriber: Multichill. jayvdb added a comment. In https://phabricator.wikimedia.org/T129193#2119074, @darthbhyrava wrote: > - gen.request['rcprop'] and the extra p['ns'] in `recentChanges` The default rcprop value is documented on mw:API:RecentChanges

[Pywikipedia-bugs] [Maniphest] [Updated] T129193: reimplement imageuncat's -recentchanges as a pagegenerators command line argument

2016-03-15 Thread jayvdb
jayvdb added a comment. In https://phabricator.wikimedia.org/T129193#2120073, @Mpaa wrote: > I think that p['ns'] should not be an issue. Agree. > Actually I do not understand why the docstring in RecentChangesPageGenerator says: > > @param changetype: only iterate cha

[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T95526: Migrate Pywikibot to Differential code review

2016-03-15 Thread greg
greg moved this task to Repository Migrations on the Gerrit-Migration workboard. TASK DETAIL https://phabricator.wikimedia.org/T95526 WORKBOARD https://phabricator.wikimedia.org/project/board/9/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: greg

[Pywikipedia-bugs] [Maniphest] [Updated] T95526: Migrate Pywikibot to Differential code review

2016-03-15 Thread greg
greg added a project: Gerrit-Migration. greg added a comment. In https://phabricator.wikimedia.org/T95526#2124446, @greg wrote: > (NB: I removed that project from here because except for odd circumstances we won't have a task per repository that will be migrated, in that project, as most

[Pywikipedia-bugs] [Maniphest] [Updated] T95526: Migrate Pywikibot to Differential code review

2016-03-15 Thread greg
greg removed projects: Gerrit-Migration, Phabricator. greg added a comment. Removing a couple projects to clean this up. Let us (https://phabricator.wikimedia.org/tag/release-engineering-team/) know if you need any help with this migration (iow: when you want us to help you do it). To watch

[Pywikipedia-bugs] [Maniphest] [Created] T130065: replace.py incorrectly counts number of changes

2016-03-15 Thread JAnD
JAnD created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION pwb.py replace -regex -page:Foo 1 2 Retrieving 1 pages from wikipedia:cs. >>> Foo <<< @@ -2 +2 @@ - ;1a + ;2a Do you want to accept these changes? ([y]es, [

[Pywikipedia-bugs] [Maniphest] [Closed] T108134: Parse bare attributes according to the html5 spec

2016-03-15 Thread Arlolra
Arlolra closed this task as "Resolved". Arlolra added a comment. I'm going to cautiously reclose this, now that it has been quiet again for a few days. TASK DETAIL https://phabricator.wikimedia.org/T108134 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreference

[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T129049: Pywikibot support for Thanks

2016-03-15 Thread Sumit
Sumit moved this task to Featured for GSoC and Outreachy on the Possible-Tech-Projects workboard. TASK DETAIL https://phabricator.wikimedia.org/T129049 WORKBOARD https://phabricator.wikimedia.org/project/board/1042/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailp

[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T129049: Pywikibot support for Thanks

2016-03-15 Thread Sumit
Sumit moved this task to Featured Project Ideas on the Google-Summer-of-Code-2016 workboard. TASK DETAIL https://phabricator.wikimedia.org/T129049 WORKBOARD https://phabricator.wikimedia.org/project/board/1748/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailprefer

[Pywikipedia-bugs] [Maniphest] [Commented On] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread jayvdb
jayvdb added a comment. There is no need to add it to the other test classes yet, as they do not use the required module. They might need it in the future, but some other test class might also hit this bug in the future. So, the ideal solution is to improve the `require_modules` decorat

[Pywikipedia-bugs] [Maniphest] [Commented On] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread AbdealiJK
AbdealiJK added a comment. The ImportError seems to be as delayed as possible. Shall I add the decorator in setUpClass for the following also ? - TestWiktionaryGraph - TestIndexPageMappings - TestIndexPageMappingsRedlinks Possibly, we can just use `setUp` instead of `setUpCla

[Pywikipedia-bugs] [Maniphest] [Changed Project Column] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread jayvdb
jayvdb moved this task to Reported Upstream on the Upstream workboard. TASK DETAIL https://phabricator.wikimedia.org/T129965 WORKBOARD https://phabricator.wikimedia.org/project/board/153/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: j

[Pywikipedia-bugs] [Maniphest] [Updated] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread jayvdb
jayvdb added a project: Upstream. jayvdb added a comment. From the commit message, this is an https://phabricator.wikimedia.org/tag/upstream/ problem: https://github.com/nose-devs/nose/issues/946 If that is the problem (and it does appear to be it), then we should see problems if any of

[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T64014: Add support for item without link to harvest_template

2016-03-15 Thread Xqt
Xqt added a subscriber: valhallasw. TASK DETAIL https://phabricator.wikimedia.org/T64014 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JAnD, Xqt Cc: valhallasw, Xqt, Ricordisamoa, Aklapper, JAnD, pywikibot-bugs-list __

[Pywikipedia-bugs] [Maniphest] [Commented On] T64014: Add support for item without link to harvest_template

2016-03-15 Thread JAnD
JAnD added a comment. In https://phabricator.wikimedia.org/T64014#2122183, @Xqt wrote: > See : > https://www.mediawiki.org/wiki/Gerrit_patch_uploader > https://tools.wmflabs.org/gerrit-patch-uploader/ Result from uploading patch: /data/project/gerrit-patch-upload

[Pywikipedia-bugs] [Maniphest] [Commented On] T64014: Add support for item without link to harvest_template

2016-03-15 Thread Xqt
Xqt added a comment. > I tried to upload it via uploader, but I don't know, where is it now. See : https://www.mediawiki.org/wiki/Gerrit_patch_uploader https://tools.wmflabs.org/gerrit-patch-uploader/ TASK DETAIL https://phabricator.wikimedia.org/T64014 EMAIL PREFERENCES https://

[Pywikipedia-bugs] [Maniphest] [Commented On] T64014: Add support for item without link to harvest_template

2016-03-15 Thread JAnD
JAnD added a comment. I tried to upload it via uploader, but I don't know, where is it now. I tried to run git on windows, but it was too difficult for me There is some ugly patch including commnted old part of code + already merged patch for external-id originally form https://www.w

[Pywikipedia-bugs] [Maniphest] [Commented On] T129866: WikibasePage.editEntity fails with KeyError after null edit

2016-03-15 Thread Ricordisamoa
Ricordisamoa added a comment. In https://phabricator.wikimedia.org/T129866#2121879, @Xqt wrote: > I am really unsure whether `'entity'` is the right key at all. I found always `'item'` as a key. Maybe it has been changed? > Refer https://www.mediawiki.org/wiki/Wikibase/API#wbeditentity

[Pywikipedia-bugs] [Maniphest] [Commented On] T102113: pywikibot freeze completely

2016-03-15 Thread JAnD
JAnD added a comment. In https://phabricator.wikimedia.org/T102113#2121872, @Xqt wrote: > @JAnD: Is your bot running in -async mode? Yes, but I did not meet this problem for long time now TASK DETAIL https://phabricator.wikimedia.org/T102113 EMAIL PREFERENCES https://phabrica

[Pywikipedia-bugs] [Maniphest] [Commented On] T129866: WikibasePage.editEntity fails with KeyError after null edit

2016-03-15 Thread Xqt
Xqt added a comment. I am really unsure whether `'entity'` is the right key at all. I found always `'item'` as a key. Maybe it has been changed? Refer https://www.mediawiki.org/wiki/Wikibase/API#wbeditentity TASK DETAIL https://phabricator.wikimedia.org/T129866 EMAIL PREFERENCES https:

[Pywikipedia-bugs] [Maniphest] [Closed] T100629: -step argument conflict in redirect.py

2016-03-15 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T100629 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: gerritbot, StudiesWorld, Xqt, pywikibot-bugs-list, Aklapper, jayvdb, Lewizho99 __

[Pywikipedia-bugs] [Maniphest] [Unblock] T76429: argparse support for global & pagegen arguments

2016-03-15 Thread Xqt
Xqt closed blocking task T100629: -step argument conflict in redirect.py as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T76429 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise, Xqt Cc: Aklapper, jayvdb, Ricordisamoa, pywikibot-bugs

[Pywikipedia-bugs] [Maniphest] [Commented On] T102113: pywikibot freeze completely

2016-03-15 Thread Xqt
Xqt added a comment. @JAnD: Is your bot running in -async mode? TASK DETAIL https://phabricator.wikimedia.org/T102113 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: gerritbot, Xqt, Aklapper, JAnD, pywikibot-bugs-list, Lewizho99 ___

[Pywikipedia-bugs] [Maniphest] [Commented On] T128986: proofread page tests fail if username is not present

2016-03-15 Thread AbdealiJK
AbdealiJK added a comment. On further analysis, it seems as though this is not the tests fault. en.wikisource has changed how it saves the URL we are testing: https://en.wikisource.org/wiki/Index:Popular_Science_Monthly_Volume_1.djvu Whereas fr and de languages show it in a different wa

[Pywikipedia-bugs] [Maniphest] [Updated] T129970: harvest_template should support external-id

2016-03-15 Thread Ricordisamoa
Ricordisamoa removed a project: Patch-For-Review. Ricordisamoa removed a subscriber: gerritbot. TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ricordisamoa Cc: Ricordisamoa, Aklapper, pywikibot-bu

[Pywikipedia-bugs] [Maniphest] [Closed] T129970: harvest_template should support external-id

2016-03-15 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ricordisamoa, Xqt Cc: Ricordisamoa, gerritbot, Aklapper, pywikibot-bugs-list, JAnD, Lewizho99

[Pywikipedia-bugs] [Maniphest] [Commented On] T129970: harvest_template should support external-id

2016-03-15 Thread gerritbot
gerritbot added a comment. Change 277468 merged by jenkins-bot: HarvestRobot: support external identifiers like strings https://gerrit.wikimedia.org/r/277468 TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/ema

[Pywikipedia-bugs] [Maniphest] [Commented On] T64014: Add support for item without link to harvest_template

2016-03-15 Thread Ricordisamoa
Ricordisamoa added a comment. @JAnD see https://www.mediawiki.org/wiki/Gerrit/Tutorial or https://tools.wmflabs.org/gerrit-patch-uploader/ TASK DETAIL https://phabricator.wikimedia.org/T64014 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JAnD,

[Pywikipedia-bugs] [Maniphest] [Claimed] T64014: Add support for item without link to harvest_template

2016-03-15 Thread JAnD
JAnD claimed this task. JAnD added a comment. F3636160: harvest_template.py lines 188-201 does the requested TASK DETAIL https://phabricator.wikimedia.org/T64014 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferen

[Pywikipedia-bugs] [Maniphest] [Commented On] T128986: proofread page tests fail if username is not present

2016-03-15 Thread AbdealiJK
AbdealiJK added a comment. Seems like setting a dummy username doesnt work. I tried `self.site._username = ['Not registered username', None]` and got: == ERROR: Test Index page generator on wikisource:en ---

[Pywikipedia-bugs] [Maniphest] [Claimed] T129970: harvest_template should support external-id

2016-03-15 Thread Ricordisamoa
Ricordisamoa claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ricordisamoa Cc: Ricordisamoa, gerritbot, Aklapper, pywikibot-bugs-list, JAnD, Lewizho99 _

[Pywikipedia-bugs] [Maniphest] [Updated] T129970: harvest_template should support external-id

2016-03-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, Aklapper, pywikibot-bugs-list, JAnD, Lewizho99, Ricordisamoa ___

[Pywikipedia-bugs] [Maniphest] [Commented On] T129970: harvest_template should support external-id

2016-03-15 Thread gerritbot
gerritbot added a comment. Change 277468 had a related patch set uploaded (by Ricordisamoa): HarvestRobot: support external identifiers like strings https://gerrit.wikimedia.org/r/277468 TASK DETAIL https://phabricator.wikimedia.org/T129970 EMAIL PREFERENCES https://phabricator.wik

[Pywikipedia-bugs] [Maniphest] [Commented On] T129970: harvest_template should support external-id

2016-03-15 Thread JAnD
JAnD added a comment. There is simply way to reapir it adding two new lines in harvest_template.py elif claim.type == 'external-id': claim.setTarget(value.strip()) before line `elif claim.type == 'commonsMedia':` But I am not familiar

[Pywikipedia-bugs] [Maniphest] [Created] T129971: nosetests: Not detecting pyenv libraries

2016-03-15 Thread AbdealiJK
AbdealiJK created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION I use pyenv to manager multiple python versions on my computer. I was trying to run tests using `nosetests -v tests.proofreadpage_tests` and I noticed that the tests failed because `bs4`

[Pywikipedia-bugs] [Maniphest] [Created] T129970: harvest_template should support external-id

2016-03-15 Thread JAnD
JAnD created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION After change on Wikidata when some strings were converted to external-id type pywikibot is unable to harvest such items to wikidata `pwb.py harvest_template -transcludes:Csfd_meno "1" P2605 id

[Pywikipedia-bugs] [Maniphest] [Triaged] T64014: Add support for item without link to harvest_template

2016-03-15 Thread JAnD
JAnD triaged this task as "Normal" priority. JAnD edited the task description. Herald added a subscriber: Aklapper. TASK DETAIL https://phabricator.wikimedia.org/T64014 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JAnD Cc: Aklapper, JAnD, pywikibot

[Pywikipedia-bugs] [Maniphest] [Updated] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T129965 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, Aklapper, pywikibot-bugs-list, AbdealiJK, Lewizho99

[Pywikipedia-bugs] [Maniphest] [Commented On] T129965: proofreadpage_tests: TestIndexPageMappingsRedlinks fails if bs4 not installed

2016-03-15 Thread gerritbot
gerritbot added a comment. Change 277465 had a related patch set uploaded (by AbdealiJK): proofreadpage_tests: Require bs4 for setUpClass https://gerrit.wikimedia.org/r/277465 TASK DETAIL https://phabricator.wikimedia.org/T129965 EMAIL PREFERENCES https://phabricator.wikimedia.org/