[pythran] Installation problem from NT2

  • From: MBR MBR <mbr.joos@xxxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Tue, 19 May 2015 18:05:06 +0200

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.

I try another strategy, taking directly the sources from GitHub:
git clone https://github.com/serge-sans-paille/pythran
python setup.py install

It then fails with the following error:
Compile and install nt2
Traceback (most recent call last):
File "setup.py", line 330, in <module>
'bench': BenchmarkCommand}
File "/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/core.py",
line 151, in setup
dist.run_commands()
File "/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/dist.py",
line 953, in run_commands
self.run_command(cmd)
File "/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/dist.py",
line 972, in run_command
cmd_obj.run()
File
"/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/command/install.py",
line 563, in run
self.run_command('build')
File "/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/cmd.py",
line 326, in run_command
self.distribution.run_command(command)
File "/local/home/mjoos/soft/anaconda/lib/python2.7/distutils/dist.py",
line 972, in run_command
cmd_obj.run()
File "setup.py", line 137, in run
self.build_nt2()
File "setup.py", line 118, in build_nt2
'--target', 'install'])
File "/local/home/mjoos/soft/anaconda/lib/python2.7/subprocess.py", line
573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['cmake', '--build',
'build/temp.linux-x86_64-2.7/nt2', '--target', 'install']' returned
non-zero exit status 2

No surprises, it also fails at the NT2 installation step (but it was worth
a try). I (quite rapidely) had a look on the Internet about NT2
installation troubleshooting and Pythran installations problems, but so far
I didn't found any useful help.

Did I miss something? Is there a way to make it works?
Any help would be appreciated!

Thanks,
Marc

Other related posts: