Python / Poetry / Pyright cannot import modules (ModuleNotFoundError) #20455
Labels
bug
[core label]
language server
An umbrella label for all language servers
language
An umbrella label for all programming languages syntax behaviors
python
Python programming language support
Check for existing issues
Describe the bug / provide steps to reproduce it
I have a Python project with a virtual environment created with poetry. It's using the pyright LSP if that matters. The REPL is unable to import modules that are installed in the virtual environment.
Note that the kernels listed in
jupyter kernelspec list
is not listed in zed. I have tried restarting zed and doingrepl: refresh kernel..
The kernel appears in REPL sessions
But I cannot select it. I do not want to edit a global config file since the kernel will vary for each project. Each poetry project has its own poetry kernel and virtual environment.
Environment
Zed: v0.160.7 (Zed)
OS: Linux Wayland fedora 41
Memory: 30.9 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (RPL-U) || Intel open-source Mesa driver || Mesa 24.2.6
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: