#4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py))
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Summary
Children
Comments
- 4 years, 10 months ago by Sharif Mehedi in reply to Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : Thank you for the compliment and also for the explanation of the word.
- 4 years, 10 months ago by Luc Saffre in reply to Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : Etymology for "attaboy": probably alteration of "that's the boy". First known use in 1909 (according to [url www.merriam-webster.com/dictionary/attaboy].
- 4 years, 10 months ago by Luc Saffre in reply to Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) (2 replies) : NB the correct translation for "tubli poiss" is [url www.urbandictionary.com/define.php?term=attaboy attaboy].
- 4 years, 10 months ago by Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : As a quick fix I moved the docstrings from etgen.html to [url etgen.lino-framework.org/usage.html].
- 4 years, 10 months ago by Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : The etgen docs are really poor at the moment. Nobody would understand what the etgen package does. They need a fundamental redesign. I guess that you prefer me do this.
- 4 years, 10 months ago by Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) (1 reply) : Ha! Tubli poiss! Yes, of course, that was the reason! (now that you found it, it's clear :-)
- 4 years, 10 months ago by Sharif Mehedi about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : I guess we need to move the doctests to some other place.
- 4 years, 10 months ago by Sharif Mehedi about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : This is happening due to name conflict. the import call in lxml `from html import escape as html_escape` is looking into the etgen.html.py file rather then looking into python's base html package.
- 4 years, 10 months ago by Luc Saffre about #4401 (ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)) : Occurs when I do dt etgen/html.py in etgen.