Last modified: 2014-11-02 12:18:04 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 T70797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68797 - script_wui hardcoded to use User:DrTrigon
script_wui hardcoded to use User:DrTrigon
Status: NEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
: easy
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-07-29 10:10 UTC by John Mark Vandenberg
Modified: 2014-11-02 12:18 UTC (History)
2 users (show)

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


Attachments

Description John Mark Vandenberg 2014-07-29 10:10:29 UTC
scripts/script_wui.py fails with horrible backtrace if not configured.

$ python pwb.py scripts/script_wui.py
* Initialization of bot
** Redirecting Lua print in order to catch it
** Pre-loading all relevant page contents
Traceback (most recent call last):
  File "pwb.py", line 157, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/script_wui.py", line 292, in <module>
    main()
  File "scripts/script_wui.py", line 283, in main
    bot = ScriptWUIBot(site, chan, site.user() + "_WUI", "irc.wikimedia.org")
  File "scripts/script_wui.py", line 137, in __init__
    self.refs[item].get(force=True)   # load all page contents
  File "...pywikibot/__init__.py", line 432, in wrapper
    return method(*__args, **__kw)
  File "...pywikibot/__init__.py", line 432, in wrapper
    return method(*__args, **__kw)
  File "...pywikibot/page.py", line 315, in get
    self._getInternals(sysop)
  File "...pywikibot/page.py", line 339, in _getInternals
    self.site.loadrevisions(self, getText=True, sysop=sysop)
  File ".../pywikibot/site.py", line 2024, in loadrevisions
    raise NoPage(page)
pywikibot.exceptions.NoPage: Page [[en:User:DrTrigon/DrTrigonBot/script wui-shell.css]] doesn't exist.
<class 'pywikibot.exceptions.NoPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

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


Navigation
Links