scikit-hep / root_numpy

The interface between ROOT and NumPy

Home Page:http://scikit-hep.org/root_numpy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined symbols after import root_numpy

Aelphy opened this issue · comments

The problem saturated after using gcc 4.9 instead of 5.4

@Aelphy -- have you tried re-installing root_numpy after reinstalling ROOT and numpy? It sounds like a linker error.

@kratsg -- Yes. I have tried to compile two versions of ROOT. Tried different versions of numpy.
The case was I could import ROOT library into python but while importing root_numpy the error about undefined symbols occurred.
Also I have tried different versions of root_numpy. Tried to install it using pip and to setup it manually.
The only case when the problem saturated was to change gcc from version 5 to the version 4.9

This is a setup problem on your system. gcc 4 and 5 are not compatible so be sure to compile everything you are using with one or the other, not a mixture of both. root_numpy etc. compiles fine with either 4.X or 5.X.

@ndawe, That could be the case. ROOT itself was compiled with gcc 4.9.
Thank you