WARNING:rootpy.interactive.rootwait] unable to access ROOT's GUI thread either because PyROOT's finalSetup() was called while in batch mode or because PyROOT is using the new PyOS_InputHook-based mechanism that is not yet supported in rootpy (PyConfig.StartGuiThread == 'inputhook' or gSystem.InheritsFrom('TMacOSXSystem')). wait() etc. will instead call input() and wait for [Enter]
import rootpy.ROOT as ROOT
ROOT.gApplication.Run()
But this 'solution' is a bit annoying, i hope someone has a better idea :)
--
You received this message because you are subscribed to the Google Groups "rootpy users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rootpy-users+unsubscribe@googlegroups.com.
To post to this group, send email to rootpy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rootpy-users/76843d20-fbab-4216-bcb9-cc894083e787%40googlegroups.com.
Actually, not that simple. I haven't looked at this code in a while. The GUI thread is running:>>> getattr(ROOT, 'PyGUIThread', None).isAlive()TrueSomething else is wrong..
On Thu, Oct 19, 2017 at 8:00 PM, Noel Dawe <noel...@gmail.com> wrote:
Thanks for digging into this. It appears that the GUI thread is no longer started by default. One easy fix is to try calling gApplication.Run() inside wait() if it is not yet running. I can test this.
On Thu, Oct 19, 2017 at 7:41 PM, 'André Günther' via rootpy users <rootpy...@googlegroups.com> wrote:
But this 'solution' is a bit annoying, i hope someone has a better idea :)
--
You received this message because you are subscribed to the Google Groups "rootpy users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rootpy-users...@googlegroups.com.
To post to this group, send email to rootpy...@googlegroups.com.