Skip to content

module 'numpy' has no attribute 'bool8' #134

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

Open
nsmith29 opened this issue May 15, 2025 · 0 comments
Open

module 'numpy' has no attribute 'bool8' #134

nsmith29 opened this issue May 15, 2025 · 0 comments

Comments

@nsmith29
Copy link

I am trying to create a NDarray using np.array() with a Dtype of Numpy.np.bool_, however when the runtime gets to executing this np.array() the following error occurs. I have tripled checked that I have used np.bool_ rather than np.bool8 and am completely baffled by this error. Any ideas?

Unhandled exception. Python.Runtime.PythonException: module 'numpy' has no attribute 'bool8'
File "/opt/homebrew/Cellar/[email protected]/3.11.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/init.py", line 414, in getattr
raise AttributeError("module {!r} has no attribute "
at Python.Runtime.PythonException.ThrowLastAsClrException()
at Python.Runtime.PyObject.GetAttr(String name)
at Numpy.np.get_bool8()
at Numpy.DtypeExtensions.GetDtype(Object obj)
at Numpy.np.array[T](T[] object, Dtype dtype, Nullable1 copy, String order, Nullable1 subok, Nullable`1 ndmin)

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

1 participant