[issue24771] Cannot import _tkinter in Python 3.5 on Windows

eryksun report at bugs.python.org
Sat Aug 1 21:34:20 CEST 2015


eryksun added the comment:

64-bit 3.5.0b4 works for me in Windows 7. Try loading _tkinter.pyd in [Dependency Walker][1]. Or try loading the dependent DLLs directly via ctypes:

    import os
    import _ctypes

    dlls_path = os.path.dirname(_ctypes.__file__)
    for d in ('tcl86t.dll', 'tk86t.dll'):
        path = os.path.join(dlls_path, d)
        try:
            _ctypes.LoadLibrary(path)
        except OSError:
            print('failed:', path)

[1]: http://dependencywalker.com

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24771>
_______________________________________


More information about the Python-bugs-list mailing list