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

Python interpreter unable to use correct python #24102

Closed
kathykwon opened this issue Sep 12, 2024 · 2 comments
Closed

Python interpreter unable to use correct python #24102

kathykwon opened this issue Sep 12, 2024 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@kathykwon
Copy link

kathykwon commented Sep 12, 2024

Type: Bug

Behaviour

The python interpreter is not able to find my python imports even after installing all package dependencies

Python extension also missing from zsh terminal process
image

macOS sonoma 14.6.1
python extension v2024.14.0

I also followed the suggested solutions from this thread #21166, and Python language server does not show for me

This solution also did not work for me

Steps to reproduce:

python3 -m venv .venv
source .venv/bin/activate
poetry install --all-extras

Python > Select Interpreter > Python 3.10.14 ('.venv': Poetry)

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2024.14.0
VS Code version: Code 1.93.0 (Universal) (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Darwin arm64 23.6.0
Modes:

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


languageServer: "Pylance"

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

Installed Extensions
Extension Name Extension Id Version
[Kuskus] Kusto Syntax Highlighting rosshamish.kuskus-kusto-syntax-highlighting 2.0.4
autoDocstring - Python Docstring Generator njpwerner.autodocstring 0.6.1
Azure Account ms-vscode.azure-account 0.12.0
Azure App Service ms-azuretools.vscode-azureappservice 0.25.3
Azure Container Apps ms-azuretools.vscode-azurecontainerapps 0.7.1
Azure Databases ms-azuretools.vscode-cosmosdb 0.22.0
Azure Developer CLI ms-azuretools.azure-dev 0.8.3
Azure Functions ms-azuretools.vscode-azurefunctions 1.15.3
Azure Resources ms-azuretools.vscode-azureresourcegroups 0.9.5
Azure Static Web Apps ms-azuretools.vscode-azurestaticwebapps 0.12.2
Azure Storage ms-azuretools.vscode-azurestorage 0.16.1
Azure Tools ms-vscode.vscode-node-azure-pack 1.2.0
Azure Virtual Machines ms-azuretools.vscode-azurevirtualmachines 0.6.5
Azurite Azurite.azurite 3.32.0
Better Jinja samuelcolvin.jinjahtml 0.20.0
Black Formatter ms-python.black-formatter 2024.2.0
C/C++ Themes ms-vscode.cpptools-themes 2.0.0
dbt formatter henriblancke.vscode-dbt-formatter 1.0.1
Dev Containers ms-vscode-remote.remote-containers 0.384.0
Docker ms-azuretools.vscode-docker 1.29.2
DotENV mikestead.dotenv 1.0.1
env0 env0.vscode-env0 0.1.1
GitHub Copilot GitHub.copilot 1.229.0
GitHub Copilot Chat GitHub.copilot-chat 0.20.0
GitLens — Git supercharged eamodio.gitlens 15.4.0
HashiCorp Terraform hashicorp.terraform 2.32.3
JavaScript and TypeScript Nightly ms-vscode.vscode-typescript-next 5.7.20240911
JavaScript Debugger ms-vscode.js-debug 1.93.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.3
Jupyter ms-toolsai.jupyter 2024.8.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.19
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Mypy Type Checker ms-python.mypy-type-checker 2024.0.0
Power User for dbt innoverio.vscode-dbt-power-user 0.44.8
Pylance ms-python.vscode-pylance 2024.9.1
Pylint ms-python.pylint 2023.10.1
Python ms-python.python 2024.14.0
Python Debugger ms-python.debugpy 2024.10.0
Python Environment Manager donjayamanne.python-environment-manager 1.2.4
Remote - SSH ms-vscode-remote.remote-ssh 0.114.2
Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit 0.86.0
Remote Explorer ms-vscode.remote-explorer 0.4.3
Run on Save emeraldwalk.RunOnSave 0.2.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
Terraform 4ops.terraform 0.2.5
Version Lens pflannery.vscode-versionlens 1.14.2
vscode-dbt bastienboutonnet.vscode-dbt 0.5.1
YAML redhat.vscode-yaml 1.15.0
System Info
Item Value
CPUs Apple M1 Pro (10 x 2400)
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
webnn: disabled_off
Load (avg) 4, 4, 4
Memory (System) 32.00GB (1.85GB free)
Process Argv . --crash-reporter-id 1a3e2193-49bd-43f9-bb4c-218c40c8b787
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31134774
wkspc-onlycs-t:31132770
wkspc-ranged-t:31125599
autoexpandse:31133494
fje88620:31121564

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 12, 2024
@anthonykim1
Copy link

Can you update your Python extension to latest? 2024.14.1 stable or latest insiders and Pylance extension to the latest and see if you face the problem? Thanks

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Sep 16, 2024
Copy link

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 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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