Can i use PyROOT with python3 if I download the binaries rather than building from source?


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)

Might be related: ROOT from binary distribution - Python version

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

1 Like

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.

1 Like

Yes, all ubuntus have python2 as default afaict: https://packages.ubuntu.com/bionic/python

1 Like

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