pyRoot on OS X Maverick

[quote=“johahe”][quote=“wlav”]
Even more surprising, when I do:[code]>>> import ROOT

ROOT.gROOT.SetBatch(False)
c = TCanvas()[/code]
everything seems to work fine.[/quote]
Yes, I that works, but try to draw something to that TCanvas

import ROOT
ROOT.gROOT.SetBatch(False)
c = ROOT.TCanvas()
h = ROOT.TH1F()
h.Draw()

I use XQuartz 2.7.5 rc4.[/quote]

This works for me, using the same XQuartz version

Just got a patch from Wim. It seems that PyROOT thinks it is working in batch. Therefore no windows are created. The patch is to add at the start of your script, or in a .pythonrc file:
import ROOT
ROOT.gROOT.SetBatch(False)
After that you can do things like
from ROOT import *
TBrowser()
in your scripts. See sft.its.cern.ch/jira/browse/ROOT-5673

I figured out a way to solve my issue of root crashing.
It crashed because I was compiled it in my home directory without specifying etcdir.

Hi,

the issue with batch/non-batch is now fixed as well. Was an ordering problem during initialization. Beats me why it was never an issue before.

Cheers,
Wim