Last modified: 2014-08-06 06:10:34 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 T70645, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68645 - pywikibot.ui.editText imports gui which does not exist in core
pywikibot.ui.editText imports gui which does not exist in core
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized major
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: 60042
  Show dependency treegraph
 
Reported: 2014-07-27 00:10 UTC by John Mark Vandenberg
Modified: 2014-08-06 06:10 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-07-27 00:10:38 UTC
If config.editor does not have a value, which is the default, pywikibot falls back to using an internal editor, and fails.

In pywikibot/editor.py TextEditor.edit(), pywikibot.ui.editText() is invoked.

Many scripts use TextEditor:
replace.py
selflink.py
upload.py
catall.py
spamremove.py
solve_disambiguation.py
unlink.py
blockpageschecker.py
editarticle.py

The easiest way to show the problem is with the script editarticle.py

$ python pwb.py editarticle -family:wikipedia -lang:en -p "Test page"
Could not load GUI modules: No module named gui
Nothing changed

The module gui from compat was not ported to core.
http://git.wikimedia.org/history/pywikibot%2Fcompat.git/master/gui.py
Comment 1 Gerrit Notification Bot 2014-08-05 21:40:14 UTC
Change 151973 had a related patch set uploaded by Mpaa:
Bug 68645: ported gui.py to core

https://gerrit.wikimedia.org/r/151973
Comment 2 Gerrit Notification Bot 2014-08-05 23:21:23 UTC
Change 151973 merged by jenkins-bot:
Bug 68645: ported gui.py to core

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

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


Navigation
Links