[pythran] Re: Installation problem from NT2

  • From: serge guelton <sguelton@xxxxxxxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Tue, 19 May 2015 21:10:53 +0200

On Tue, May 19, 2015 at 06:05:06PM +0200, MBR MBR wrote:

Dear all,

I am trying to install Pythran on my computer (a GNU/Linux Ubuntu 12.04). I
have Python 2.7.9 from Anaconda 1.8.0.

So far, I tried to install Pythran with pip (after upgrading my Boost
library to 1.48; all the other requirements are met), but it failed with
the following error, when it tries to install NT2:

[...]
from
/tmp/pip-build-7WVr4L/pythran/nt2/modules/test/unit/src/main.cpp:22:

/tmp/pip-build-7WVr4L/pythran/nt2/modules/sdk/error/include/nt2/sdk/error/trap.hpp:46:3:
erreur: ‘BOOST_FORCEINLINE’ does not name a type
[...]

and then I have tons of this error.


Hi MBR and thanks for the report,

it seems nt2 requires a more modern version of boost, as stated in

http://github.com/NumScale/nt2/issues/384

at least 1.50.

You're running an aging version of ubuntu, but the following may work:

sudo add-apt-repository -y ppa:apokluda/boost1.53
sudo apt-get install libboost-python1.53-dev libboost1.53-dev

Also, I wonder what is your compiler version?


** OR **

I have been trying to setup a conda repo for pythran. It's mostly
untested, but you can try it as you're using anaconda

conda install -c https://conda.binstar.org/serge-sans-paille pythran



Other related posts: