Python 3.8 with ROOT 6.22

I am trying to install ROOT6.22 with python3.8 on ubuntu 20.04.
I did:
cmake -DCMAKE_INSTALL_PREFIX= -DPython3_EXECUTABLE=/usr/bin/python3.8

I got configuration info like:

Detected ROOT_VERSION 6.22.99
– Looking for Python
– Found Python3: /usr/bin/python3 (found version “3.8.2”) found components: Interpreter Development NumPy
– Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_LIBRARIES Python2_INCLUDE_DIRS Interpreter Development NumPy)
– ROOT default compression algorithm: zlib
– PyROOT will be built for version 3.8.2

then just: cmake --build . --target install

installation seems no problematic but I am not being able to call
import ROOT in python prompt. no module of ROOT found error.

I checked with root-config --config | grep PYTHON. libs and version are correct as build command says. exporting PYTHONPATH to root_install/lib doesnt help.

cheers

_ROOT Version: 6.22
_Platform: ubuntu 20.04
_Compiler: cmake version 3.16.3 ; gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0


Hi,

From the CMake messages you show, the Python version used to build PyROOT was indeed 3.8.

Might it be an environment problem? Did you do source $ROOTSYS/bin/thisroot.sh, where $ROOTSYS is your installation directory of ROOT?

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