JuliaHEP / UpROOT.jl

Julia package to access CERN ROOT files, wraps Python package uproot
Other
15 stars 3 forks source link

free() invalid pointer when using UpROOT PythonPlot #25

Closed alusiani closed 1 year ago

alusiani commented 1 year ago

The following minimum example code

using PythonPlot
using UpROOT

fails with:

free(): invalid pointer
signal (6): Aborted

Julia 1.7.3 UpROOT v0.3.3 PythonPlot v1.0.0

I guess it should be related to both packages calling Python.

alusiani commented 1 year ago

The following minimum example code ...

The fault comes from an incompatibility between PyCall and PythonCall, which can be fixed by getting:

ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall"

see PythonCall Tips.