Replies: 4 comments 2 replies
-
|
Are you activating your python environment prior to running the editor? Here's some documentation about import resolutions that you might find useful. |
Beta Was this translation helpful? Give feedback.
-
|
I started the editor from the correct venv and I verified from the editor that the underlying venv ic correct. I actually went through the guide and I tried the following: Attempt 1: Attempt 2: Attempt 3: None of them worked. EDIT: Attempt 1 works on WSL, but it does not work on macos. |
Beta Was this translation helpful? Give feedback.
-
|
Update. On macos, I created a new conda environment called I have updated the config entries It surprises me that assume Python version 3.13.5.final.0 when we are inside a conda virtual environment and |
Beta Was this translation helpful? Give feedback.
-
|
This looks like a bug that only seems to happen when using macos. Shall I open an issue so that someone could pick it up? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Vim9 with a LSP client that works very well, but it is giving me headaches with
pyright.The lsp is configured according to the following:
To reproduce:
Yet, I have
Import errorwhen I import a standard library such asnumpy.I am using
numpy 2.3.1, python 3.12.12. Note that the version ofnumpyis shipped with stubs.I checked that
numpyis installed and that I am in the correctcondavenv.Beta Was this translation helpful? Give feedback.
All reactions