python: numpy support broken on arch-linux
This seems to be a bug affecting several distros. I testes on Manjaro (fresh and updated live) and Ubuntu 18.04 (docker).
Here is the code for reproducing the bug: https://github.com/luca-penasa/boost-numpy-minimal-bug
it compiles a python module using boost-python and boost-python-numpy the line of code
np::initialize();
causes an error when trying to import the module in python (here from ipython but it is the same from pure python):
Python 3.6.5 (default, May 11 2018, 04:00:52)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.3.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import hello
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
RuntimeError: FATAL: module compiled as little endian, but detected different endianness at runtime
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
ImportError: numpy.core.umath failed to import
---------------------------------------------------------------------------
SystemError Traceback (most recent call last)
<ipython-input-1-f81fb083bdeb> in <module>()
----> 1 import hello
SystemError: initialization of hello raised unreported exception
In [2]:
Could anybody have a look at this? this is making a lot of my code useless!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
@urbainvaes , I suggest you follow the above link to the arch issue tracker and ask there. This is not a Boost.Python issue.
https://github.com/boostorg/python/pull/218 is now merged into master, and thus will be part of
1.68.