Can't install from PyPi

Hi,

Upon trying to install Matplotlib from PyPi, I get the following error
message:

···

---
   Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/Users/dpo/.virtualenvs/tsp/build/matplotlib/setup.py", line
162, in <module>
        if check_for_tk() or (options['build_tkagg'] is True):
      File "setupext.py", line 832, in check_for_tk
        (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
Tkinter.TclVersion))
    IndexError: list index out of range
    Complete output from command python setup.py egg_info:
    basedirlist is: []
---

This concerns Matplotlib 1.0.1 on OSX 10.6.8 with Python 2.7 (home built as
a framework via Homebrew) in a virtual environment (if that matters).

Changing line 832 of setupext.py from

        (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
Tkinter.TclVersion))

to

        (Tkinter.__version__, Tkinter.TkVersion, Tkinter.TclVersion))

works, but this is the output I get during the build:

      Tkinter: Tkinter: $Revision$

Dominique
--
View this message in context: http://old.nabble.com/Can't-install-from-PyPi-tp32404788p32404788.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

Upon trying to install Matplotlib from PyPi, I get the following error
message:

---
    Traceback (most recent call last):
       File "<string>", line 14, in<module>
       File "/Users/dpo/.virtualenvs/tsp/build/matplotlib/setup.py", line
162, in<module>
         if check_for_tk() or (options['build_tkagg'] is True):
       File "setupext.py", line 832, in check_for_tk
         (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
Tkinter.TclVersion))
     IndexError: list index out of range
     Complete output from command python setup.py egg_info:
     basedirlist is: []
---

This is fixed in the git repo. I think it is a problem that arises only with some builds of Python 2.7.

Eric

···

On 09/05/2011 03:01 PM, dpo wrote:

This concerns Matplotlib 1.0.1 on OSX 10.6.8 with Python 2.7 (home built as
a framework via Homebrew) in a virtual environment (if that matters).

Changing line 832 of setupext.py from

         (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
Tkinter.TclVersion))

to

         (Tkinter.__version__, Tkinter.TkVersion, Tkinter.TclVersion))

works, but this is the output I get during the build:

       Tkinter: Tkinter: $Revision$

Dominique

efiring wrote:

Hi,

Upon trying to install Matplotlib from PyPi, I get the following error
message:

---
    Traceback (most recent call last):
       File "<string>", line 14, in<module>
       File "/Users/dpo/.virtualenvs/tsp/build/matplotlib/setup.py", line
162, in<module>
         if check_for_tk() or (options['build_tkagg'] is True):
       File "setupext.py", line 832, in check_for_tk
         (Tkinter.__version__.split()[-2], Tkinter.TkVersion,
Tkinter.TclVersion))
     IndexError: list index out of range
     Complete output from command python setup.py egg_info:
     basedirlist is: []
---

This is fixed in the git repo. I think it is a problem that arises only
with some builds of Python 2.7.

You may want to upload the fix to PyPi. That's where most people look for
matplotlib I would guess.

···

On 09/05/2011 03:01 PM, dpo wrote:

--
View this message in context: http://old.nabble.com/Can't-install-from-PyPi-tp32404788p32405040.html
Sent from the matplotlib - users mailing list archive at Nabble.com.