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

PyROOT not functional with system-default Python version on MacOS X 10.11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.02/12, 6.04/02, 6.04/04
    • Fix Version/s: 6.06/00, 6.04/06
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      Vanilla MacOS X 10.11

    • Development:

      Description

      I've searched for such a report for a bit, but couldn't find a JIRA entry for it. Even though I guess it should affect a lot of people.

      I installed a few different ROOT versions on MacOS X El Capitan using:

      cmake -Dall=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/root/v6-04-04 ../root-v6-04-04/

      After which I get:

      # root-config --features
      asimage astiff bonjour builtin_afterimage builtin_ftgl builtin_freetype builtin_glew builtin_pcre builtin_lzma builtin_llvm cxx11 libcxx cling cocoa exceptions explicitlink fortran gdml genvector http krb5 ldap memstat minuit2 opengl pch python roofit shared sqlite table thread tmva unuran vc vdt xml

      But when I try to make use of PyROOT, I get this:

      # python
      Python 2.7.10 (default, Aug 22 2015, 20:33:39) 
      [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import ROOT
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/local/root/v6-04-04/lib/ROOT.py", line 24, in <module>
          import cppyy
        File "/usr/local/root/v6-04-04/lib/cppyy.py", line 60, in <module>
          import libPyROOT as _backend
      ImportError: dlopen(/usr/local/root/v6-04-04/lib/libPyROOT.so, 2): Library not loaded: @rpath/libTree.so
        Referenced from: /usr/local/root/v6-04-04/lib/libPyROOT.so
        Reason: image not found
      >>>

      A colleague told me that apparently when building ROOT against a privately (Homebrew/MacPorts/etc.) installed Python version, PyROOT still works well. But of course it should be expected that PyROOT could be used with the system-default Python version as well...

      Cheers,
      Attila

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              akraszna Attila Krasznahorkay
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: