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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now