ferhue
June 17, 2019, 2:50pm
1
ROOT Version: 6.10/08
Platform: Ubuntu 18
Compiler: linuxx8664gcc
Can I use PyROOT with Python3 if I download the precompiled binaries? Or do I need to build it from source instead?
I tried with the binaries, but in python3 I get this error:
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
ferhue
June 17, 2019, 4:53pm
2
Hi,
@etejedor can correct me if I’m wrong, but I don’t think we release binaries for python3 at the moment (i.e. the answer to the titular question is “not yet”).
Cheers,
Enrico
It depends on the platform. In order to generate the binaries, we use whatever is in /usr/bin/python.
So if you get that error on Ubuntu18, it means that the OS still has python2 as default and we build ROOT with that one.
Yes, all ubuntus have python2 as default afaict: https://packages.ubuntu.com/bionic/python