Quantcast
Channel: ActiveState Community Site - Installation Support for ActivePython
Viewing all articles
Browse latest Browse all 48

TkInter not working in fresh install of Python 2.7 on Windows 10

$
0
0

After installing ActivePython-2.7.10.12-win64-x64 on a fresh copy of Windows 10, TkInter python fails to initialise with

File "C:\Python27\lib\lib-tk\Tkinter.py", line 1814, 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:/Python27/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.18/library C:/tcl8.5.18/library

Looking in C:/Python27/, I can see that tcl8.5 with init.tcl are actually installed in C:/Python/tcl/tcl8.5 not in C:/Python/lib/tcl8.5. That is, in a /tcl/ subdirectory, not the /lib/ subdirectory.

Copying the contents of the /tcl/ subdirectory into the /lib/ subdirectory seems to fix this, but surely I shouldn't have to do that.

Is this a bug in recent ActivePython installers? I didn't have this problem last time I did a fresh install, but that was a year ago or so.


Viewing all articles
Browse latest Browse all 48

Trending Articles