You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
native to_java_float_array raises AttributeError for a list when NumPy is not installed #433
bugSomething isn't workingin progressThe team is actively working on this issuenativeThe arcadedb package (native library build)pythonPull requests that update python codevectorVector indexes and find_nearest
On the native package, arcadedb.to_java_float_array([0.1, 0.2]) raises AttributeError: 'NoneType' object has no attribute 'asarray' when NumPy is not installed. NumPy is an optional extra of arcadedb (arcadedb[numpy], native/wheel/pyproject.toml; installation.adoc says the package needs no other dependency), and the docstring lists plain Python lists as accepted input.
Cause
vector.py imports NumPy in a try and sets _np = None when it is missing. The native branch of to_java_float_array calls _np.asarray(...) without testing for that, because the array it returns is a NumPy float32 array.
bugSomething isn't workingin progressThe team is actively working on this issuenativeThe arcadedb package (native library build)pythonPull requests that update python codevectorVector indexes and find_nearest
Activity
fix(#433): to_java_float_array names the numpy extra when NumPy is mi…