Skip to content

numpy/all always returns nil (2.00-beta-1) #148

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

Closed
KUR-creative opened this issue Mar 3, 2021 · 1 comment
Closed

numpy/all always returns nil (2.00-beta-1) #148

KUR-creative opened this issue Mar 3, 2021 · 1 comment

Comments

@KUR-creative
Copy link

What I did

import numpy as np, and call np/all with np/array

version: "2.00-beta-1"

user=> (require '[libpython-clj2.require :refer [require-python]])
Mar 03, 2021 9:22:50 PM libpython-clj2.python.info invoke
INFO: Detecting startup info
Mar 03, 2021 9:22:50 PM libpython-clj2.python invoke
INFO: Startup info {:lib-version "3.9", :exec-prefix "/usr", :executable "/usr/bin/python3", :libnames ("python3.9m" "python3.9"), :prefix "/usr", :base-prefix "/usr", :libname "python3.9m", :base-exec-prefix "/usr", :python-home "/usr", :version [3 9 1], :platform "linux"}
Mar 03, 2021 9:22:51 PM libpython-clj2.python invoke
INFO: Loading python library: python3.9
Mar 03, 2021 9:22:51 PM tech.v3.resource.gc invoke
INFO: Reference thread starting
nil
user=> (require-python '[numpy :as np])
:ok
user=> (np/all (np/array [true true true]))
nil
user=> (np/all (np/array [false true false]))
nil
user=> 

What I expected

It returns true, false.

What actually happened

It always returns nil. This problem occurs after the upgrade. In previous versions("2.00-alpha-7") it was fine.

@cnuernber
Copy link
Collaborator

Thanks, this is definitely a great issue. I will take a look.

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