Last modified: 2013-11-15 08:49:42 UTC
I downloaded the current nightly build (2013/11/13) and tried running Welcome.py and there was a syntax error on line 590. I removed the newline between 589 and 590 since it looked out of place (my python experience is limited). The script ran, but on page creation recieced a "No JSON object could be decoded" error. Pageformfile.py successfully created the page so I would guess the error is likely in welcome.py itself (possibly that my fix for the syntax error was wrong). I just went to run the script again for an exact error message and the page created this time. It failed several times before this last attempt... strange. Anyway, the syntax error is still applicable, if nothing else. PS E:\compat> python -V Python 2.7.6 PS E:\compat> python version.py WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows 'git' is not recognized as an internal or external command, operable program or batch file. Pywikibot: wikipedia.py (r-1 (unknown), 3179f1c, 2013/11/13, 15:01:08, OUTDATED) Release version: 1.0b1 Python: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: ok
After testing a little further it looks like the JSON errors are probably just some kind of issue on our servers, perhaps related to caching or somesuch. I've received JSON errors from other scripts beside welcome.py shortly after login, but after the bot works the first time for any script all the scripts (including my fixed welcome.py) work fine. Sorry for the unrelated issue.
Change 95549 had a related patch set uploaded by Merlijn van Deen: bug 57070 - syntax error in welcome.py https://gerrit.wikimedia.org/r/95549
Change 95549 merged by Xqt: bug 57070 - syntax error in welcome.py https://gerrit.wikimedia.org/r/95549