Hal Huntley wrote:
> I'm a sys admin trying to install the matplotlib python package for someone
> on our staff. I'm not overly familar with python.
> 
> We are trying to use matplotlib with pylab.  
> 
> uname -a
> Linux andromeda 2.6.13-1.1532_FC4smp #1 SMP Thu Oct 20 01:51:51 EDT 2005
> i686 i686 i386 GNU/Linux
> 
> The python version we have is the default that we got with the Fedora Core 4
> package.
> 
> python -V
> Python 2.4.1
> 
> I've installed using /usr/bin/easy_install:
> matplotlib-0.90.1-py2.4-win32.egg  numpy-1.0.3.1-py2.4-win32.egg

I've never understood eggs and easy_install, but it certainly doesn't 
look right that you are installing things labelled "win32" on a Linux 
box!  I'm surprised you got that far.

For linux, I like to install from source, since the distro packages for 
numpy and mpl are usually too old.  If you get the tarballs, build and 
install numpy first, then mpl.  You don't need or want Numeric or 
numarray.  The build process may fail.  If it does, it is because you 
need to install distro packages with headers for various libraries, and 
you should be able to see from the failures which headers are missing.

Maybe someone else can provide more detailed instructions for Fedora C4.

Eric



> 
> If we get in to python and give the command:
>>>> from pylab import *
> 
> We get:
> ==
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/pylab.py",
>  line 1, in ?
>     from matplotlib.pylab import *
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/matplotlib/pylab.py",
>  line 201, in ?
>     import mlab  #so I can override hist, psd, etc...
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/matplotlib/mlab.py",
>  line 64, in ?
>     import nxutils
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/matplotlib/nxutils.py",
>  line 17, in ?
>     from matplotlib._ns_nxutils import *
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/matplotlib/_ns_nxutils.py",
>  line 7, in ?
>     __bootstrap__()
>   File
>   
> "/usr/lib/python2.4/site-packages/matplotlib-0.90.1-py2.4-win32.egg/matplotlib/_ns_nxutils.py",
>  line 5, in __bootstrap__
>     del __bootstrap__, __loader__
> NameError: global name '__loader__' is not defined
> ==
> 
> I've read that numeric may need to be installed, so I got "Numeric-24.2"
> and did:
>     python setup.py build
>     python setup.py install
> 
> That didn't help solve the issue.
> 
> Is there some other package that needs to be installed?  I checked the FAQ
> and this issue does not seem to be there.
> 
> Regards,
> 
> Hal Huntley
> SRI International
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to