We are getting AttributeError: module 'numpy.typing' has no attribute 'NDArray' with tidal jobs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 08:00 AM
File "/databricks/python/lib/python3.8/site-packages/PIL/_typing.py", line 10, in <module>
NumpyArray = npt.NDArray[Any]
AttributeError: module 'numpy.typing' has no attribute 'NDArray'
we are using 10.4 runtime version , please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 05:13 PM - edited 02-03-2025 05:14 PM
The file path of the above error is suggesting it is from the Pillow library dependency:
"/databricks/python/lib/python3.8/site-packages/PIL/_typing.py"
Pillow's _typing.py checks for NumPy >=1.21 while 10.4 runtime has these versions installed by default:
NumPy version: 1.20.1
Pillow version: 8.2.0
You can try to pin a compatible version of the package in your code numpy==1.21.0