Index Out of Range Error after Installation on RHEL5

Hi,

I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to install matplotlib. Installation occurs without any error messages although I do get a bunch of warnings at the end.

/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching for -ltcl8.4
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

When I try using matplotlib I get the following error:

Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import matplotlib.pyplot as plt
plt.plot([1,0],[2,3])

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py", line 2141, in plot
    ret = ax.plot(*args, **kwargs)
  File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py", line 3437, in plot
    self.autoscale_view(scalex=scalex, scaley=scaley)
  File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py", line 1624, in autoscale_view
    XL = self.xaxis.get_major_locator().view_limits(x0, x1)
  File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py", line 1014, in view_limits
    return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
  File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py", line 103, in take
    return take(indices, axis, out, mode)
IndexError: index out of range for array

Any help would be appreciated. I've tried several versions of matplotlib. I also was able to get it installed on a different RHEL5 machine a while back and am not sure what is different about this machine.

thanks

- dharhas

Dharhas,

Is it possible to find out which version of python was installed for your other RHEL5 machine? I don’t know if that makes a difference or not, but RHEL5 by default uses Python 2.4.

Ben Root

···

On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina <Dharhas.Pothina@…3115…> wrote:

Hi,

I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to install matplotlib. Installation occurs without any error messages although I do get a bunch of warnings at the end.

/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4

/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching for -ltcl8.4

/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype

/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz

/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc

/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

When I try using matplotlib I get the following error:

Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)

[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2

Type “help”, “copyright”, “credits” or “license” for more information.

import matplotlib.pyplot as plt

plt.plot([1,0],[2,3])

Traceback (most recent call last):

File “”, line 1, in

File “/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py”, line 2141, in plot

ret = ax.plot(*args, **kwargs)

File “/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py”, line 3437, in plot

self.autoscale_view(scalex=scalex, scaley=scaley)

File “/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py”, line 1624, in autoscale_view

XL = self.xaxis.get_major_locator().view_limits(x0, x1)

File “/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py”, line 1014, in view_limits

return np.take(self.bin_boundaries(dmin, dmax), [0,-1])

File “/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py”, line 103, in take

return take(indices, axis, out, mode)

IndexError: index out of range for array

Any help would be appreciated. I’ve tried several versions of matplotlib. I also was able to get it installed on a different RHEL5 machine a while back and am not sure what is different about this machine.

thanks

  • dharhas

ThinkGeek and WIRED’s GeekDad team up for the Ultimate

GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the

lucky parental unit. See the prize list and enter to win:

http://p.sf.net/sfu/thinkgeek-promo


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Ben,

The matplotlib on the other working machine is using python 2.6.4. On this machine I am using python 2.6.5.

The default python on both machines in python 2.4 but I set up python 2.6 as an alternate install in /opt/python26.

- dharhas

Benjamin Root <ben.root@...1304...> 6/7/2010 3:56 PM >>>

Dharhas,

Is it possible to find out which version of python was installed for your
other RHEL5 machine? I don't know if that makes a difference or not, but
RHEL5 by default uses Python 2.4.

Ben Root

···

On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina < Dharhas.Pothina@...3115...> wrote:

Hi,

I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to
install matplotlib. Installation occurs without any error messages although
I do get a bunch of warnings at the end.

/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for
-ltk8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching
for -ltcl8.4
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching
for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

When I try using matplotlib I get the following error:

Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,0],[2,3])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py",
line 2141, in plot
   ret = ax.plot(*args, **kwargs)
File
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
line 3437, in plot
   self.autoscale_view(scalex=scalex, scaley=scaley)
File
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
line 1624, in autoscale_view
   XL = self.xaxis.get_major_locator().view_limits(x0, x1)
File
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py",
line 1014, in view_limits
   return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
File
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py",
line 103, in take
   return take(indices, axis, out, mode)
IndexError: index out of range for array

Any help would be appreciated. I've tried several versions of matplotlib. I
also was able to get it installed on a different RHEL5 machine a while back
and am not sure what is different about this machine.

thanks

- dharhas

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Then I haven’t a clue. Maybe someone else has some insight?

Ben Root

···

On Mon, Jun 7, 2010 at 4:10 PM, Dharhas Pothina <Dharhas.Pothina@…3115…> wrote:

Ben,

The matplotlib on the other working machine is using python 2.6.4. On this machine I am using python 2.6.5.

The default python on both machines in python 2.4 but I set up python 2.6 as an alternate install in /opt/python26.

  • dharhas

Benjamin Root <ben.root@…1304…> 6/7/2010 3:56 PM >>>

Dharhas,

Is it possible to find out which version of python was installed for your

other RHEL5 machine? I don’t know if that makes a difference or not, but

RHEL5 by default uses Python 2.4.

Ben Root

On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina < > > Dharhas.Pothina@…3115…> wrote:

Hi,

I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to

install matplotlib. Installation occurs without any error messages although

I do get a bunch of warnings at the end.

/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for

-ltk8.4

/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching

for -ltcl8.4

/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching

for -lfreetype

/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz

/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching

for -lpthread

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for

-lpthread

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc

/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

When I try using matplotlib I get the following error:

Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)

[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2

Type “help”, “copyright”, “credits” or “license” for more information.

import matplotlib.pyplot as plt

plt.plot([1,0],[2,3])

Traceback (most recent call last):

File “”, line 1, in

File

“/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py”,

line 2141, in plot

ret = ax.plot(*args, **kwargs)

File

“/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py”,

line 3437, in plot

self.autoscale_view(scalex=scalex, scaley=scaley)

File

“/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py”,

line 1624, in autoscale_view

XL = self.xaxis.get_major_locator().view_limits(x0, x1)

File

“/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py”,

line 1014, in view_limits

return np.take(self.bin_boundaries(dmin, dmax), [0,-1])

File

“/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py”,

line 103, in take

return take(indices, axis, out, mode)

IndexError: index out of range for array

Any help would be appreciated. I’ve tried several versions of matplotlib. I

also was able to get it installed on a different RHEL5 machine a while back

and am not sure what is different about this machine.

thanks

  • dharhas

ThinkGeek and WIRED’s GeekDad team up for the Ultimate

GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the

lucky parental unit. See the prize list and enter to win:

http://p.sf.net/sfu/thinkgeek-promo


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

For some reason, installing inside a virtualenv was the problem. I installed it using easy_install outside of the virtualenv and it worked fine. The virtualenv setup works on the other RHEL5 machine so I'm not sure why it didn't on this one.

thanks,

- dharhas

Benjamin Root <ben.root@...1304...> 6/8/2010 12:56 PM >>>

Then I haven't a clue. Maybe someone else has some insight?

Ben Root

···

On Mon, Jun 7, 2010 at 4:10 PM, Dharhas Pothina < Dharhas.Pothina@...3115...> wrote:

Ben,

The matplotlib on the other working machine is using python 2.6.4. On this
machine I am using python 2.6.5.

The default python on both machines in python 2.4 but I set up python 2.6
as an alternate install in /opt/python26.

- dharhas

>>> Benjamin Root <ben.root@...1304...> 6/7/2010 3:56 PM >>>
Dharhas,

Is it possible to find out which version of python was installed for your
other RHEL5 machine? I don't know if that makes a difference or not, but
RHEL5 by default uses Python 2.4.

Ben Root

On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina < > Dharhas.Pothina@...3115...> wrote:

> Hi,
>
> I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to
> install matplotlib. Installation occurs without any error messages
although
> I do get a bunch of warnings at the end.
>
> /usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching
for
> -ltk8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching
> for -ltcl8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching
> for -lfreetype
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
-lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for
-lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for
-lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
> for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching
for
> -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for
-lc
> /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
>
> When I try using matplotlib I get the following error:
>
> Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.pyplot as plt
> >>> plt.plot([1,0],[2,3])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
>
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py",
> line 2141, in plot
> ret = ax.plot(*args, **kwargs)
> File
>
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 3437, in plot
> self.autoscale_view(scalex=scalex, scaley=scaley)
> File
>
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 1624, in autoscale_view
> XL = self.xaxis.get_major_locator().view_limits(x0, x1)
> File
>
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py",
> line 1014, in view_limits
> return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
> File
>
"/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py",
> line 103, in take
> return take(indices, axis, out, mode)
> IndexError: index out of range for array
>
>
> Any help would be appreciated. I've tried several versions of matplotlib.
I
> also was able to get it installed on a different RHEL5 machine a while
back
> and am not sure what is different about this machine.
>
> thanks
>
> - dharhas
>
>
>
------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options
>