databricks/databricks-vscode

[BUG] PermissionError: [Errno 1] Operation not permitted

ChuliangXiao opened this issue · 2 comments

Describe the bug

Databricks is successfully connected.

To Reproduce

After Run File on Databricks

Screenshots
image

System information:

  1. Paste the output ot the Help: About command (CMD-Shift-P).

Version: 1.76.2 (system setup)
Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
Date: 2023-03-14T17:55:54.936Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

  1. Databricks Extension Version

Databricks v0.3.7

Hi @ChuliangXiao. Could you check if Files in Repos is enabled for you, and your cluster DBR matches the setting you choose there?

Hi @ChuliangXiao. Could you check if Files in Repos is enabled for you, and your cluster DBR matches the setting you choose there?

Found the reason (was using Databricks Runtime 10.4). It's OK now in 12.2.

Didn't pay attention to Databrikcs Docs

To use workspace files locations with the Databricks extension for Visual Studio Code, you must use version 0.3.5 or higher of the extension, and your Databricks cluster must have Databricks Runtime 11.2 or higher installed.

, which is NOT included in Databricks extension for Visual Studio Code Requirements

In order to use this extension you need access to a Databricks workspace:

  • Databricks workspace with:
    • Repos enabled
    • Files in Repos enabled
  • Permission to access the workspace using a personal access token (PAT) or Azure AD CLI.
  • Access to an interactive cluster or permissions to create a cluster
  • Permissions to create Databricks Repos