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
$ python repro.py
Traceback (most recent call last):
File "/home/gmarkall/numbadev/issues/datetime10y/repro.py", line 11, in <module>
f(arr)
File "/home/gmarkall/numbadev/numba/numba/core/dispatcher.py", line 688, in typeof_pyval
tp = typeof(val, Purpose.argument)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gmarkall/numbadev/numba/numba/core/typing/typeof.py", line 33, in typeof
ty = typeof_impl(val, c)
^^^^^^^^^^^^^^^^^^^
File "/home/gmarkall/miniforge3/envs/numbadev/lib/python3.11/functools.py", line 909, in wrapper
return dispatch(args[0].__class__)(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gmarkall/numbadev/numba/numba/core/typing/typeof.py", line 246, in _typeof_ndarray
dtype = numpy_support.from_dtype(val.dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gmarkall/numbadev/numba/numba/np/numpy_support.py", line 109, in from_dtype
return _from_datetime_dtype(dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gmarkall/numbadev/numba/numba/np/numpy_support.py", line 74, in _from_datetime_dtype
raise NotImplementedError(dtype)
NotImplementedError: datetime64[10Y]
I think there's some mixups between errors.NumbaNotImplementedError and NotImplementedError in numba.np.numpy_support, and not enough catching of potential errors in numba.core.typing.typeof leading to this exception bubbling up to the user.
The text was updated successfully, but these errors were encountered:
Reproducer:
gives
I think there's some mixups between
errors.NumbaNotImplementedError
andNotImplementedError
innumba.np.numpy_support
, and not enough catching of potential errors innumba.core.typing.typeof
leading to this exception bubbling up to the user.The text was updated successfully, but these errors were encountered: