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


Groups > comp.lang.python > #53854 > unrolled thread

Building tkinter on Windows

Started byWestley Martínez <anikom15@gmail.com>
First post2013-09-08 22:14 -0700
Last post2013-09-09 22:51 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#53854 — Building tkinter on Windows

FromWestley Martínez <anikom15@gmail.com>
Date2013-09-08 22:14 -0700
SubjectBuilding tkinter on Windows
Message-ID<6df18f7b-d8d1-4fd3-b9dc-6a06e46fb04b@googlegroups.com>
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.

[toc] | [next] | [standalone]


#53857

FromTerry Reedy <tjreedy@udel.edu>
Date2013-09-09 03:43 -0400
Message-ID<mailman.165.1378712610.5461.python-list@python.org>
In reply to#53854
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

[toc] | [prev] | [next] | [standalone]


#53901

FromWestley Martínez <anikom15@gmail.com>
Date2013-09-09 22:51 -0700
Message-ID<2168578f-1183-4bcc-a2f2-828d9faef0c2@googlegroups.com>
In reply to#53857
On Monday, September 9, 2013 12:43:16 AM UTC-7, Terry Reedy wrote:
> 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)?

Well, after doing a clean clone and rebuilding everything it worked.  I'm not sure what the issue was, but something must've went wrong the first time.

I see you've opened an issue about this.  I think the README definitely needs to be updated.  It's not very user friendly and is somewhat ambiguous.  Also, I think the dev guide could be improved as well.  I think Windows users (actually, I'm more of Linux user, but whatever) tend to get the short end of the stick in a lot of open-source projects.  I think that's a trend that needs to change.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web