1 Apr 03:42
Re: TKinter : 'module' object has no attribute 'tkinit'
As it happens, the box I was working on totally borked (hardware problem). I've built a CentOS box and am running fine now --- I made a point of installing X, gtk, cairo, tcl, tk and other graphics libs before building python and matplotlib on the box. So, the problems seems to be related to the way python and/or Tkinter was built. X was not on the box when I built python initially. * shrug * Things work nicely now. Michael Droettboom wrote: > It doesn't look like a faulty X setup, and since you *do* get a > window, it's unlikely it's a Tkinter problem. > > The fishy thing here is that _tkagg should be a C extension, have a > .so file extension and have only the following members --> > > >>> dir(_tkagg) > ['__doc__', '__file__', '__name__', '_pyobj_addr', 'tkinit'] > > tkagg (without the underscore), on the other hand, is a true Python > module, would have a .pyc extension and all of the members you posted. > > So, somehow, tkagg got renamed to _tkagg on your system. I'm not sure > how the build script may have done that. Does removing > > /usr/lib/python2.5/site-packages/matplotlib/backends/_tkagg.pyc >(Continue reading)
RSS Feed