Hi there,
I’m trying to install Root to use PyRoot and followed the instructions given on the website.
When I import Root I get the following error message:
>>> import ROOT
Traceback (most recent call last):
File "/home/chiara/Desktop/root/lib/cppyy/__init__.py", line 60, in <module>
importlib.import_module(libcppyy_mod_name)
File "/home/chiara/anaconda3/envs/skymap/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libcppyy3_10'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/chiara/Desktop/root/lib/ROOT/__init__.py", line 25, in <module>
import cppyy
File "/home/chiara/Desktop/root/lib/cppyy/__init__.py", line 62, in <module>
raise ImportError(
ImportError: Failed to import libcppyy3_10. Please check that ROOT has been built for Python 3.10
I checked my python version:
python --version
Python 3.10.9
and checked this:
root-config --python3-version
3.6.8
So these versions don’t match. Could this be the problem? And if so, how do I fix this?
ROOT Version: 6.28/04
Platform: Ubuntu
Compiler: precompiled binary (I think? Sorry, I’m a total newbie to all of this)
If anyone can help, I would greatly appreciate it.
Cheers
Chiara