Can't import root_numpy on python

Hi,

I’m trying to import root_numpy on python and its returns this error message

IPython 5.5.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import root_numpy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-bbd80c171183> in <module>()
----> 1 import root_numpy

/home/juan/.local/lib/python2.7/site-packages/root_numpy/__init__.py in <module>()
     49     del numpy_version_at_install
     50 
---> 51 from ._tree import (
     52     root2array, root2rec,
     53     tree2array, tree2rec,

/home/juan/Downloads/root11/lib/ROOT.pyc in _importhook(name, *args, **kwds)
    316       except Exception:
    317          pass
--> 318    return _orig_ihook( name, *args, **kwds )
    319 
    320 __builtin__.__import__ = _importhook

/home/juan/.local/lib/python2.7/site-packages/root_numpy/_tree.py in <module>()
      4 
      5 from .extern.six import string_types
----> 6 from . import _librootnumpy
      7 
      8 

/home/juan/Downloads/root11/lib/ROOT.pyc in _importhook(name, *args, **kwds)
    316       except Exception:
    317          pass
--> 318    return _orig_ihook( name, *args, **kwds )
    319 
    320 __builtin__.__import__ = _importhook

ImportError: libHist.so: cannot open shared object file: No such file or directory

Hi,

I think the error says

ImportError: libHist.so: cannot open shared object file: No such file or directory

because the library is not found. Is $ROOTSYS properly set? Is the library in $ROOTSYS/lib? Is the LD_LIBRARY_PATH pointing to it?
Once these questions are cleared out, we may look to incompatibilities in your system since you may have multiple python installations around.

Cheers,
D

I did the source thisroot.sh . the import ROOT work, only the root_numpy don’t.

Hi,

how did you install root_numpy? Please note that that package is not supported by the ROOT team.

Cheers,
D

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.