Dean, On Tue, Feb 01, 2005 at 08:01:13AM -0800, Dean N. Williams wrote: > I am getting the following error message from the Python build: > > Traceback (most recent call last): > File "<string>", line 1, in ? > File "/usr/local/ASD_work/cdat/lib/python2.4/lib-tk/Tkinter.py", line > 38, in ? > import _tkinter # If this fails your Python may not be configured for Tk > ImportError: No module named _tkinter > Python Tkinter import failed. > > > Have you seen this type of error message before?
No. > I've attached the following log files for each build. It appears you did not carefully read the build logs yourself: building '_tkinter' extension gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.5.12-i686-2.4/_tkinter.o build/temp.cygwin-1.5.12-i686-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/ASD_work/cdat/lib -L/usr/local/lib -L. -ltk8.4 -ltcl8.4 -lpython2.4 -o build/lib.cygwin-1.5.12-i686-2.4/_tkinter.dll /usr/local/ASD_work/cdat/lib/libtk8.4.a(tkWindow.o)(.text+0x1093):tkWindow.c: undefined reference to `_XDestroyWindow' ... collect2: ld returned 1 exit status Hence, you were unsuccessful building _tkinter. This is why the import above fails. > [snip] > > What else am I missing to do? Using the pre-built Python and Tcl/Tk packages that are part of the standard Cygwin distribution instead of attempting to build your own. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- http://mail.python.org/mailman/listinfo/python-list