Page MenuHomePhabricator

editor.py - specialbots.py: When tkinter is not installed, bot turn in a loop
Closed, ResolvedPublic

Description

python pwb.py upload https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Crystal_Clear_app_display.png/80px-Crystal_Clear_app_display.png -verbose -simulate
Pywikibot rcec265f457d36f98834319f3ad6392664a414035
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118]
Found 1 wikipedia:fr processes running, including this one.
APISite("fr", "wikipedia").login(False) called when a previous login was in progress.
The filename on the target wiki will default to: 80px-Crystal_Clear_app_display.png
Enter a better name, or press enter to accept: 
No description was given.
It is not possible to upload a file without a description. Please enter a description in the window.
ERROR: Could not load GUI modules: No module named _tkinter, please install the python-tk package
No editor available.
Set your favourite editor in user-config.py "editor", or install python packages tkinter and idlelib, which are typically part of Python but may be packaged separately on your platform.

It is not possible to upload a file without a description. Please enter a description in the window.
ERROR: Could not load GUI modules: No module named _tkinter, please install the python-tk package
No editor available.
Set your favourite editor in user-config.py "editor", or install python packages tkinter and idlelib, which are typically part of Python but may be packaged separately on your platform.

It is not possible to upload a file without a description. Please enter a description in the window.
ERROR: Could not load GUI modules: No module named _tkinter, please install the python-tk package
No editor available.
Set your favourite editor in user-config.py "editor", or install python packages tkinter and idlelib, which are typically part of Python but may be packaged separately on your platform.

../..

I found this in upload.py/specialbots.py, but I think that we must verify others scripts.

Details

Event Timeline

Change 349789 had a related patch set uploaded (by Xqt):
[pywikibot/core@master] [bugfix] Raise NotImplementedError if no editor is available

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

Xqt triaged this task as Medium priority.
Framawiki renamed this task from When tkinter is not installed, bot turn in a loop to editor.py - specialbots.py: When tkinter is not installed, bot turn in a loop.Apr 25 2017, 11:00 PM

Change 349789 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Raise ImportError if no editor is available

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