Compiled against version 90709 of C-API... numpy is 90907

Hello,

I've just come across matplotlib and I'm very impressed. It looks very useful.

I just installed on a WinXP machine:
enthon-python2.4-1.0.0.beta3.exe
matplotlib-0.87.4.win32-py2.4.exe.

The install went fine. I also put the default matplotlibrc file into
my %HOME%\.matplotlib.

I ran ipython from the "Start" menu. Note that this runs ipython
without the -pylab argument.

I started to try the first example and had a problem with "from pylab
import * ". Also this failure occured using the "ordinary" python
shell. The output from ipython is below.

I'm afraid I mixed and matched inappropriately withe the enthought 2.4
beta 3 and matplotlibe 0.87.4 py2.4 pairing.

Any thoughts?

Thanks for your help.

Brian

--------------------ipython shell output----------------------------------

···

**********************************************************************
Python 2.4.3 - Enthought Edition 1.0.0.beta3 (#69, Jul 6 2006, 11:38:02) [MSC v
.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.7.2 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from pylab import *
C:\Python24\lib\site-packages\matplotlib\font_manager.py:453: UserWarning: Could
not open font file C:\WINDOWS\Fonts\ORLANDO.TTF
  warnings.warn("Could not open font file %s"%fpath)
---------------------------------------------------------------------------
exceptions.RuntimeError Traceback (most recent call
last)

C:\Python24\<ipython console>

C:\Python24\Lib\site-packages\pylab.py
----> 1 from matplotlib.pylab import *

C:\Python24\Lib\site-packages\matplotlib\pylab.py
    198 import mlab #so I can override hist, psd, etc...
    199
--> 200 from axes import Axes, PolarAxes
    201 import backends
    202 from cbook import flatten, is_string_like, exception_to_str, popd, \

C:\Python24\Lib\site-packages\matplotlib\axes.py
     21 import cm
     22 from cm import ScalarMappable
---> 23 from contour import ContourSet
     24 import _image
     25 from ticker import AutoLocator, LogLocator, NullLocator

C:\Python24\Lib\site-packages\matplotlib\contour.py
     16
     17 from mlab import linspace, meshgrid
---> 18 import _contour
     19 from cm import ScalarMappable
     20 from cbook import iterable, is_string_like, flatten, enumerate, \

C:\Python24\Lib\site-packages\matplotlib\_contour.py
     15 else: # Must be numpy
     16 try:
---> 17 from matplotlib._ns_cntr import *
     18 except ImportError:
     19 numerix._import_fail_message("_contour", "_ns")

RuntimeError: module compiled against version 90709 of C-API but this version of
numpy is 90907

In [2]:
----------------------------------------------------------

I think the numpy version provided with enthought is pulled from the svn
repository. If this is true, it will make life difficult for packages like
matplotlib for windows that are compiled against the latest numpy release, in
this case 0.9.8. Somebody please correct me if I'm wrong.

···

On Thursday 13 July 2006 8:08 pm, Brian Wilfley wrote:

Hello,

I've just come across matplotlib and I'm very impressed. It looks very
useful.

I just installed on a WinXP machine:
enthon-python2.4-1.0.0.beta3.exe
matplotlib-0.87.4.win32-py2.4.exe.

The install went fine. I also put the default matplotlibrc file into
my %HOME%\.matplotlib.

I ran ipython from the "Start" menu. Note that this runs ipython
without the -pylab argument.

I started to try the first example and had a problem with "from pylab
import * ". Also this failure occured using the "ordinary" python
shell. The output from ipython is below.

I'm afraid I mixed and matched inappropriately withe the enthought 2.4
beta 3 and matplotlibe 0.87.4 py2.4 pairing.

Any thoughts?

RuntimeError: module compiled against version 90709 of C-API but this
version of numpy is 90907

distributed along with the package, so there should be no need to use
a separate install of matplotlib.

Regards
Stéfan

···

On Thu, Jul 13, 2006 at 08:21:14PM -0400, Darren Dale wrote:

On Thursday 13 July 2006 8:08 pm, Brian Wilfley wrote:
> I'm afraid I mixed and matched inappropriately withe the enthought 2.4
> beta 3 and matplotlibe 0.87.4 py2.4 pairing.
>
> Any thoughts?

>
> RuntimeError: module compiled against version 90709 of C-API but this
> version of numpy is 90907

I think the numpy version provided with enthought is pulled from the svn
repository. If this is true, it will make life difficult for packages like
matplotlib for windows that are compiled against the latest numpy release, in
this case 0.9.8. Somebody please correct me if I'm wrong.

From http://code.enthought.com/enthon it looks like matplotlib is

Muchas Muchas Gracias!

bpw

···

On 7/14/06, Stefan van der Walt <stefan@...841...> wrote:

On Thu, Jul 13, 2006 at 08:21:14PM -0400, Darren Dale wrote:
> On Thursday 13 July 2006 8:08 pm, Brian Wilfley wrote:
> > I'm afraid I mixed and matched inappropriately withe the enthought 2.4
> > beta 3 and matplotlibe 0.87.4 py2.4 pairing.
> >
> > Any thoughts?
>
> >
> > RuntimeError: module compiled against version 90709 of C-API but this
> > version of numpy is 90907
>
> I think the numpy version provided with enthought is pulled from the svn
> repository. If this is true, it will make life difficult for packages like
> matplotlib for windows that are compiled against the latest numpy release, in
> this case 0.9.8. Somebody please correct me if I'm wrong.

>From http://code.enthought.com/enthon it looks like matplotlib is
distributed along with the package, so there should be no need to use
a separate install of matplotlib.

Regards
Stéfan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Brian P. Wilfley, Ph.D.
Director, Chief Scientist
Voice: 650.331.3476 x102
Fax: 650.887.2205
E-mail: bwilfley@...1183...
Triple Ring Technologies, Inc.
1850 Embarcadero Road
Palo Alto, CA 94303