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
After upgrading the VS code extension to v2024.12.0, the debugger fails to launch in my Python 3.7 environment.
The following relevant extensions are installed in my virtual env, but I don't think they matter, as seems to be loading it from the global environment.
typing==3.7.4
typing-extensions==3.7.4
The error I get is:
...
File "/Users/vasan.subramanian/.vscode/extensions/ms-python.debugpy-2024.12.0-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py", line 4, in <module>
from typing import Tuple, Literal
ImportError: cannot import name 'Literal' from 'typing' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py
I had to revert to debugpy v2024.10.0 to be able to debug my programs.