jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
The patrol token is not being loaded correctly for earlier versions.
Since patrol was added in v1.14, until v1.16, the patrol token was the same as the edit token.
For 1.17-19, the patrol token must be obtained from the query list recentchanges.
https://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rctoken=…
TASK DETAIL
https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
Mineo created this task.
Mineo added a subscriber: Mineo.
Mineo added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The line https://github.com/mineo/mb2wikidatabot/blob/master/bot/const.py#L36 sometimes causes the whole python interpreter to block, so it doesn't even exit on ^C anymore. Since this might be a very specific problem related to the order things are imported in etc., here's a rough overview of how that line is reached.
https://github.com/mineo/mb2wikidatabot/blob/master/run.py is the main entry point of the bot, which imports
https://github.com/mineo/mb2wikidatabot/blob/master/bot/common.py, which (in line 8) imports the `const.py` file.
I've added print statements around every statement in `const.py` and the one before the creation of the ItemPage is the last one that gets executed.
I have now found a reliable way to fix this and that is the execution of a file that contains only the following code (yes, this is basically a variation of the `const.py` file):
```
import pywikibot as wp
WIKIDATA = wp.Site('wikidata', 'wikidata')
WIKIDATA_DATASITE = WIKIDATA.data_repository()
MUSICBRAINZ_WIKIDATAPAGE = wp.ItemPage(WIKIDATA_DATASITE, "Q14005")
MUSICBRAINZ_CLAIM = wp.Claim(WIKIDATA_DATASITE, "P248")
```
Other ways to fix it include deletions of most files in the pywikibot user directory and/or random invokations of pywikibots `scripts/login.py` script.
This happens on Python 2.6.5 on Ubuntu 10.04.4 in a virtual environment. This has happened over the last few year every once in a while with different revisions of pywikibot, but I feel like it's now happening way more often. The currently used pywikibot version is 6b2e416b1bd67d16cf70f3c02420bd9124217a13.
TASK DETAIL
https://phabricator.wikimedia.org/T87742
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mineo
Cc: pywikipedia-bugs, Aklapper, Mineo, jayvdb
jayvdb created this task.
jayvdb added subscribers: jayvdb, Aklapper, Qgil.
jayvdb added projects: Pywikibot-Wikidata, Google-Code-in-2014, Pywikibot-tests.
TASK DESCRIPTION
Pywikibot has some tests which use test.wikidata in https://github.com/wikimedia/pywikibot-core/tree/master/tests , however these test wikis appear to have a very odd configuration wrt integration tests. Where should people (such as #Google-Code-In-2014 participants) do analysis / testing of integration of client and repo?
"You can use [[testwiki:|testwiki]] or [[test2wiki:|test2wiki]] an test clients." was added to the main page [[https://test.wikidata.org/w/index.php?title=Wikidata:Main_Page&diff=5229&ol… in March]] by user [[user:GZWDer]], and I guess that is true in a sense. However it doesnt appear possible to add sitelinks to testwiki or test2wiki, as far as I am aware.
Could someone confirm that (and that I am not going crazy)?
Is there an open Phab task about that? (I searched in Phab for "testwiki wikidata" but came up empty).
e.g.
1. go to https://test2.wikipedia.org/wiki/0.8319452734493841_Moved
2. click add sitelink / add a lang / link with page
3. input language: extwiki
4. input page: Wikipedia
5. click 'Link with Page' to perform the operation
Result: error: "The external client site 'enwiki' did not provide page information for page '0.8319452734493841 Moved'."
Which is odd, I think..?
If the test wikis arnt able to be used together for integration testing, what other options are there?
1. use test.wikidata as client and repo , or
2. use beta.wmflabs.org, or
3. ??
TASK DETAIL
https://phabricator.wikimedia.org/T85358
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, Qgil, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
abusefilter errors and warnings during page save should be detected, reported nicely to the user, and possibly allow re-try if the abusefilter allows that.
Also, IIRC, we may need to back off if we are hitting abusefilters many times, to prevent it triggering a block action.
TASK DETAIL
https://phabricator.wikimedia.org/T85656
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
JAnD created this task.
JAnD added a subscriber: JAnD.
JAnD added projects: Pywikibot-category.py, pywikibot-core.
TASK DESCRIPTION
I wanted to move some categories to another subcategory.
1) bot crashes
2) bot ignores namespace parameter
```
I:\py\rewrite>pwb.py category tidy -namespace:14
Which category do you want to tidy up? mosty
Retrieving 21 pages from wikipedia:cs.
===================================================================
Treating page Most, currently in Kategorie:Mosty
{{Různé významy|tento=druhu stavby}}
{{Neověřeno}}
[[Soubor:Akashi-kaikyo bridge3.jpg|thumb|300px|[[Most Akaši-Kaikjó]] v [[Japonsk
o|Japonsku]], [[Seznam nejdelších visutých mostů|nejdelší visutý most na světě]]
]]
'''Most''' je dopravní [[stavba]], která převádí pěší, silniční nebo železniční
cestu případně vodní tok, přes překážku, kterou může být například vodní plocha
([[řeka]], [[potok]], [[moře]], [[jezero]]), terénní nerovnost ([[údolí (geomorf
ologie)|údolí]], rokle, strž) nebo jiná komunikace.
Traceback (most recent call last):
File "I:\py\rewrite\pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "I:\py\rewrite\pwb.py", line 81, in run_python_file
main_mod.__dict__)
File ".\scripts\category.py", line 1231, in <module>
main()
File ".\scripts\category.py", line 1220, in main
bot.run()
File ".\scripts\category.py", line 936, in run
self.move_to_category(article, cat, cat)
File ".\scripts\category.py", line 850, in move_to_category
subcatlist = list(self.catDB.getSubcats(current_cat))
File ".\scripts\category.py", line 194, in getSubcats
self._load()
File ".\scripts\category.py", line 167, in _load
if not self.is_loaded():
TypeError: 'bool' object is not callable
<type 'exceptions.TypeError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
I:\py\rewrite>
```
TASK DETAIL
https://phabricator.wikimedia.org/T86351
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD
Cc: Aklapper, JAnD, jayvdb, pywikipedia-bugs
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
TASK DESCRIPTION
I think we can safely remove some questions:
* Your default user directory is "/home/valhallasw/src/pywikibot-core"
Do you want to use that directory? ([y]es, [N]o)
(assume 'yes')
* Do you want to copy user files from an existing Pywikibot installation? ([y]es, [n]o)
(assume 'no', if the user wants to do so, they can do so manually)
* Create user-config.py file? Required for running bots. ([y]es, [N]o)
(assume 'yes', because otherwise these questions are useless)
* Would you like the extended version of user-config.py, with explanations included? ([y]es, [n]o)
(assume 'yes'; I see no reason not to create the extended version)
* Create user-fixes.py file? Optional and for advanced users. ([y]es, [N]o)
(assume 'yes')
This reduces the script to three questions:
1. what family
2. what lang
3. what username
TASK DETAIL
https://phabricator.wikimedia.org/T85270
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Aklapper, valhallasw, jayvdb, pywikipedia-bugs
Qgil created this task.
Qgil added a subscriber: Qgil.
Qgil added projects: Project-Creators, dev.wikimedia.org, Engineering-Community, MediaWiki-Documentation, Pywikibot-documentation.
TASK DESCRIPTION
* Project name: Documentation
* Description: A tag to identify tasks requiring technical documentation. See also [[ https://www.mediawiki.org/wiki/Documentation | mw:Documentation ]].
* Type: Tag
* Policy: Default
The tracking bug {T2001} has been the way to collect bugs related with technical documentation. Now that a technical writer is about to join the #Engineering-Community team (T565), it is a good time to add a bit more of sophistication for better planning.
Note also that #mediawiki-documentation and #pywikibot-documentation (a tag?) exist as well.
Then there is #dev.wikimedia.org, but this is a documentation project on its own.
TASK DETAIL
https://phabricator.wikimedia.org/T85485
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Qgil
Cc: Aklapper, Qgil, Gryllida, Jdforrester-WMF, Rfarrand, pywikipedia-bugs
Rubin16 created this task.
Rubin16 added a subscriber: Rubin16.
Rubin16 added a project: pywikibot-core.
TASK DESCRIPTION
When I am running reflinks.py, the bot always crashes after the same article
https://ru.wikipedia.org/wiki/%D0%90%D0%BB%D0%BB%D0%B5%D1%8F_%D0%93%D0%B5%D…
I don't see anything bad in the article and it seems to be a script problem.
Traceback:
No changes were needed on [[Alleya polkovodcev (Yaroslavl')]] ***
No changes were needed on [[Alleya Geroev (Sankt-Peterburg)]] ***
Traceback (most recent call last):
File "core/pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "core/pwb.py", line 81, in run_python_file
main_mod.__dict__)
File "core/scripts/reflinks.py", line 846, in <module>
main()
File "core/scripts/reflinks.py", line 843, in main
bot.run()
File "core/scripts/reflinks.py", line 605, in run
compressed = io.StringIO(f.read())
TypeError: initial_value must be unicode or None, not str
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
TASK DETAIL
https://phabricator.wikimedia.org/T86462
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Rubin16
Cc: Aklapper, Rubin16, jayvdb, pywikipedia-bugs