- 
                Notifications
    
You must be signed in to change notification settings  - Fork 54
 
Description
For the Debian package of ttkthemes, I got a the bug report Debian#1021389:
When this package is installed, 'tclsh' (the Tcl interpreter, provided by debian package 'tcl') becomes broken in such a way that it's no longer possible to import/load the Tk graphics/gui extension (provided by debian package 'tk').
Although I'm reporting from a Debian Stable system, this bug is happening in Ubuntu too, and this package seems obscure so I assume this may still be an issue that nobody else has noticed or fixed yet.
Steps to reproduce:
- Start a X windows/desktop session.
 - Install debian packages 'tcl', and 'tk', and 'tcl-ttkthemes', perhaps with this command or similar:
 sudo apt-get install tcl tk tcl-ttkthemes- Create a text file with the name 'test.tcl' and put these lines in it:
 package require Tk pack [ label .l -text "Debian" ]- Open a terminal window and run this command:
 tclsh test.tcl- Observe that this error message is printed and the script exits:
 circular package dependency: attempt to provide Tk Ϻ£ü requires Tk while executing "package require Tk" (file "test.tcl" line 1)- Uninstall debian package 'tcl-ttkthemes'.
 - Run 'tclsh test.tcl' again, and note that this time the error is not printed and the script opens a window with text "Debian" in it.
 
The reason for this seems the lines
| package require Tk 8.6 | 
and
ttkthemes/ttkthemes/png/pkgIndex.tcl
Line 5 in 87fa24f
| package require Tk 8.6 | 
which were introduced in 87fa24f (part of #66).
Removing these lines fixes the problem; however I am not sure whether ttkthemes then still works properly. Can you check that?