libpython-clj icon indicating copy to clipboard operation
libpython-clj copied to clipboard

->jvm on ndarray of type 'object' fails

Open behrica opened this issue 4 years ago • 3 comments

See https://clojurians.zulipchat.com/#narrow/stream/215609-libpython-clj-dev/topic/-.3Ejvm.20on.20ndarray.20of.20type.20'object'.20fails

behrica avatar Dec 05 '21 22:12 behrica

seems to work now:

(require-python '[numpy])
(py/->jvm
 (numpy/array [] :dtype :object))
;; => []

behrica avatar Sep 24 '22 17:09 behrica

I think it will still fail if you have the zero-copy bindings loaded.

cnuernber avatar Sep 24 '22 17:09 cnuernber

Indeed, this still fails:

(require-python '[numpy])
(require '[libpython-clj2.python.np-array])
(py/->jvm
 (numpy/array [] :dtype :object))

behrica avatar Sep 24 '22 18:09 behrica