Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Windows issue with replacing workspace_dir file forward slash with backward slashes #37

Closed
WightmanVH opened this issue Oct 27, 2020 · 3 comments

Comments

@WightmanVH
Copy link

WightmanVH commented Oct 27, 2020

Running on Windows, the project.json values (+ local file locations?) seem to cause an error. Python seems to be trying to replace forward slashes with backward slashes
windows_file_error.txt

The documentation notes that the dbx commands are executed in bash. Is Windows not supported?

(dbconnect_aws) C:\Users\user1\sample_aws>dbx execute --cluster-name=test-cluster --job=sample_aws-sample-integration-test
Traceback (most recent call last):
File "c:\local\miniconda3\envs\dbconnect_aws\lib\site-packages\databricks_cli\sdk\api_client.py", line 131, in perform_query
resp.raise_for_status()
File "c:\local\miniconda3\envs\dbconnect_aws\lib\site-packages\requests\models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://x.databricks.com/api/2.0/workspace/mkdirs

...

Response from server:
{ 'error_code': 'INVALID_PARAMETER_VALUE',
'message': "Path (\Shared\dbx\projects) doesn't start with '/'"}

@renardeinside
Copy link
Contributor

renardeinside commented Oct 28, 2020

Hi @WightmanVH , Windows should be supported, however we lack of platform-specific tests. I'll address this issue in the above-mentioned PR.

@renardeinside
Copy link
Contributor

Hi @WightmanVH , please check out the latest version (1.0.3), I've fixed the problem with paths on Win-based platforms and added tests for this type of environment.

@WightmanVH
Copy link
Author

Hi @renardeinside , I was able to test the latest version. It worked great in my Windows environment 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants