Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8260

PyROOT not working with Python 3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Clarified
    • High
    • None
    • None
    • PyROOT
    • None
    • Linux: 4.5.7-202.fc23.x86_64
      Compiler: gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) built with -Dpython=ON -Dpython3=ON
      Python 3.4.3

    Description

      Importing ROOT from Python 2 works as expected, but importing from Python 3 results in this error:

      from ROOT import RooGaussian
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/opt/root-6/lib/ROOT.py", line 24, in <module>
          import cppyy
        File "/opt/root-6/lib/cppyy.py", line 60, in <module>
          import libPyROOT as _backend
      ImportError: dynamic module does not define init function (PyInit_libPyROOT)

      Attachments

        Activity

          People

            mato Pere Mato Vila
            sali Suvayu Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: