PyROOT / homebrew issues with XQuartz

I have ROOT 5.34.36 installed on MacOS 10.12 (Sierra) via Homebrew and this installation appears to be working fine. When I try and start PyROOT, everything seems normal until I try and draw anything.

    $ ipython
    Python 2.7.10 (...)
    [other details that I can post if needed]
    [In a startup script, I `import ROOT as r`
    In [1]: r.TCanvas() # with r is my shortname for the ROOT module
    Out[1]: <ROOT.TCanvas object at [hex number]>

But here, no window is created. How about something else…

    In [2]: r.TBrowser()
    Error in <TPluginHandler::SetupCallEnv>: class TGQuartz not found in plugin GQuartz
    Error in <TPluginHandler::SetupCallEnv>: class TRootGuiFactory not found in plugin Gui

     *** Break *** segmentation violation
    [tons more errors]

Any suggestions would be greatly appreciated!


  • is this the Python version coming with homebrew (it should)
  • we don’t have a lot of experience with the homebrew build of ROOT (it’s not done by us); could you contact them directly?
  • I’ll update the topic to make sure it signals the homebrew context.

That said - the non-homebrew build of ROOT works just fine.

Cheers, Axel.

We did made the changes in the ROOT 6 series to cope with the new version of IPython. It has to do with handling the ‘event loop’ needed for the GUI and graphics. These changes where not back-ported to ROOT 5. I would strongly recommend you to migrate to ROOT 6. Back-porting the 5 is unclear and in any case will take long time for you to benefit since a new home-brew release will need to be made available.

Have you seen this: Ipython 5.1.0 and ROOT 6.08/00 problems