databricks-vscode icon indicating copy to clipboard operation
databricks-vscode copied to clipboard

[BUG] Databricks extension start up failed on the setup of DATABRICKS_EXTENSION_UNIT_TEST

Open julianwucn opened this issue 7 months ago • 3 comments

Describe the bug SystemExit: 1 <module 'main' from 'C:\Users\julia\.ipython\profile_default\startup\00-databricks-init-cdb6174794c74fbc909de1ce43bfe286.py'>

SystemExit Traceback (most recent call last) File ~.ipython\profile_default\startup\00-databricks-init-cdb6174794c74fbc909de1ce43bfe286.py:632 630 import os 631 if not os.environ.get("DATABRICKS_EXTENSION_UNIT_TESTS"): --> 632 setup()

File ~.ipython\profile_default\startup\00-databricks-init-cdb6174794c74fbc909de1ce43bfe286.py:43, in logErrorAndContinue..wrapper(*args, **kwargs) 40 @functools.wraps(f) 41 def wrapper(*args, **kwargs): 42 try: ---> 43 return f(*args, **kwargs) 44 except Exception as e: 45 logError(f.name, e)

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem.

Image

System information:

  1. Paste the output of the Help: About command (CMD-Shift-P). Version: 1.100.2 (user setup) Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e Date: 2025-05-14T21:47:40.416Z Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.26100
  2. Databricks Extension Version: 2.9.4 Databricks Extension Logs Please attach the databricks extension logs
  3. Python version: 3.12.7 Additional context Add any other context about the problem here.

julianwucn avatar May 24 '25 17:05 julianwucn

It works on python 3.12.4

julianwucn avatar May 24 '25 17:05 julianwucn

I reported a similar or the same issue a few weeks ago though I have not received any response: https://github.com/databricks/databricks-vscode/issues/1688

@julianwucn I'm not affiliated with databricks but FYI your issue is very hard to read without proper formatting, you may get more help if you follow the template correctly.

lendle avatar May 31 '25 02:05 lendle

Hi, we've released a 2.10.1 extension version with a few fixes for the jupyter init scripts, can you check it out and see if the issue is still reproducible on your side? If so, can you provide a full stack trace here?

ilia-db avatar Jun 23 '25 13:06 ilia-db