Open behrica opened 2 years ago
seems to work now:
(require-python '[numpy])
(py/->jvm
(numpy/array [] :dtype :object))
;; => []
I think it will still fail if you have the zero-copy bindings loaded.
Indeed, this still fails:
(require-python '[numpy])
(require '[libpython-clj2.python.np-array])
(py/->jvm
(numpy/array [] :dtype :object))
See https://clojurians.zulipchat.com/#narrow/stream/215609-libpython-clj-dev/topic/-.3Ejvm.20on.20ndarray.20of.20type.20'object'.20fails