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
PhantomTech created this task.
PhantomTech added a subscriber: PhantomTech.
PhantomTech added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
No problems running locally but when on labs using getcurrenttime() is causing issues. getcurrenttime() always seems to be returning the same time, deleting everything in apicache makes the time update once but then it goes back to repeating so it's probably a caching issue.
TASK DETAIL
https://phabricator.wikimedia.org/T94293
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: PhantomTech
Cc: pywikipedia-bugs, Aklapper, PhantomTech, jayvdb
happy5214 added a subscriber: happy5214.
happy5214 added a comment.
I'll try this one. It'll be a good first step in learning the Pywikibot codebase and the testing framework.
TASK DETAIL
https://phabricator.wikimedia.org/T57113
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: happy5214
Cc: happy5214, Legoktm, jayvdb, Ladsgroup, pywikipedia-bugs
akashagarwal added a comment.
Hi @jayvdb, @Mattflaschen, @Legoktm , thanks for volunteering to mentor for this project and putting up a clear description for it.
I am a bit late at this but will try to iterate on my proposal based on your feedback. Currently, I have tried to quickly put in, my understanding of Flow and what needs to be done to implement its support in Pywikibot.
Also, I plan to work on more micro tasks and go through the code base / testing framework soon.
TASK DETAIL
https://phabricator.wikimedia.org/T67119
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: akashagarwal
Cc: akashagarwal, happy5214, Legoktm, gerritbot, rmoen, EBernhardson, NiharikaKohli, Capt_Swing, Qgil, jayvdb, Mattflaschen, Xqt, Ricordisamoa, Multichill, Ladsgroup, Imaculate, matthiasmullie, Gryllida, Spage, Quiddity, pywikipedia-bugs