Dear experts,
I’ve updated ROOT and python to newest version from brew:
- brew reinstall root (getting 6.32.06 for macosx64 from tags/6-32-06@6-32-06)
- brew install python@3.12
- Sonoma 14.6.1
I find this conflict:
python3.12 -c "import ROOT; print(ROOT.__version__); c = ROOT.TCanvas()"
6.32.06
2024-11-07 19:47:12.062 Python[14506:405978] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
*** Break *** segmentation violation
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy_backend.so] (anonymous namespace)::TExceptionHandlerImp::HandleException(int) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libCore.so] TUnixSystem::DispatchSignals(ESignals) (no debug info)
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] PNGReadPlugin::initialize(IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOReadPlugin::callInitialize() (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIO_Reader::initImageAtOffset(CGImagePlugin*, unsigned long, unsigned long, unsigned long) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::makeImagePlus(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::getPropertiesAtIndexInternal(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] IIOImageSource::copyPropertiesAtIndex(unsigned long, IIODictionary*) (no debug info)
[/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO] CGImageSourceCopyPropertiesAtIndex (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] ImageSourceOptionsForCGImageSource_index_ (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSBitmapImageRep _imageRepsWithData:hfsFileType:extension:expandImageContentNow:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] (no debug info)
[/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit] -[NSImage initWithContentsOfURL:] (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGCocoa.so] TGCocoa::SetApplicationIcon() (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGCocoa.so] TGCocoa::MapWindow(unsigned long) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGui.so] TGStatusBar::TGStatusBar(TGWindow const*, unsigned int, unsigned int, unsigned int, unsigned long) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGui.so] TRootCanvas::CreateCanvas(char const*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGui.so] TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGui.so] TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGpad.so] TCanvas::Constructor(char const*, char const*, int) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libGpad.so] TCanvas::TCanvas(bool) (no debug info)
[<unknown binary>] (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy_backend.so] WrapperCall(long, unsigned long, void*, void*, void*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy_backend.so] Cppyy::CallConstructor(long, unsigned long, unsigned long, void*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy.so] CPyCppyy::CPPMethod::ExecuteFast(void*, long, CPyCppyy::CallContext*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy.so] CPyCppyy::CPPMethod::ExecuteProtected(void*, long, CPyCppyy::CallContext*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy.so] CPyCppyy::CPPMethod::Execute(void*, long, CPyCppyy::CallContext*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy.so] CPyCppyy::CPPConstructor::Call(CPyCppyy::CPPInstance*&, _object* const*, unsigned long, _object*, CPyCppyy::CallContext*) (no debug info)
[/usr/local/Cellar/root/6.32.06/lib/root/libcppyy.so] CPyCppyy::(anonymous namespace)::mp_vectorcall(CPyCppyy::CPPOverload*, _object* const*, unsigned long, _object*) (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] _PyObject_FastCallDictTstate (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] slot_tp_init (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] type_call (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] _PyObject_MakeTpCall (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] _PyEval_EvalFrameDefault (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] PyEval_EvalCode (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] run_mod (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] PyRun_SimpleStringFlags (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] Py_RunMain (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] pymain_main (no debug info)
[/Library/Frameworks/Python.framework/Versions/3.12/Python] Py_BytesMain (no debug info)
[/usr/lib/dyld] start (no debug info)
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: none of the 5 overloaded methods succeeded. Full details:
TCanvas::TCanvas(Bool_t build = kTRUE) =>
SegmentationViolation: segfault in C++; program state was reset
TCanvas::TCanvas(const char* name, const char* title, Int_t ww, Int_t wh) =>
TypeError: takes at least 4 arguments (0 given)
TCanvas::TCanvas(const char* name, const char* title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh) =>
TypeError: takes at least 6 arguments (0 given)
TCanvas::TCanvas(const char* name, Int_t ww, Int_t wh, Int_t winid) =>
TypeError: takes at least 4 arguments (0 given)
TCanvas::TCanvas(const char* name, const char* title = "", Int_t form = 1) =>
TypeError: takes at least 1 arguments (0 given)
I followed the suggestions in Problem running pyroot on freshly installed ROOT with brew, but they didn’t work for me.
Cheers
Francesca
Please read tips for efficient and successful posting and posting code
Please fill also the fields below. Note that root -b -q
will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug
from the ROOT prompt to pre-populate a topic.
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided