Skip to content

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

Open
@nsmith29

Description

@nsmith29

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions