Skip to content

numpy support broken on arch-linux #209

@luca-penasa

Description

@luca-penasa

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions