-
Notifications
You must be signed in to change notification settings - Fork 65
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
JuliaCall with Ubuntu Python-3.10 and import PyCall results in free(): invalid pointer
#427
Comments
Just checking - did you rebuild PyCall each time you changed the PYTHON env var? |
Yes. I repeated going back and forth just now, rebuilding PyCall each time, to confirm. |
Can you do Can you also check if PyCall works on its own in Julia using both these Python interpreters? |
Yes, PyCall works from the Julia REPL for both Python interpreters. |
Affects: JuliaCall
Describe the bug
Using JuliaCall with Ubuntu 22.04 system python (python-3.10) results in
free(): invalid pointer
crash if a Julia package is imported that also imports/uses PyCall. I suspect this is related to the long standing problem where PyJulia cannot use statically linked python (JuliaPy/pyjulia#185). I have confirmed that installing python compiled with dynamically linked libpython resolves the issue. If so, ultimately it is a bug of PyJulia, but I am reporting it here to alert others who might encounter it. Perhaps a warning or documentation is merited.With dynamically linked libpython:
The text was updated successfully, but these errors were encountered: