[Tutor] regarding GNUPLOT and MATPLOTLIB..

Asrarahmed Kadri ajkadri at googlemail.com
Tue Oct 24 00:10:51 CEST 2006


I have installed numpy but still I am not able to use matplotlib.
the error is same:

>>>
>>> from pylab import *
RuntimeError: module compiled against version 1000002 of C-API but this
version
of numpy is 1000009

The import of the numpy version of the nxutils module,
_nsnxutils, failed.  This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_nsnxutils could not be satisfied, or because the build flag for
this module was turned off in setup.py.  If it appears that
_nsnxutils was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\python\Lib\site-packages\pylab.py", line 1, in ?
    from matplotlib.pylab import *
  File "C:\python\Lib\site-packages\matplotlib\pylab.py", line 199, in ?
    import mlab  #so I can override hist, psd, etc...
  File "C:\python\Lib\site-packages\matplotlib\mlab.py", line 64, in ?
    import nxutils
  File "C:\python\Lib\site-packages\matplotlib\nxutils.py", line 17, in ?
    from matplotlib._ns_nxutils import *
ImportError: numpy.core.multiarray failed to import



On 10/23/06, Jason Massey <jason.massey at gmail.com> wrote:
>
> Very possible:
>
> For gnuplot:
>
> http://gnuplot-py.sourceforge.net/
>
> See the instructions for using on Windows.
>
>
> For Matplotlib:
>
> http://matplotlib.sourceforge.net/installing.html
>
>
> Possibly what's confusing you is that both versions have external
> dependencies such as Numpy and Numeric (are those the same?  I'll admit to
> being confused on the whole numpy, numeric, numarray which is which
> probelm).  Both pages have the dependencies listed as well as links and
> installation instructions.
>
> In fact the error message you posted earlier about importing Matplotlib
> includes detailed information about why you couldn't import matplotlib: You
> didn't have numeric installed.
>
> -
>
> A bit of googling goes a long way.
>
>
>
> On 10/23/06, Asrarahmed Kadri <ajkadri at googlemail.com> wrote:
> >
> >
> >
> >
> >
> > Is it possible to use these tools on WIndows machine ????
> >
> >
> >
> > --
> > To HIM you shall return.
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
> >
>


-- 
To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061023/7efcaa25/attachment.htm 


More information about the Tutor mailing list