Nat Echols, on 2011-06-28 12:58,  wrote:
> We started using Python 2.7.2 a week or two ago, and I'm now running into
> this problem when attempting to build matplotlib 1.0.1 on several of our
> machines:
> 
> Traceback (most recent call last):
>   File "setup.py", line 162, in <module>
>     if check_for_tk() or (options['build_tkagg'] is True):
>   File
> "/Volumes/Scratch1/nat/phenix_installer/build-source/mac-intel-osx/patchnose/tmp/matplotl
> ib-1.0.1/setupext.py", line 832, in check_for_tk
>     (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
> Tkinter.TclVersion))
> IndexError: list index out of range
> 
> When I run the version of Python that I'm using to build matplotlib, this is
> what I'm seeing:
> 
> >>> import Tkinter
> >>> Tkinter.__version__
> '$Revision$'

Hi Nat,
 
It's strange that your Tkinter got built without a typical
version string. For me:

In [1]: import Tkinter

In [2]: Tkinter.__version__
Out[2]: '$Revision: 73770 $'

In [3]: Tkinter.__version__.split()[-2]
Out[3]: '73770'

> I don't need or want Tkinter support either in Python or in matplotlib, but
> it appears to be impossible to disable Tkinter when compiling Python.  Is
> there a way around this problem without patching the Python build, or
> matplotlib, or both?

I'm not sure about Python, but for matplotlib, just add these two
lines to your setup.cfg (or create one with these two lines in
it):

[gui_support]
tkagg = False

You can read the setup.cfg.template for a full explanation (and
other install options available to you).A

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to