Python 3.6.2 (default, Jul 28 2017, 17:11:27)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kenk/root/lib/ROOT.py", line 24, in <module>
File "/home/kenk/root/lib/cppyy.py", line 61, in <module>
import libPyROOT as _backend
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
I build root from source with python3 enable and python disable, I even make sure that the PYTHON_LIBRARY and PYTHON_INCLUDE_DIR pointing to the ones in python3.6.
I always manage to do it before on my other machine but not this time for some reason.
CMake Deprecation Warning at cmake/modules/RootNewMacros.cmake:8 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
Also had this warning at the start of cmake /source I realised this is probably safe to ignore but I thought include here just in case.