Opened 6 years ago

Last modified 11 months ago

#7986 new defect

Installation instruction

Reported by: sam@… Owned by:
Priority: high Component: TracMetrixPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Please list python-tk as the required component, because it is and it's not obvious to me until I turn on the log :)

2010-11-04 10:20:07,641 Trac[loader] DEBUG: Loading tracmetrixplugin.api from /home/sam/trac/pszhan/plugins/TracMetrixPlugin-0.1.8-py2.6.egg
2010-11-04 10:20:07,641 Trac[loader] DEBUG: Loading tracmetrixplugin.web_ui from /home/sam/trac/pszhan/plugins/TracMetrixPlugin-0.1.8-py2.6.egg
2010-11-04 10:20:07,645 Trac[loader] ERROR: Skipping "tracmetrixplugin.web_ui = tracmetrixplugin.web_ui": (can't import "ImportError: No module named _tkinter, please install the python-tk package")

Attachments (0)

Change History (7)

comment:1 Changed 6 years ago by rjollos

Thanks, I will take a look. I didn't realize that python-tk was a dependency, but we can take care of this by adding the dependency to

comment:2 Changed 6 years ago by rjollos

  • Status changed from new to assigned

I'm fairly new to Python, so not knowing any better I did a pretty ugly experiment to determine where this dependency was coming from. I removed python-tk from my system, and ran the following:

>>> from pylab import date2num, num2date, drange
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/pymodules/python2.6/matplotlib/", line 247, in <module>
    from matplotlib.pyplot import *
  File "/usr/lib/pymodules/python2.6/matplotlib/", line 78, in <module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/", line 25, in pylab_setup
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/", line 7, in <module>
    import Tkinter as Tk, FileDialog
  File "/usr/lib/python2.6/lib-tk/", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

Assuming pylab is the only package that depends on python-tk, we should be able to get rid of pylab as a dependency by using Trac's datetime utils. This will be one of the tasks in the major rework of this plugin.

The TracMetrixPlugin wiki page has been updated to list the dependency. The dependency will be added to on the next check-in.

comment:3 Changed 6 years ago by rjollos

(In [9432]) Added required packages to Refs #7986.

comment:4 Changed 6 years ago by rjollos

I added the other required packages to, but haven't figured out how to add python-tk as a requirement. Any ideas?

comment:5 Changed 5 years ago by rjollos

  • Priority changed from normal to high

comment:6 Changed 4 years ago by rjollos

  • Status changed from assigned to new

comment:7 Changed 11 months ago by rjollos

  • Owner rjollos deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.