Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 413393

Summary: dev-lang/python[tk] should depend on dev-tcltk/tix
Product: Gentoo Linux Reporter: John Keeping <john>
Component: [OLD] UnspecifiedAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 413433    
Bug Blocks:    

Description John Keeping 2012-04-24 17:11:07 UTC
Trying to use the Python Tix modules fails out-of-the-box because dev-tcltk/tix is not installed when Python is installed with the tk USE flag enabled.

Manually emerging dev-tcltk/tix makes everything work, but this should be pulled in as a dependency of Python since it is required by the builtin Tix module.

Tested with dev-lang/python-2.7.3 and dev-lang/python-3.2.2-r1.

Reproducible: Always

Steps to Reproduce:
python2 -c 'import Tix; Tix.Tk().mainloop()'

OR

python3 -c 'import tkinter.tix as t; t.Tk().mainloop()'
Actual Results:  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/lib-tk/Tix.py", line 225, in __init__
    self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix


Expected Results:  
A Tk window should appear.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-04-25 00:28:33 UTC
dev-tcltk/tix needs to be firstly keyworded on remaining architectures.
Comment 2 Mike Gilbert gentoo-dev 2014-05-10 01:45:11 UTC
+*python-3.2.5-r4 (10 May 2014)
+
+  10 May 2014; Mike Gilbert <floppym@gentoo.org> +python-3.2.5-r4.ebuild,
+  python-2.7.6-r1.ebuild, python-3.3.5.ebuild, python-3.4.0.ebuild:
+  Add optional dependency on dev-tcltk/tix, bug 413393 by John Keeping.