Re: Looking for help getting tkinter to work.



On Nov 1, 4:06 am, Shue Boks <shoebox56car...@xxxxxxxxx> wrote:
I tried to compile Python and Tcl/Tk on Linux using the following
files:

Python-3.1.1.tar.gz
tcl8.5.7-src.tar.gz

Cannot get tkinter to work after compiling & installing Tcl/Tk.  I get
the following error after compiling Python:

"Python build finished, but the necessary bits to build these modules
were not found:
_tkinter
To find the necessary bits, look in setup.py in detect_modules() for
the module's name."

Are the above files the correct versions to get tkinter to work?

Thanks.

The version should be ok. I just compiled python3.1 against tcl/tk
8.5, only I used
the tcl/tk development packages coming with my distribution (Ubuntu).
I used
../configure --with-tk, so if you did not, try that first.

Did you run 'make install' during tcl/tk installation _before_ doing ./
configure in python source
directory?

If so, look where the library files ( e.g. libtk8.5.so ) and include
files (e.g tk.h ) have been placed
and check against the places where the function 'detect_tkinter' in
'setup.py' looks for them.

Ciao
-----
FB
.



Relevant Pages

  • Re: ActiveState Python v2.5 doesnt come with Tkinter or Tk installed.
    ... Now I would like to take up Tkinter. ... I'm using Active State Python ... For MacOS X this should not happen because Tcl/Tk is already available. ... But the best Python for MacOS X is the binary installer from python.org ...
    (comp.lang.python)
  • Re: ActiveState Python v2.5 doesnt come with Tkinter or Tk installed.
    ... Now I would like to take up Tkinter. ... I'm using Active State Python ... For MacOS X this should not happen because Tcl/Tk is already available. ... But the best Python for MacOS X is the binary installer from python.org ...
    (comp.lang.python)
  • Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9
    ... Linguistics and I am a python user. ... But when I try to import Tkinter ... Where is your installation of Tcl/Tk? ...
    (comp.lang.python)
  • Tkinter problem
    ... Python 2.4 and tcl/tk 8.4. ... > from Tkinter import * ...
    (comp.lang.python)
  • Re: ANN: PyGUI 2.1
    ... Also these stated goals are what every GUI package should aspire to. ... Develop a GUI API that is designed specifically for Python, ... But even Tkinter needs more details! ... i can't sacrifice the widget set. ...
    (comp.lang.python)