jsalvatier / scikits.bvp_solver

Python package for solving two-point boundary value problems that wraps BVP_SOLVER
http://packages.python.org/scikits.bvp_solver/
14 stars 6 forks source link

Incompatibility with numpy api with the easy_install for python 2.7 #2

Open martndj opened 11 years ago

martndj commented 11 years ago

I just installed easy_install for python 2.7. I'm using python-numpy package from Debian 7 distribution which provides python-numpy-api6.

I followed the instructions from http://packages.python.org/scikits.bvp_solver/tutorial.html.

When importing scikits.bvp_solver in python I got the following error:

In [1]: import scikits.bvp_solver
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 8 but this version of numpy is 6
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-6f4ab2837ece> in <module>()
----> 1 import scikits.bvp_solver

/usr/local/lib/python2.7/dist-packages/scikits.bvp_solver-1.1-py2.7-linux--686.egg/scikits/bvp_solver/__init__.py in <module>()

/usr/local/lib/python2.7/dist-packages/scikits.bvp_solver-1.1-py2.7-linux-i686.egg/scikits/bvp_solver/solver.py in <module>()

/usr/local/lib/python2.7/dist-packages/scikits.bvp_solver-1.1-py2.7-linux-i686.egg/scikits/bvp_solver/bvp_solverf.py in <module>()

/usr/local/lib/python2.7/dist-packages/scikits.bvp_solver-1.1-py2.7-linux-i686.egg/scikits/bvp_solver/bvp_solverf.py in __bootstrap__()

ImportError: numpy.core.multiarray failed to import
jsalvatier commented 11 years ago

I forgot I have a funny version of numpy installed. I installed numpy 1.7.0b2 and recompiled. Please try this file, and let me know if it works.

jsalvatier commented 11 years ago

Alternatively, you can compile from source yourself.

martndj commented 11 years ago

Thank you for your reply.

I did try it, but it didn't worked:

sh scikits.bvp_solver-1.1.1-py2.7-linux-i686.egg

scikits.bvp_solver-1.1.1-py2.7-linux-i686.egg: 1: scikits.bvp_solver-1.1.1-py2.7-linux-i686.egg: PK@tBA����: not found scikits.bvp_solver-1.1.1-py2.7-linux-i686.egg: 2: scikits.bvp_solver-1.1.1-py2.7-linux-i686.egg: Syntax error: ")" unexpected

...

Just compiled-it the usual way (python setup.py install). Worked Thank you!

Le mardi 02 octobre 2012 à 14:44 -0700, john salvatier a écrit :

I forgot I have a funny version of numpy installed. I installed numpy 1.7.0b2 and recompiled. Please try this file, and let me know if it works.

— Reply to this email directly or view it on GitHub.