You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a persistent ModuleNotFoundError: No module named xxx error when running unit tests using unittest in VS Code. This issue seems to be related to the previously reported issue #23587, but with additional complications.
Hi! Thank you for the detailed report! I put out a fix on vscode insiders- have you been able to try it with that fix? Let me know if it helped and I can take a look at the specifics of yours if it didn't get resolved- thanks!
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.
Type: Bug
Behaviour
I am encountering a persistent
ModuleNotFoundError: No module named xxx
error when running unit tests usingunittest
in VS Code. This issue seems to be related to the previously reported issue #23587, but with additional complications.Steps to reproduce:
Create a project with the following structure:
Add the following configuration to
.vscode/settings.json
:Initially, after deleting the
.vscode/settings.json
, clearing cache, and reinstalling the Python extension, the tests configure correctly using:Close and reopen VS Code. Running the tests results in a
ModuleNotFoundError
, using:Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.8.1
VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.22631
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: