Skip to content

ttkthemes breaks Tk #93

@olebole

Description

@olebole

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:

  1. Start a X windows/desktop session.
  2. Install debian packages 'tcl', and 'tk', and 'tcl-ttkthemes', perhaps with this command or similar:
     sudo apt-get install tcl tk tcl-ttkthemes
    
  3. Create a text file with the name 'test.tcl' and put these lines in it:
    package require Tk
    pack [ label .l -text "Debian" ]
    
  4. Open a terminal window and run this command:
     tclsh test.tcl
    
  5. 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)
    
  6. Uninstall debian package 'tcl-ttkthemes'.
  7. 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
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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions