databricks-sdk-py
databricks-sdk-py copied to clipboard
[ISSUE] update_libraries.py example fails - 'LibrariesAPI' object has no attribute 'update'
Description When attempting to run the example code in the update_libraries.py example, the following error occurs: 'LibrariesAPI' object has no attribute 'update'
Reproduction This is using a 12.2 LTS cluster in Databricks. databricks-sdk==0.30.0
Expected behavior I would expect the example to run successfully.
Is it a regression? I have not tried any other versions.
Other Information
- OS: Databricks 12.2 LTS cluster
- Version: 0.30.0 of databricks-sdk
Additional context The LibrariesAPI seems to only have an install method, not an update. So, this works:
w.libraries.install(cluster_id=cluster_id, libraries=[compute.Library(pypi=compute.PythonPyPiLibrary(package="dbl-tempo"))])