Terry J. Reedy added the comment: You closed prematurely. After _tkinter is built according to instructions, there is still the location mismatch bug, previously discussed, that causes 'import _tkinter' to fail with this somewhat misleading message "ImportError: DLL load failed: The specified module could not be found."
This is misleading because _tkinter.pyd, which is a dll, *is* found. But tcl86t?.dll and tk86t?.dll are not (? is 'g' or ''). They are not found because python looks for them in several directories, most non-existent, but not in the directory where they do reside. Also, PCBuild/readme.txt does not disclose the secret workaround for this mismatch, which is to manually copy them to PCBuild ('.' relative to the executable), which is one of the several places that are searched. Possible solutions: 1. Change repository builds by adding ../externals/tcltk/bin/ to the directory search list. I don't know where this list is. 2. Change build.bat to look for tcl86t?.dll in PCBuild instead of externals/tcltk/bin and add lines to move them to PCBuild after they are built. 3. Add an instruction in readme.txt to *copy* both to PCBuild. They should be copied rather than moved because build.bat would continue to look in externals/tcltk/bin to decide whether to compile or not. Either 1 or 2 since solve the search bug. I prefer this, especially since people may run build.bat without reading readme.txt in detail, or with having forgetten this important detail. ---------- resolution: wont fix -> stage: resolved -> needs patch status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25456> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com