Hi
I met a problem after installing root/6.24/00 when using python3. The problem happens when I try to import the ROOT as follow
~ % python3
Python 3.9.2 (default, Mar 15 2021, 10:13:36)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>import ROOT
Traceback (most recent call last):
File "/Applications/root_v6.24.00/lib/cppyy/__init__.py", line 60, in <module>
importlib.import_module(libcppyy_mod_name)
File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libcppyy3_9'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/root_v6.24.00/lib/ROOT/__init__.py", line 22, in <module>
import cppyy
File "/Applications/root_v6.24.00/lib/cppyy/__init__.py", line 62, in <module>
raise ImportError(
ImportError: Failed to import libcppyy3_9. Please check that ROOT has been built for
Actually, there is no such problem when using version 6.22/08.
And, it’s OK when using python 2.7 instead of version 3.9.2.
Is it the problem of ROOT? If so, I think I need some help to solve this problem in the next version, and this post may serve like a feedback.
If it’s the problem of my computer, how can I solve it?
Thanks!
Python 3.9
_ROOT Version:6.24/00 (Built for macosxarm64)
_Platform:MacBookAir (M1) macOS Big Sur 11.3
_Compiler:python3.9.2