Skip to content

Commit

Permalink
Add README Q/A for new VSCode debugpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
vlagrassa committed Oct 25, 2024
1 parent 9bf508d commit e52d011
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,13 @@ $ arch -x86_64 brew install openssl
```
Q: I get an `ImportError` when running the API in VSCode:
```
ImportError: cannot import name 'Literal' from 'typing' (/Users/ ... /.pyenv/versions/3.7.12/lib/python3.7/typing.py)
```
A: The VSCode extension `debugpy`, version `v2024.12.0`, appears to break on Python 3.7 -- it's not clear if this is a bug, or intentional dropping of support for older versions.
You can get around this by pinning your extension to `v2024.10.0` -- see [the VSCode docs](https://code.visualstudio.com/updates/v1_30#_install-previous-versions) for instructions.

(If this is a bug, further updates to `debugpy` might fix this issue. Keep an eye on it, and try the newest version if necessary.)

0 comments on commit e52d011

Please sign in to comment.