Last modified: 2013-11-15 08:49:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59070, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57070 - Syntax error in Welcome.py (possibly others)
Syntax error in Welcome.py (possibly others)
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-14 19:27 UTC by sigilbaram
Modified: 2013-11-15 08:49 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description sigilbaram 2013-11-14 19:27:57 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
Comment 1 sigilbaram 2013-11-14 20:22:40 UTC
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.
Comment 2 Gerrit Notification Bot 2013-11-14 21:40:26 UTC
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
Comment 3 Gerrit Notification Bot 2013-11-14 23:25:05 UTC
Change 95549 merged by Xqt:
bug 57070 - syntax error in welcome.py

https://gerrit.wikimedia.org/r/95549

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links