-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Description
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!
nromashchenko
Metadata
Metadata
Assignees
Labels
No labels