Skip to content
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

->jvm on ndarray of type 'object' fails #187

Open
behrica opened this issue Dec 5, 2021 · 3 comments
Open

->jvm on ndarray of type 'object' fails #187

behrica opened this issue Dec 5, 2021 · 3 comments

Comments

@behrica
Copy link
Contributor

behrica commented Dec 5, 2021

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

@behrica
Copy link
Contributor Author

behrica commented Sep 24, 2022

seems to work now:

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

@behrica behrica closed this as completed Sep 24, 2022
@cnuernber
Copy link
Collaborator

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

@behrica
Copy link
Contributor Author

behrica commented Sep 24, 2022

Indeed, this still fails:

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

@behrica behrica reopened this Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants