Vodenbot created this task.
Vodenbot added projects: PAWS, Pywikibot.
Restricted Application added a subscriber: pywikibot-bugs-list.

TASK DESCRIPTION

Hello,
I am using pywikibot in PAWS. - https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS
Username:Vodenbot

I would like to run imagecopy.py script to copy images from a wikimedia wiki (from az wiki) to Commons.

I receive an error: ImportError: No module named '_tkinter', please install the python3-tk package

@PAWS:~$ pwb.py imagecopy.py -lang:az -cat:"Fayllar:Azad fayllar"
Retrieving 3 pages from wikipedia:az.
Traceback (most recent call last):

File "/usr/lib/python3.6/tkinter/__init__.py", line 37, in <module>
  import _tkinter

ModuleNotFoundError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/srv/paws/pwb/pwb.py", line 257, in <module>
  if not main():
File "/srv/paws/pwb/pwb.py", line 250, in main
  run_python_file(filename, [filename] + args, argvu, file_package)
File "/srv/paws/pwb/pwb.py", line 119, in run_python_file
  main_mod.__dict__)
File "/srv/paws/pwb/scripts/imagecopy.py", line 594, in <module>
  main()
File "/srv/paws/pwb/scripts/imagecopy.py", line 555, in main
  imagepage.templates()).getnewname()
File "/srv/paws/pwb/scripts/imagecopy.py", line 401, in __init__
  raise Tkinter
File "/srv/paws/pwb/scripts/imagecopy.py", line 91, in <module>
  from pywikibot.userinterfaces.gui import Tkdialog, Tkinter
File "/srv/paws/pwb/pywikibot/userinterfaces/gui.py", line 24, in <module>
  import tkinter as Tkinter
File "/usr/lib/python3.6/tkinter/__init__.py", line 39, in <module>
  raise ImportError(str(msg) + ', please install the python3-tk package')

ImportError: No module named '_tkinter', please install the python3-tk package
<class 'ImportError'>
CRITICAL: Closing network session.
@PAWS:~$

my settings:
@PAWS:~$ python
Python 3.6.3 (default, Oct 3 2017, 21:45:48)

[GCC 7.2.0] on linux

I am using Red Hat Enterprise Linux (RHEL) 7.5 as OS and CLI in PAWS

How can I install/use this module or package that I need?


TASK DETAIL
https://phabricator.wikimedia.org/T208463

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Vodenbot
Cc: Vodenbot, pywikibot-bugs-list, Wenyi, R96340, Chicocvenancio, Allthingsgo, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Avicennasis, mys_721tx, Jane023, yuvipanda, Capt_Swing, jayvdb, zhuyifei1999, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to