Problems with IDLE in Windows 8.1 and installer x86 Version 3.10.8

Eryk Sun eryksun at gmail.com
Sat Nov 12 14:47:00 EST 2022


On 11/12/22, darkstone at o2online.de <darkstone at o2online.de> wrote:
>
>>>> import _tkinter
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: DLL load failed while importing _tkinter: Das angegebene Modul
> wurd
> e nicht gefunden.

Loading the extension module "_tkinter.pyd" tries to load two TCL/Tk
DLL files that should be in the same directory: "tcl86t.dll" and
"tk86t.dll". Previously I asked you to look for these two files, and
you said they were there, but maybe one is corrupt.

Please try the following in the interactive shell:

    import os, sys, ctypes
    tcl86 = os.path.join(sys.prefix, 'DLLs', 'tcl86t.dll')
    tk86 = os.path.join(sys.prefix, 'DLLs', 'tk86t.dll')

Run the following two statements one after the other in the shell:

    ctypes.CDLL(tcl86)
    ctypes.CDLL(tk86)

Either or both will fail if the DLL or one of its dependencies can't
be found or loaded.


More information about the Python-list mailing list