posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.82k stars 90 forks source link

Installing siuba into a venv keeps that Positron interpreter from starting #5411

Open juliasilge opened 3 days ago

juliasilge commented 3 days ago

System details:

Positron and OS details:

Positron Version: 2024.12.0 (Universal) build 41 Code - OSS Version: 1.93.0 Commit: 39536c265d6828a68291984d0d359170316d055e Date: 2024-11-18T02:47:29.611Z Electron: 30.4.0 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.0.0

Interpreter details:

So far I have mostly been trying this with pyenv and 3.10, 3.11, and 3.12.

Describe the issue:

If I install siuba into a venv, then I cannot start that venv in Positron. I see the "HTTP request failed" error:

Image

If I take a previously existing venv and I additionally install siuba into it, then that venv no longer can start in Positron and it is busted.

Steps to reproduce the issue:

  1. Take a currently existing venv and activate it
  2. pip install siuba
  3. Try to choose this venv in Positron
  4. Be sad 😭

Expected or desired behavior:

The venv should start in Positron. Do we have incompatible requirements?

Were there any error messages in the UI, Output panel, or Developer Tools console?

The "HTTP request failed" error is in the Extension Host channel. Also I see "Starting language runtime failed. Reason: HTTP request failed" in the Developer Tools.

ntluong95 commented 3 days ago

Not only siuba I think. I have the same problem HTTP request failed sometimes when working with .venv in the newest version

juliasilge commented 3 days ago

@ntluong95 Do you have any examples or steps that cause it to happen for you?

ntluong95 commented 2 days ago

I don't have time to make a reproducible example but here is what I have Image

My pyproject.toml Image

It is always unreliable to let Positron start Python in my computer (Windows), the alternative Ctrl + Shift + p -> Select Python interpreter works more stable for me. The UI usually doesn't help