databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

Doesn't seem to work with minimal version of click (i.e., click 6.7)?

Open bgreenwell opened this issue 5 years ago • 1 comments

Was not able to get any of the commands working until I upgraded from click 6.7 to click 7.1.2; for example, with click 6.7 I was getting:

$ databricks --version
.
.
.
    type=click.Choice(['AZURE_KEYVAULT', 'DATABRICKS'], case_sensitive=True),
TypeError: __init__() got an unexpected keyword argument 'case_sensitive'

If this is the case, then perhaps consider updating the requirements section in the setup.py file?

bgreenwell avatar Nov 06 '20 21:11 bgreenwell

Looks like the case_sensitive argument was added in 7.0; per the change log @ https://github.com/pallets/click/blob/master/CHANGES.rst:

Add case_sensitive=False as an option to Choice. :issue:569

bgreenwell avatar Nov 09 '20 01:11 bgreenwell