When I try to get root 6.22 through macports, root generally works fine, but pyroot is broken and can’t be imported. In python (3.7) if I import ROOT I get
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ROOT/__init__.py in <module>
26 environ['CPPYY_NO_ROOT_FILTER'] = '1'
27
---> 28 import cppyy
29
30 # import libROOTPythonizations with Python version number
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cppyy/__init__.py in <module>
72 from ._pypy_cppyy import *
73 else:
---> 74 from ._cpython_cppyy import *
75
76
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cppyy/_cpython_cppyy.py in <module>
18 # first load the dependency libraries of the backend, then pull in the
19 # libcppyy extension module
---> 20 c = loader.load_cpp_backend()
21 import libcppyy as _backend
22 _backend._cpp_backend = c
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cppyy_backend/loader.py in load_cpp_backend()
72
73 if not c:
---> 74 raise RuntimeError("could not load cppyy_backend library")
75
76 return c
RuntimeError: could not load cppyy_backend library
I’ve completely wiped root from macports, and verified nothing was left. I also verified that cppyy was gone from the site packages of the python installation.
sudo port install root6 +python37
works fine (about an hour to compile). Generally in python I can’t import ccppy_backend or ccppy.
If I look in /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cppyy_backend/lib I see the following:
libCling.so libCoreLegacy.so libRIOLegacy.so libThreadLegacy.so
libCoreLegacy.rootmap libRIOLegacy.rootmap libThreadLegacy.rootmap libcppyy_backend.so
Any suggestions?
Many thanks,
Laurie
ROOT Version: root6 (macports) @6.22.02_0+cocoa+davix+graphviz+gsl+opengl+python37+roofit+tmva+xml+xrootd (active)
Platform: Mac OSX 10.14.6
Compiler: Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Python: 3.7.9
IPython: 7.18.1