Last modified: 2014-10-26 02:33:05 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 T74504, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72504 - redirect.py depends on extension:WikiEditor being installed
redirect.py depends on extension:WikiEditor being installed
Status: NEW
Product: Pywikibot
Classification: Unclassified
redirect.py (Other open bugs)
compat-(1.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-24 23:26 UTC by Betacommand
Modified: 2014-10-26 02:33 UTC (History)
2 users (show)

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


Attachments

Description Betacommand 2014-10-24 23:26:51 UTC
Traceback (most recent call last):
  File "C:\rewrite\pwb.py", line 178, in <module>
    run_python_file(fn, argv, argvu)
  File "C:\rewrite\pwb.py", line 75, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "C:\rewrite\scripts\redirect.py", line 814, in <module>
    main()
  File "C:\rewrite\scripts\redirect.py", line 811, in main
    bot.run()
  File "C:\rewrite\scripts\redirect.py", line 714, in run
    self.fix_double_redirects()
  File "C:\rewrite\scripts\redirect.py", line 526, in fix_double_redirects
    self.fix_1_double_redirect(redir_name)
  File "C:\rewrite\scripts\redirect.py", line 597, in fix_1_double_redirect
    'wikieditor-toolbar-tool-redirect-example')
  File "C:\rewrite\pywikibot\site.py", line 1807, in mediawiki_message
    return self.mediawiki_messages([key])[key]
  File "C:\rewrite\pywikibot\site.py", line 1795, in mediawiki_messages
    % locals())
KeyError: "Site local:en has no message 'wikieditor-toolbar-tool-redirect-exam
ple'"
<type 'exceptions.KeyError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Comment 1 Fabian 2014-10-24 23:53:20 UTC
Could you provide the query result? The parameters are the following: api.php?action=query&meta=allmessages&ammessages=wikieditor-toolbar-tool-redirect-example&amlang=en
Comment 2 Betacommand 2014-10-24 23:57:17 UTC
{
	"query": {
		"allmessages": [
			{
				"name": "wikieditor-toolbar-tool-redirect-example",
				"missing": ""
			}
		]
	}
}
Comment 3 Gerrit Notification Bot 2014-10-24 23:58:26 UTC
Change 168728 had a related patch set uploaded by XZise:
[FIX] Redirect: Allow missing toolbar example

https://gerrit.wikimedia.org/r/168728
Comment 4 Betacommand 2014-10-25 00:06:30 UTC
Actually this bug is bigger, it relies on an extension:WikiEditor for translating instead of core mediawiki
Comment 5 Gerrit Notification Bot 2014-10-25 02:23:40 UTC
Change 168728 merged by jenkins-bot:
[FIX] Redirect: Allow missing toolbar example

https://gerrit.wikimedia.org/r/168728
Comment 6 John Mark Vandenberg 2014-10-25 05:43:10 UTC
bug fixed in core; the same bug exists in the same script in compat.

>>> import wikipedia.py
>>> from wikipedia import pywikibot
>>> s = pywikibot.Site('en', 'lyricwiki')
>>> s.mediawiki_message('wikieditor-toolbar-tool-redirect-example')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "wikipedia.py", line 7645, in mediawiki_message
    raise KeyError("message '%s' does not exist." % key)
KeyError: "message 'wikieditor-toolbar-tool-redirect-example' does not exist."

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


Navigation
Links