-
Notifications
You must be signed in to change notification settings - Fork 30
"_tkinter.TclError: can't find package Tktable" when running the sample_test() function #1
Comments
I am working with Python 2.7.3 |
@mejaz The error is at this line:
I would advise you to ask this question on Stack Overflow by specifying the tkinter, tcl and tk tags in the question and of course mentioning this repository. You could also try to write an e-mail to the creator of this wrapper library: @gpolo. |
@mejaz Please, if you find an answer to your specific problem, share it with us. Also if you ask help about this problem, e.g. on Stack Overflow, try to tell us, because that would be helpful for whoever comes here to this repository and has this same issue. |
@mejaz Thanks for sharing it with everybody! I saw on SO that they marked your question as duplicate. Does any of the answers to the other duplicated question solve your problem at the end? |
The "duplicate" answer does not answer it completely, as it links to a page that considers only Windows. If you're using Linux, it depends on which package its package manager provides. There's a comment that mention There's a simple test you can do to check if this Python wrapper will be able to run:
the output from that will be either This might be confusing but this is a pure Python package named tktable, and it depends on Tktable which is an extension to Tk. |
sample_test()
function
sample_test()
function
Here's other info and more details regarding the installation of the Tcl/Tk extension widget tktable in case it's not installed and you get the error LinuxAs @gpip mentioned in the previous comment
Mac OS XFor Mac OS X,
I don't know if you would need to configure something else or not. WindowsI've not found any useful info apart from the one mentioned above. ActiveState TclWhat you could do also is install the ActiveState Tcl, which is a Tcl distribution provided by ActiveState, as the name suggests. There's a free community edition here. This distribution of Tcl should be shipped with a package manager, i.e. This could be a clean way to install NotesI don't guarantee that any of the previous suggestions and options will work out. |
I am getting this error on running
tktable.py
.It should run a
sample_test()
within the file.Error:
I get a similar error when I import tktable to my code and create an object.
Please suggest.
Thanks for your time.
The text was updated successfully, but these errors were encountered: