cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

We are getting AttributeError: module 'numpy.typing' has no attribute 'NDArray' with tidal jobs

unalluri9999
New Contributor

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 

1 REPLY 1

Ismael-K
Databricks Employee
Databricks Employee

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