Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

free() invalid pointer when using UpROOT PythonPlot #16

Closed
alusiani opened this issue Jan 2, 2023 · 2 comments
Closed

free() invalid pointer when using UpROOT PythonPlot #16

alusiani opened this issue Jan 2, 2023 · 2 comments

Comments

@alusiani
Copy link

alusiani commented Jan 2, 2023

The following minimum example code

using UpROOT
using PythonPlot

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.

@stevengj
Copy link
Member

stevengj commented Jan 2, 2023

UpROOT.jl uses PyCall. This is incompatible with PythonCall. You should use it with PyPlot, not PythonPlot.

@stevengj stevengj closed this as completed Jan 2, 2023
@alusiani
Copy link
Author

alusiani commented Jan 2, 2023

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

ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall"

see PythonCall Tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants