-
Notifications
You must be signed in to change notification settings - Fork 46
Debugger fails because it cannot find python312.zip #667
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
Comments
will investigate - thanks |
I have the same issue, please help |
same issue here |
@karthiknadig any thoughts here? Looping you in for Windows expertise since this seems windows specific |
Can you share the code that is causing this? |
How did you install Python? Is it from the installer or is it the embedded install? That message should only really come up probably if the stdlib code can't be found or somehow the Python install assumes the stdlib is only available as a zip file. |
It was using python.org's official Python 3.12 installer for Windows.
The bug originally happened on some proprietary code that I cannot share, but when trying to narrow down the issue, I found it would even trigger on a basic Hello World example as below. If I set a breakpoint on the first line, the debugger didn't even reach it. if __name__ == "__main__":
print("Hello World") |
Hi @Scrashdown, to clarify this only occurs for 3.12 right? |
This might be an issue with that particular install. Can you try uninstall that version of python, and install it clean? There error here is coming for the installation, I suspect something went wrong with that install. |
I've only seen it happen on 3.12, but as it only happens once every few weeks maybe, it's hard to know for sure if changing versions would work around the issue. Anyway I'll switch to python 3.13 and report back if the issue happens again.
Maybe, as stated above I'll uninstall python 3.12 and install 3.13, then report back if the issue happens again. |
Happens on 3.9.13 too, with "justMyCode": false. |
Type: Bug
Behaviour
When trying to debug any Python program with the Python Debugger extension, the debugger fails with this error:
At the top of this stack trace:
This seems similar to this issue, but the fix to this issue does not apply in my case (no
if __name__ == "__main__":
in my code).Steps to reproduce:
Diagnostic data
launch.json
configurationOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Debugger
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Debugger
)When trying to debug any Python program with the Python Debugger extension, the debugger fails with this error:
At the top of this stack trace:
This seems similar to this issue, but the fix to this issue does not apply in my case (no
if __name == "__main__":
in my code).Steps to reproduce:
Diagnostic data
launch.json
configurationOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Debugger
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Debugger
)Extension version: 2025.5.2025031101
VS Code version: Code 1.98.1 (2fc07b811f760549dab9be9d2bedd06c51dfcb9a, 2025-03-10T15:38:08.854Z)
OS version: Windows_NT x64 10.0.19045
Modes:
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
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: