You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
cpc-jomich
changed the title
Databricks bundle deploy fails when python.exe path has a space on windows
Databricks bundle deploy fails when python.exe/python3.exe path has a space on windows
Dec 13, 2023
…reter (#1075)
## Changes
Instead of handling command chaining ourselves, we execute passed
commands as-is by storing them, in temp file and passing to correct
interpreter (bash or cmd) based on OS.
Fixes#1065
## Tests
Added unit tests
@cpc-jomich Thanks for posting the issue. Via the work in #1075, this should be addressed in the next CLI release. This will be version v0.212.0 and will be released in the second week of January.
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 executedthen 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:
databricks bundle deploy
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
The text was updated successfully, but these errors were encountered: