I had another go today. I created a fresh build directory and ran:
cmake -Druntime_cxxmodules=OFF -Dxrootd=OFF …/root >& cmake.log &
cmake --build . >& build.log &
which was built using git tag v6-22-02. The build worked without errors this time.
After building, if I run:
I still see the same errors in the notebook:
ImportError: Failed to import libcppyy3_7. Please check that ROOT has been built for Python 3.7
My cmake.log shows:
– Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version “3.8.2”)
– Found Python2: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 (found version “2.7.16”) found components: Interpreter Development NumPy
– ROOT default compression algorithm: zlib
– PyROOT will be built for versions 3.8.2 (Main) and 2.7.16
My default python3 is 3.7.0 though:
I also have:
so ROOT has built with 3.8, but the laptop is using 3.7 as the default (python 3.8 does not even show up in tab complete).
I think I somehow need to get ROOT to build with 3.7, not 3.8? Presumably this might be controlled by
some environment variables I could/should adjust.