Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53857

Re: Building tkinter on Windows

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Building tkinter on Windows
Date 2013-09-09 03:43 -0400
References <6df18f7b-d8d1-4fd3-b9dc-6a06e46fb04b@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.165.1378712610.5461.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Building tkinter on Windows Westley Martínez <anikom15@gmail.com> - 2013-09-08 22:14 -0700
  Re: Building tkinter on Windows Terry Reedy <tjreedy@udel.edu> - 2013-09-09 03:43 -0400
    Re: Building tkinter on Windows Westley Martínez <anikom15@gmail.com> - 2013-09-09 22:51 -0700

csiph-web