You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Segfault after pyimport followed by a referenced to the imported module. Identical to #586 but on macOS.
Note: This bug is not present with Python 3.11. See additional context.
Please include the steps required to reproduce the bug. This should include not just code but all the steps required to reproduce the bug
julia> using PythonCall
julia> re = pyimport("re")
Python: <module 're' from '/opt/Anaconda3/lib/python3.12/re/__init__.py'>
julia>
julia> re.
[11963] signal 11 (2): Segmentation fault: 11
in expression starting at none:0
_PyObject_LookupSpecial at /opt/anaconda3/bin/python3.12 (unknown line)
PyObject_Dir at /opt/anaconda3/bin/python3.12 (unknown line)
PyObject_Dir at /Users/sjbespa/.julia/packages/PythonCall/Nr75f/src/C/pointers.jl:303 [inlined]
macro expansion at /Users/sjbespa/.julia/packages/PythonCall/Nr75f/src/Core/Py.jl:132 [inlined]
pydir at /Users/sjbespa/.julia/packages/PythonCall/Nr75f/src/Core/builtins.jl:216
propertynames at /Users/sjbespa/.julia/packages/PythonCall/Nr75f/src/Core/Py.jl:293
unknown function (ip: 0x11ed2c397)
...
Your system
Please provide detailed information about your system:
The operating system
The version of Julia, Python, PythonCall, JuliaCall and any other affected packages
If an issue with PythonCall, the output of Base.versioninfo(), Pkg.status() and CondaPkg.status().
If an issue with JuliaCall, the output of pip list or conda list and juliapkg.status().
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.11.3 (2025-01-21)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50d (2025-01-21 19:42 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU: 10 × Apple M1 Max
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 8 default, 0 interactive, 4 GC (on 8 virtual cores)
Environment:
JULIA_NUM_THREADS = 8
JULIA_CONDAPKG_BACKEND = Null
JULIA_PYTHONCALL_EXE = /opt/Anaconda3/bin/python3
Affects: PythonCall
Describe the bug
Segfault after pyimport followed by a referenced to the imported module. Identical to #586 but on macOS.
Note: This bug is not present with Python 3.11. See additional context.
Please include the steps required to reproduce the bug. This should include not just code but all the steps required to reproduce the bug
Your system
Please provide detailed information about your system:
Base.versioninfo()
,Pkg.status()
andCondaPkg.status()
.pip list
orconda list
andjuliapkg.status()
.Additional context
Machine and Julia environment the same as above. Example works with Anaconda Python 3.11.11:
The text was updated successfully, but these errors were encountered: