Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-31 Thread fiacre
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 t

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 8:21 AM, Michael Droettboom <[EMAIL PROTECTED]> 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 o

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread Ryan May
Michael Droettboom wrote: > 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,

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread Ryan May
fiacre wrote: > [EMAIL PROTECTED] $ emerge --searchdesc tk-devel > Searching... > [ Results for search key : tk-devel ] > [ Applications found : 0 ] > > > Evidently, gentoo has no tk-devl packages -- only gtk-devel ... which > leads me to believe the problem with the install has to do with the f

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread Michael Droettboom
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__', '_pyo

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread fiacre
[EMAIL PROTECTED] $ emerge --searchdesc tk-devel Searching... [ Results for search key : tk-devel ] [ Applications found : 0 ] Evidently, gentoo has no tk-devl packages -- only gtk-devel ... which leads me to believe the problem with the install has to do with the fact that I am not use Gtk.

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread Darren Dale
Do you have the tk-devel packages installed? When you run setup.py, there is a report at the beginning which lists all the required and optional dependencies, would you post that? On Friday 21 March 2008 08:52:40 am fiacre wrote: > I agree -- I don't believe it built correctly either ... > > Pyt

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread fiacre
I agree -- I don't believe it built correctly either ... Python 2.5.1 (r251:54863, Mar 20 2008, 04:03:41) [GCC 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from matplotlib.backends import _tkagg >>> _tkagg

Re: [matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-21 Thread Michael Droettboom
It looks like the _tkagg C extension didn't build correctly -- it really should have a tkinit method. Can you please try the following and send me the output (inside the Python interpreter)... >>> from matplotlib.backends import _tkagg >>> _tkagg.__file__ >>> dir(_tkagg) Thanks! Mike fiac

[matplotlib-devel] TKinter : 'module' object has no attribute 'tkinit'

2008-03-20 Thread fiacre
I'm running Idle via X forwarding to my Windows desktop (running Cygwin). I've installed tcl/tk and python with Tkinter as a backend. When I call pylab.show(), I always get the error : >>> pylab.show() Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.5/