Python-tk giving Xpm errors, can't find tkinter [unstable]
When I try to run a python script that uses Tk, I get:
### BEGIN INCLUDE
_kruto[p4]:~% grail&
[1] 25187
_kruto[p4]:~% python: can't resolve symbol 'XpmCreateXpmImageFromData']
python: can't resolve symbol '_IO_putc'
python: can't resolve symbol 'XpmFreeXpmImage'
python: can't resolve symbol 'XpmReadFileToXpmImage'
Traceback (innermost last):
File "/usr/local/bin/grail", line 33, in ?
import Tkinter # Do this first to avoid confusing ni on Mac/Win
File "/usr/lib/python1.4/tkinter/Tkinter.py", line 11, in ?
import tkinter
ImportError: No module named tkinter
[1] + exit 1 grail
### END INCLUDE
This just happened this week after a bulk upgrade. (Other than that the
upgrade went very smoothly.) By "bulk upgrade" I mean letting dselect
upgrade everything it thought necessary.
A similar problem happened to me several months ago. I don't remember the
error messages, but all python TK programs refused to run. It was solved
then by reinstalling tcl & tk. But this time around, I tried reinstalling
python-tk, tcl, tk, xpm and xlib, and none of them helped.
[python-tk]
Depends: python-base (= 1.4.0-4), libc5 (>= 5.4.0-0), tcl76 (>= 7.6-1),
tk42 (>= 4.2-1), xlib6 (>= 3.2-0)
ii python-base 1.4.0-4 An interactive object-oriented
ii python-tk 1.4.0-4 Tk support modules for Python.
ii libc5 5.4.33-7 The Linux C library version 5 (run-time
ii libc6 2.0.5c-0.1 The GNU C library version 2 (run-time
ii tcl76 7.6p2-7 The Tool Command Language (TCL) v7.6 -
ii tk42 4.2p2-7 The Tk toolkit for TCL and X11 v4.2 -
ii xlib6 3.3.1-2 Shared libraries required by X clients
ii xpm4.7 3.4j-0.5 X Pixmap libraries (for libc5) -
ii xpm4g 3.4j-0.5 X Pixmap libraries (for libc6) -
I think the real problem is those Xpm messages, because Tkinter.py tries
to import first _tkinter.py and if that fails, tkinter.py. If I import
_tkinter directly, I get fewer error messages:
_kruto[p4]:/usr/lib/python1.4/tkinter% python
Python 1.4 (Mar 4 1997) [GCC 2.7.2.1 Objective-C snapshot 960906]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _tkinter
python: can't resolve symbol 'XpmCreateXpmImageFromData'
python: can't resolve symbol '_IO_putc'
python: can't resolve symbol 'XpmFreeXpmImage'
python: can't resolve symbol 'XpmReadFileToXpmImage'
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: Unable to resolve symbol
>>>
************** MICHAEL SCOTT ORR <mso@jimpick.com> *****************
* * 1405 NE 56th Street, Seattle, WA 98105 USA * Russki *
* * Tel: +1 (206) 522-9627, fax: 328-6209 * Deutsch *
* * * Esperanto *
***************** (Insert silly quote here) ************************
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: