We recently encountered the below issue, where a databricks job configured to run a dbt task on serverless compute and warehouse failed due to python dependency failure:
run failed with error message
Library installation failed: Library installation attempted on serverless compute and failed due to: Invalid wheel. Please check the wheel file. Error code: ERROR_INVALID_WHEEL, error message: Notebook environment installation failed:
Collecting dbt-databricks<2.0.0,>=1.0.0
Downloading dbt_databricks-1.9.7-py3-none-any.whl (98 kB)
<U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501><U+2501> 98.5/98.5 kB 1.6 MB/s eta 0:00:00
Requirement already satisfied: pydantic>=1.10.0 in /databricks/python3/lib/python3.10/site-packages (from dbt-databricks<2.0.0,>=1.0.0->-r /tmp/tmp-6ee059b7563e4c56ae6581c61776c7b8-environment-requirements ...
***WARNING: message truncated. Skipped 7541 bytes of output**
This ran fine when retried, We want to know the root cause of such failures and why they would occur randomly.