Skip to content

Conversation

@ericphanson
Copy link
Contributor

@ericphansonericphanson commented Aug 21, 2024

closes#543, closes#541

I added a test that would catch the issue:

julia>let arr = PyObjectArray([pylist([1]), pylist([2])]) PythonCall.JlWrap.pyobjectarray_finalizer(arr) end ERROR: UndefVarError:`PYNULL` not defined Stacktrace: [1] enqueue_all(ptrs::Vector{Ptr{PythonCall.C.PyObject}}) @ PythonCall.GC ~/PythonCall.jl/src/GC/GC.jl:106 [2] pyobjectarray_finalizer(x::PyObjectVector) @ PythonCall.JlWrap ~/PythonCall.jl/src/JlWrap/objectarray.jl:30 [3] top-level scope @ REPL[17]:2

@cjdoriscjdoris merged commit 1ce2749 into JuliaPy:mainAug 22, 2024
@cjdoris
Copy link
Member

Thanks! I simplified the test a bit and checked it still fails on main. I'll make a release.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V0.9.22 bug: error in running finalizer: UndefVarError(var=:PYNULL)

2 participants

@ericphanson@cjdoris