New submission from Debarshi Goswami: Tkinter is not working when I set PYTHONPATH using Py_SetPath before Initialization in an application embedding Python interpreter.
Any call to Py_SetPath is screwing up Tkinter with an error traceback - ----------------------------------------------------- 'Line 1789: Traceback (most recent call last): File "TestTK.py", line 33, in <module> File "C:\Python33\Lib\tkinter\__init__.py", line 1789, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: Can't find a usable init.tcl in the following directories: C:/Python33/lib/tcl8.5 .... and so on This probably means that Tcl wasn't installed properly. ------------------------------------------------------------- But if set the 2 environment variable it works fine set TCL_LIBRARY=C:\Python33\tcl\tcl8.5\ set TK_LIBRARY=C:\tcl\tk8.5\ If Py_SetPath is not called tkinter works well and tkwindow can be launched. I am using Windows7 64 and Python 3.3.2 ---------- components: Tkinter messages: 202825 nosy: Debarshi.Goswami priority: normal severity: normal status: open title: Tkinter is not working with Py_SetPath versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19582> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com