I’m using ROOT 6.22.02 and Python 3.9.0 installed by Homebrew on a macOS 10.15.7 machine.
The mac freezes when I draw a graph by TGraph from a Python script (attachment.py).
When I use TGraph by C++, the script (attachment.cc) can work.
The same script can depict a graph on ROOT 6.20.04 and Python 3.8.
Please give me an advice to use the script on ROOT 6.22.02 and Python 3.9. Thank you.
attachment.py (1.8 KB)
attachment.cc (2.0 KB)
and welcome to the ROOT forum.
Does executing the python script with
python -i script.py (note the
-i) fix the problem?
python3 -i script.py.
It can work. But I cannot guess why.
I’d appreciate it if you tell me the reason.
The underlying issue is https://sft.its.cern.ch/jira/browse/ROOT-10787 , PyROOT is not running the graphics event processing loop in the background.
I check the website.
Thank you for your cooperation.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.