-
Notifications
You must be signed in to change notification settings - Fork 153
Databricks bundle deploy fails when python.exe/python3.exe path has a space on windows #1065
Description
Describe the issue
Given that python is installed in a folder with a space (e.g. c:\program files\python311)
when databricks bundle deploy is executed
then execution fails with a file does not exist error
msg="running: C:\\Program Files\\Python311\\python.exe setup.py bdist_wheel" msg="Error: build failed scr_data_sap, error: C:\\Program Files\\Python311\\python.exe setup.py bdist_wheel: exec: \"C:\\\\Program\": file does not exist, output: "
If I create a link in a folder that is in the path prior to the python path without spaces and use the 8.3 "short" path then execution succeeds.
Hardlink created for python3.exe <<===>> c:\progra~1\python311\python.exe
Configuration
Windows 11 dev machine
Python 3.11 installed in c:\program files\python311 folder
a simple DABs project with any asset to deploy
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
- Run
databricks bundle deploy - See error
Expected Behavior
I would expect execution to succeed even if python is installed in a folder with a space on windows.
Actual Behavior
msg="running: C:\Program Files\Python311\python.exe setup.py bdist_wheel"
msg="Error: build failed scr_data_sap, error: C:\Program Files\Python311\python.exe setup.py bdist_wheel: exec: "C:\\Program": file does not exist, output: "
OS and CLI version
Windows 11
Databricks CLI v0.210.3
Is this a regression?
Did this work in a previous version of the CLI? If so, which versions did you try? Unknown
Debug Logs
Output logs if you run the command with debug logs enabled. Example: databricks bundle deploy --log-level=debug. Redact if needed