Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Python Interpreter #22821

Closed
Boshwa opened this issue Jan 31, 2024 · 1 comment
Closed

Invalid Python Interpreter #22821

Boshwa opened this issue Jan 31, 2024 · 1 comment
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@Boshwa
Copy link

Boshwa commented Jan 31, 2024

Type: Bug

Behaviour

Expected vs. Actual

Expected: To be able to use Iron Python 2.7 as my interpreter, which is usable in older versions of the extension.
Actual: Get error "An Invalid Python interpreter is selected, please try changing it to enable features such as IntelliSense, linting, and debugging. See output for more details regarding why the interpreter is invalid."

Steps to reproduce:

  1. Install Iron Python 2.7 from .msi file
  2. Install VSCode Python extension
  3. Run Python:Select Interpreter
  4. Select C:\Program Files\IronPython 2.7\ipy.exe

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda):
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2024-01-31 18:15:49.469 [info] > "c:\Program Files\IronPython 2.7\ipy.exe" -I ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
2024-01-31 18:15:51.160 [error] [Error: Command failed: "c:\Program Files\IronPython 2.7\ipy.exe" -I c:\Users\user\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\get_output_via_markers.py c:\Users\user\.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\interpreterInfo.py
File -I does not exist.


	at ChildProcess.exithandler (node:child_process:431:12)
	at ChildProcess.emit (node:events:525:35)
	at maybeClose (node:internal/child_process:1091:16)
	at ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
  code: 1,
  killed: false,
  signal: null,
  cmd: '"c:\\Program Files\\IronPython 2.7\\ipy.exe" -I c:\\Users\\user\\.vscode\\extensions\\ms-python.python-2023.22.1\\pythonFiles\\get_output_via_markers.py c:\\Users\\user\\.vscode\\extensions\\ms-python.python-2023.22.1\\pythonFiles\\interpreterInfo.py'
}
2024-01-31 18:15:51.174 [info] > "c:\Program Files\IronPython 2.7\ipy.exe" -c "import sys;print(sys.executable)"

User Settings


languageServer: "Pylance"

terminal
• activateEnvironment: false

Extension version: 2023.22.1
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.79GB (1.74GB free)
Process Argv --crash-reporter-id 106dc30-57f3-466a-9eb1-fc2eb6791941
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019b:30953937
3ef8e399:30949928

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 31, 2024
@karthiknadig
Copy link
Member

We don't support python 2.7, the extension works with currently supported version listed on python.org. You can pin the extension to 2022.8.* to use 2.7.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants