https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
Bug ID: 68645 Summary: pywikibot.ui.editText imports gui which does not exist in core Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=60042
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |60042
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151973 had a related patch set uploaded by Mpaa: Bug 68645: ported gui.py to core
https://gerrit.wikimedia.org/r/151973
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 151973 merged by jenkins-bot: Bug 68645: ported gui.py to core
https://gerrit.wikimedia.org/r/151973
https://bugzilla.wikimedia.org/show_bug.cgi?id=68645
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org