Comment 0 for bug 1735451

Revision history for this message
Jan Winkler (jcwinkler) wrote :

I am one of the developers of TexText, a plugin enabling the user to put LaTeX rendered input as svg nodes into the document. Under Inkscape 0.92.2, Windows 7 (64-bit) the instantiation of Tk-objects fails in the provided Python distribution of Inkscape.

Steps to reproduce:
1. Change into the installation directory of Inkscape (e.g. c:\Program Files\Inkscape\)
2. Open a command prompt and start the Python interpreter
3. Enter
   import Tkinter as tk
4. Enter
   root = tk.Tk()

The last step results in the following message:

--
c:\Program Firoot=tk.Tk()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Program Files\Inkscape\lib\python2.7\lib-tk/Tkinter.py", line 1820, i
n __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    {c:/Program Files/lib/tcl8.6} {c:/Program Files/lib/tcl8.6} c:/lib/tcl8.6 {c
:/Program Files/library} c:/library c:/tcl8.6.6/library c:/tcl8.6.6/library

This probably means that Tcl wasn't installed properly.les\Inkscape\
--

I do not find an init.tcl anywhere (although tcl86.dll and tk86.dll are available in the provided Inkscape-python distribution) and I am wondering about the listed paths. Does anyone of the Windows binary packagers has an idea how this fix this issue? The tk