microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 32 forks source link

Configure Databricks CLI failing #49

Open sebin-git opened 2 years ago

sebin-git commented 2 years ago

In Azure Devops below is failing Configure Databricks CLI is showing error

[command]C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pip.exe install databricks-cli Error while installing databricks-cli Writing databricks-cli configuration to file: C:\Users\VssAdministrator.databrickscfg

Since the Configure Databricks CLI is failing the subsequent task also fails

sebin-git commented 2 years ago

Issue Resolved after setting the version to 3.6.x

sparianer commented 2 years ago

I get the same error now, but before (last successful deployment 2022-01-27) it worked with the Python version 3.7.9.

And the graphical version of this module in the Azure DevOps release pipelines doesn't offer any possiblity to adapt the Python version.

sebin-git commented 2 years ago

I get the same error now, but before (last successful deployment 2022-01-27) it worked with the Python version 3.7.9.

And the graphical version of this module in the Azure DevOps release pipelines doesn't offer any possiblity to adapt the Python version.

In the GRAPHICAL VERSION.. Add. a task Use Python Version Task and then set it to 3.6.x. That resolved my issue. Try it out

ulriksenstian commented 2 years ago

Selecting Python version 3.6.x works for us.

tomsmith45 commented 2 years ago

Can confirm this worked for me also, using the tip for the graphical version. Thanks!

Jack-Lawton commented 2 years ago

Switching to python 3.6.x resolved this for us too. However, as of today, it appears 3.6.x is no-longer available in Azure

##[error]Version spec 3.6.x for architecture x64 did not match any version in Agent.ToolsDirectory.

I'm not sure what other options are available now

sparianer commented 2 years ago

In Azure DevOps you can switch the Agent Specification to an Ubuntu server. If this doesn't work for you or you want to stay on Windows, use e.g. "windows-2019" instead of "windows-latest".

Jack-Lawton commented 2 years ago

Thanks @sparianer - I was able to find another resolution for this by looking at Kurowknr's comment on #48 - Adding in a script step to run pip install databricks-cli works too.