On 9/9/2013 1:14 AM, Westley Martínez wrote:
Hello. Can anyone tell me how to build tkinter on Windows? I've downloaded the source, ran Tools/buildbot/external.bat to build the external dependencies. I copied tcl85g.dll and tk85g.dll to PCBuild. I built the Visual Studio solution. Everything built fine without errors. Everything seems to work except tkinter. It says:Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...\cpython-idle\lib\tkinter\__init__.py", line 36, in <module> from tkinter import _fix File "...\cpython-idle\lib\tkinter\_fix.py", line 65, in <module> import _tkinter ImportError: DLL load failed: The specified module could not be found. I'm thinking I didn't put the DLLs in the right place, but I don't have any idea where to put them and Google isn't helping.
Some combination of the README instructions, external.bat, and the project files are not correct. There may be an issue on the tracker. I believe I copied tcl85g.dll and tk85g.dll into .../py3x/pcbuild from .../tcltk/bin and that resolved the problem for me. But you say you did that. Did _tkinter_d.pyd get built (in pcbuild)?
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
