Skip to content
Advertisement

_tkinter.TclError: can’t find package comm

Running into this issue when trying to utilize the comm package:

JavaScript

i’m using python 3.6.8 on windows 10

Advertisement

Answer

If you know the directory where the comm package is installed (either the directory containing the pkgIndex.tcl or the immediate parent directory), you should make sure that’s on Tcl’s auto_path before trying to package require the package. The function you need to do that is this:

JavaScript

For details of tkinter._stringify, which is massively underdocumented despite being very useful, see this other Stack Overflow question:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement