Skip to content

jl.PythonCall.JlWrap.Cjl._pyjlbase_name crash in Python 3.13 #620

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

Open
dpinol opened this issue Jun 2, 2025 · 1 comment
Open

jl.PythonCall.JlWrap.Cjl._pyjlbase_name crash in Python 3.13 #620

dpinol opened this issue Jun 2, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@dpinol
Copy link
Contributor

dpinol commented Jun 2, 2025

Affects: JuliaCall

Describe the bug
Just accessing juliacall.Main.PythonCall.JlWrap.Cjl._pyjlbase_name crashes python 3.13.3. It doesn't crash python 3.12.
I know it's a private field, but what I actually wanted to do was juliacall.Base.summarysize(juliacall.PythonCall) which crashes due to _pyjlbase_name

from juliacall import Main as jl

jl.PythonCall.JlWrap.Cjl._pyjlbase_name

Your system
Please provide detailed information about your system:

  • The operating system: Ubuntu 25.04 (also with Debian GNU/Linux 12 (bookworm))
  • Julia: both 1.10.7 & 1.11.5
  • Python: 3.13.3
  • PythonCall: 0.9.25
  • JuliaCall: 0.9.25. Also with use getptr a lot less #618
    -pip list or conda list and juliapkg.status().
pip list 
Package   Version
--------- -------
filelock  3.18.0
juliacall 0.9.25
juliapkg  0.1.17
pip       25.1.1
semver    3.0.4

  • conda not installed
JuliaPkg Status
/home/dani/.virtualenvs/py13_summary_crash-sjfh94lK/julia_env/pyjuliapkg/juliapkg.json (empty project)
Julia 1.11.5 @ /home/dani/.julia/juliaup/julia-1.11.5+0.x64.linux.gnu/bin/julia
@dpinol dpinol added the bug Something isn't working label Jun 2, 2025
@dpinol
Copy link
Contributor Author

dpinol commented Jun 2, 2025

I tried to patch it with jl.Base.setglobal_b(jl.PythonCall.JlWrap.Cjl, jl.Symbol("_pyjlbase_name"), "juliacall.ValueBase"), but I get "invalid redefinition of constant Cjl._pyjlbase_name".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant