Skip to content

VScode is not obeying Python Interpreter selection #23224

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

Closed
alanwilter opened this issue Apr 11, 2024 · 2 comments
Closed

VScode is not obeying Python Interpreter selection #23224

alanwilter opened this issue Apr 11, 2024 · 2 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@alanwilter
Copy link

alanwilter commented Apr 11, 2024

Type: Bug

I use virtualenvwrapper to create python venvs.

I don't know why but no matter what I try I set a repo face-ai to use face-ai venv but it always load with another venv!

Screenshot 2024-04-11 at 11 13 03

Extension version: 2024.4.1
VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:28:09.495Z)
OS version: Darwin arm64 23.4.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.14
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

terminal
• launchArgs: "<placeholder>"

Installed Extensions
Extension Name Extension Id Version
Auto Time Stamp lpubsppop01.vscode-auto-timestamp 0.0.8
autoDocstring - Python Docstring Generator njpwerner.autodocstring 0.6.1
AWS boto3 Boto3typed.boto3-ide 0.5.4
AWS Toolkit - Amazon Q, CodeWhisperer, and more amazonwebservices.aws-toolkit-vscode 2.18.0
Base64Viewer JasonMejane.base64viewer 1.5.2
Bash Debug rogalmic.bash-debug 0.3.9
Bash IDE mads-hartmann.bash-ide-vscode 1.39.0
C/C++ ms-vscode.cpptools 1.19.9
ChatGPT - Genie AI genieai.chatgpt-vscode 0.0.10
Code Runner formulahendry.code-runner 0.12.2
Code Spell Checker streetsidesoftware.code-spell-checker 3.0.1
CodeLLDB vadimcn.vscode-lldb 1.10.0
Continue - Claude, CodeLlama, GPT-4, and more Continue.continue 0.9.108
Conventional Commits vivaxy.vscode-conventional-commits 1.25.0
Coverage Gutters ryanluker.vscode-coverage-gutters 2.11.1
crates serayuzgur.crates 0.6.6
Crystal Language crystal-lang-tools.crystal-lang 0.9.3
Debugger for Firefox firefox-devtools.vscode-firefox-debug 2.9.10
Dev Containers ms-vscode-remote.remote-containers 0.354.0
DICOM Tag Dump smikitky.vscode-dicom 1.4.0
Docker ms-azuretools.vscode-docker 1.29.0
Duplicate action mrmlnc.vscode-duplicate 1.2.1
Edit csv janisdd.vscode-edit-csv 0.9.1
Edit with Shell Command ryu1kn.edit-with-shell 1.3.0
EditorConfig for VS Code EditorConfig.EditorConfig 0.16.4
endwise kaiwood.endwise 1.5.1
ESLint dbaeumer.vscode-eslint 2.4.4
ev3dev-browser ev3dev.ev3dev-browser 1.2.1
Even Better TOML tamasfe.even-better-toml 0.19.2
filesize mkxml.vscode-filesize 3.1.0
Git Graph mhutchie.git-graph 1.30.0
Git History donjayamanne.githistory 0.6.20
GitHub Actions github.vscode-github-actions 0.26.2
GitHub Codespaces GitHub.codespaces 1.16.19
GitHub Pull Requests GitHub.vscode-pull-request-github 0.86.1
GitLens — Git supercharged eamodio.gitlens 14.9.0
Gitpod gitpod.gitpod-desktop 0.0.164
H5Web h5web.vscode-h5web 0.1.3
iconfont-preview stxr.iconfont-preview 0.0.5
Insert Date String jsynowiec.vscode-insertdatestring 2.3.1
JavaScript Debugger ms-vscode.js-debug 1.88.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
JPEG-2000 Preview analytic-signal.preview-jp2 0.0.4
Jupyter ms-toolsai.jupyter 2024.3.1
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.17
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
LEGO® MINDSTORMS® EV3 MicroPython lego-education.ev3-micropython 2.0.0
Live Preview ms-vscode.live-server 0.4.13
Live Share ms-vsliveshare.vsliveshare 1.0.5918
Makefile Tools ms-vscode.makefile-tools 0.9.10
Markdown All in One yzhang.markdown-all-in-one 3.6.2
markdownlint DavidAnson.vscode-markdownlint 0.54.0
Material Icon Theme PKief.material-icon-theme 4.34.0
Meld Diff danielroedl.meld-diff 1.4.1
Mypy Type Checker ms-python.mypy-type-checker 2023.6.0
MySQL formulahendry.vscode-mysql 0.5.0
npm Intellisense christian-kohler.npm-intellisense 1.4.5
Playwright Test for VSCode ms-playwright.playwright 1.0.22
Prettier - Code formatter esbenp.prettier-vscode 10.4.0
Pylance ms-python.vscode-pylance 2024.4.1
Python ms-python.python 2024.4.1
Python Debugger ms-python.debugpy 2024.4.0
python-snippets cstrap.python-snippets 0.1.2
python-string-sql ptweir.python-string-sql 1.2.0
R REditorSupport.r 2.8.2
R Debugger RDebugger.r-debugger 0.5.4
Rainbow CSV mechatroner.rainbow-csv 3.11.0
RBS Syntax Highlighting GracefulPotato.rbs-syntax 0.3.0
Remote - SSH ms-vscode-remote.remote-ssh 0.110.1
Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit 0.86.0
Remote - Tunnels ms-vscode.remote-server 1.5.1
Remote Explorer ms-vscode.remote-explorer 0.4.3
reStructuredText lextudio.restructuredtext 189.3.0
reStructuredText Syntax highlighting trond-snekvik.simple-rst 1.5.4
Ruby LSP Shopify.ruby-lsp 0.5.17
Ruby Solargraph castwide.solargraph 0.24.1
ruby-rubocop misogi.ruby-rubocop 0.8.6
Ruff charliermarsh.ruff 2024.16.0
rust-analyzer rust-lang.rust-analyzer 0.4.1919
Shebang Snippets rpinski.shebang-snippets 0.1.4
shell-format foxundermoon.shell-format 7.2.5
ShellCheck timonwong.shellcheck 0.37.0
shellman Remisa.shellman 5.7.0
sidebar-markdown-notes assisrMatheus.sidebar-markdown-notes 1.2.0
SQLite alexcvzz.vscode-sqlite 0.14.1
SVG jock.svg 1.5.3
Swift sswg.swift-lang 1.8.1
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.8
TIFF Preview analytic-signal.preview-tiff 1.0.1
Todo Tree Gruntfuggly.todo-tree 0.0.226
Turbo Console Log ChakrounAnas.turbo-console-log 2.10.4
vscode-icons vscode-icons-team.vscode-icons 12.7.0
vscode-pdf tomoki1207.pdf 1.2.2
WSL ms-vscode-remote.remote-wsl 0.88.0
YAML redhat.vscode-yaml 1.14.0
Zip File Explorer slevesque.vscode-zipexplorer 0.3.1
ZipFS - a zip file system arcanis.vscode-zipfs 3.0.0
System Info
Item Value
CPUs Apple M1 Max (10 x 24)
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 56, 47, 46
Memory (System) 64.00GB (4.98GB free)
Process Argv /Users/alan/Library/Mobile Documents/comappleCloudDocs/Projects/face-ai --crash-reporter-id d42c285a-75a9-4203-a778-028b68b74075
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r6:30993542
dsvsc020:30976470
pythonait:31006305
jchc7451:30973076
gee8j676:31009558
dsvsc021:30996838
gd77d436:30999572
bdiig495:31013172

@karthiknadig
Copy link
Member

@alanwilter Try clearing the cache by running Python: Clear cache and reload window command. If that does not help, then please share the logs from output > python.

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-environments Features relating to handling interpreter environments labels Apr 18, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Apr 18, 2024
Copy link

github-actions bot commented Jun 7, 2024

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants