-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
databricks-cli - AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST' #634
databricks-cli - AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST' #634
Comments
Me too I'm geeting the same issue with databricks-cli-0.17.6
It will be some fix for this issue? or maybe an a work-around? Thanks. Regards. |
Calling the following command: databricks secrets list-scopes Databricks CLI Version: Version 0.17.6 |
Same here. |
Looks like related with |
Similar issue here. Any best guess when the fix will be released? |
For what it's worth, I encountered the same issue with |
I am having the same issue and this is breaking our deployment pipeline as we are using the databricks cli for that. |
Workaround steps (activate your virtual env first if you have one)
That seemed to do the trick for me fwiw .... |
Since urllib 2.0 was release, our main branch has been broken in the CI: File /Users/tati/Code/astro-provider-databricks/src/astro_databricks/operators/notebook.py, line 236, in _get_api_client return ApiClient( File /Users/tati/Code/astro-provider-databricks/.nox/test-3-10-airflow-2-5/lib/python3.10/site-packages/databricks_cli/sdk/api_client.py, line 106, in __init__ method_whitelist=set({'POST'}) | set(Retry.DEFAULT_METHOD_WHITELIST), AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST' Until there is a new databricks-cli release with this fix: databricks/databricks-cli#634 We should pin the version of urllib, to avoid this error.
Thanks for reporting the issue. We just released version 0.17.7 to PyPI which includes a fix. |
#40) Since urllib 2.0 was release, our main branch has been broken in the CI: File /Users/tati/Code/astro-provider-databricks/src/astro_databricks/operators/notebook.py, line 236, in _get_api_client return ApiClient( File /Users/tati/Code/astro-provider-databricks/.nox/test-3-10-airflow-2-5/lib/python3.10/site-packages/databricks_cli/sdk/api_client.py, line 106, in __init__ method_whitelist=set({'POST'}) | set(Retry.DEFAULT_METHOD_WHITELIST), AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST' The `databricks-cli` released a fix for this issue: https://github.com/databricks/databricks-cli/releases/tag/0.17.7 databricks/databricks-cli#634
Recently, while executing
dbfs ls
after installing and setting up the databricks-cli-0.17.6 in command line, I am getting the below error:Error: AttributeError: type object 'Retry' has no attribute 'DEFAULT_METHOD_WHITELIST'
A while back, the databricks-cli was working as expected and this seems to be an issue with the upgraded versions in one of the dependencies
urllib3-2.0.1
and/orrequests-2.30.0
but not sure though.Could this be checked on a priority and a fix or work-around to this issue?
The text was updated successfully, but these errors were encountered: