ROOT Python problems MacOs

_ROOT Version: 6.16.00
_Platform: MacOS Mojave 10.14.3
Compiler: clang

I have installed root 6.16 using macports: port install root6 +python35

This works well enough, but ‘import ROOT’ fails. I can see there is root installation in /opt/local, but the only python scripts I can find are in libexec/root6/share/doc/root/tutorials/, and there is no site-packages directory that could contain the Python module.

Any pointers would be appreciated.

Try to export PYTHONPATH="$(dirname $(find /opt/local -name".

Thanks for your fast response.

That did it, and it also pointed me to the right Python version to use. The choice of path is not immediately obvious. Can it be arranged such that macports sets the right path into PYTHONPATH automatically? After all I’ve added the python version as an argument to the macports install, so it should know what I want.

We are not packaging ROOT officially for MacPorts, please file a bug in their bug tracker for this part. MacPorts needs to change how ROOT is packaged for it to work.

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