Skip to content
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

Compatibility with Python 3.9 #7

Open
chimuchile opened this issue May 2, 2023 · 0 comments
Open

Compatibility with Python 3.9 #7

chimuchile opened this issue May 2, 2023 · 0 comments

Comments

@chimuchile
Copy link

chimuchile commented May 2, 2023

I'm getting the below error:

Traceback (most recent call last): File "/Users/cbarrueco/git/lipwig/./lipwig.py", line 7, in <module> from cgi import escape ImportError: cannot import name 'escape' from 'cgi' (/Users/cbarrueco/opt/anaconda3/lib/python3.9/cgi.py)

I've resolved changing the below line in lipwig.py:
from cgi import escape
to
from html import escape

It works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant