https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
Web browser: --- Bug ID: 57070 Summary: Syntax error in Weclome.py (possibly others) Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: sigilbaram@gmail.com Classification: Unclassified Mobile Platform: ---
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
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
--- Comment #1 from sigilbaram@gmail.com --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
Andre Klapper aklapper@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Syntax error in Weclome.py |Syntax error in Welcome.py |(possibly others) |(possibly others)
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- 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
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |PATCH_TO_REVIEW Ever confirmed|0 |1
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 95549 merged by Xqt: bug 57070 - syntax error in welcome.py
https://gerrit.wikimedia.org/r/95549
https://bugzilla.wikimedia.org/show_bug.cgi?id=57070
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org