AttributeError: module 'numpy' has no attribute 'typing'

MarcoRezende
New Contributor III

We started experiencing failures in several Databricks jobs without any changes on our side. The error occurs during Python job execution and seems related to package dependencies.

The job error:
Run failed with error message Cannot read the python file /Repos/xxxx. Please check driver logs for more detail

Driver error:
File "/databricks/python/lib/python3.10/site-packages/numpy/__init__.py", line 311, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'typing'

MarcoRezende
New Contributor III

The problem was numexpr lib version, 2.14.0, I needed to pin 2.13.1

View solution in original post