Thawab fails to start: cannot import name 'escape' from 'cgi'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
thawab (Debian) |
Fix Committed
|
Unknown
|
|||
thawab (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Jammy |
Triaged
|
High
|
Unassigned | ||
Kinetic |
Won't Fix
|
High
|
Unassigned |
Bug Description
Impact
------
The Thawab app doesn't start.
ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/
Python 3.8 dropped the 'escape' function from cgi; we need to import it from 'html' instead.
After that issue is fixed, there is another issue:
$ thawab-gtk
Traceback (most recent call last):
File "/usr/bin/
from Thawab.gtkUi import main
File "/usr/share/
from Thawab.shamelaUtils import ShamelaSqlite, shamelaImport
File "/usr/share/
os.
TypeError: 'float' object cannot be interpreted as an integer
Test Case
---------
Install Thawab.
The app should run. (The command-line name is thawab-gtk)
What Could Go Wrong
-------------------
The app doesn't start currently, so it can't really get any worse.
Other Info
----------
Thawab has a dependency, okasha, that also needs the html escape import fix. This is fixed in okasha 0.3.0.
Changed in thawab (Ubuntu Jammy): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in thawab (Ubuntu Kinetic): | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in thawab (Ubuntu): | |
status: | Fix Committed → Triaged |
Changed in thawab (Ubuntu Jammy): | |
status: | In Progress → Triaged |
Changed in thawab (Ubuntu Kinetic): | |
status: | In Progress → Triaged |
description: | updated |
Changed in thawab (Debian): | |
status: | Unknown → New |
Changed in thawab (Debian): | |
status: | New → Fix Released |
Changed in thawab (Debian): | |
status: | Fix Released → Fix Committed |
Ubuntu 22.10 (Kinetic Kudu) has reached end of life, so this bug will not be fixed for that specific release.