question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to debug under Arch Linux: "Python is not installed" / "You need to select a Python interpreter"

See original GitHub issue

Environment data

  • VS Code version: 1.50.1
  • Extension version (available under the Extensions sidebar): v2020.10.332292344
  • OS and version: Arch Linux (rolling)
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): n/a
  • Relevant/affected Python packages and their versions: -
  • Relevant/affected Python-related VS Code extensions and their versions: -
  • Value of the python.languageServer setting: None

Expected behaviour

After setting the Python binary once, I’m able to run python scripts using F5.

Actual behaviour

When pressing F5, a window pops up: “You need to select a Python interpreter before you start debugging. Tip: …” When I click on “Select Python Interpreter”, I see the current value (which correctly is /usr/bin/python). I enter /usr/bin/python, or /usr/bin/python3.8, and I’m immediately asked again, so I enter the same value again. No error is shown. Then, when I press F5, the same window as before pops up again.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
JCDetwilercommented, Nov 18, 2020

Can confirm that downgrading electron9 from 9.3.4 to 9.3.3 fixed the issue for me on Arch Linux. For others:

sudo pacman -U /var/cache/pacman/pkg/electron9-9.3.3-1-x86_64.pkg.tar.zst

(Or whichever earlier version you happen to have cached.)

7reactions
MathieuMorrissettecommented, Nov 16, 2020

This is caused by an issue with the latest version of electron (9.3.4) and vscode:

https://github.com/microsoft/vscode/issues/110322

The workaround (downgrading electron) : https://github.com/microsoft/vscode/issues/110322#issuecomment-726426703

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - ArchWiki
Implementations available on Arch Linux include: PyPy — A Python implementation written in Python. It has speed and memory usage advantages ...
Read more >
Configure an interpreter using WSL - PyCharm - JetBrains
Press Ctrl+Alt+S to open Settings/Preferences and go to Project: <project name> | Python Interpreter. Click the Add Interpreter link next to the ...
Read more >
Cannot switch Python with pyenv - Stack Overflow
I successfully downloaded python2 and python3 and pyenv with following codes. brew install pyenv brew install pyenv-virtualenv pyenv install 2.7.10 pyenv ...
Read more >
3. Configure Python — Python 3.11.1 documentation
Configure Options: List all./configure script options using: See also the Misc/SpecialBuilds.txt in the Python source distribution.
Read more >
Python Dev environment with Visual Studio Code on Linux
If You have VS Code in version >= 1.3, press the Ctrl + Shift + X key combination - You will get to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found