Bug 1830213

Summary: supervisor doesn't support python 3.8 (cannot import name 'escape' from 'cgi' )
Product: [Fedora] Fedora Reporter: Dick Marinus <dick>
Component: supervisorAssignee: Francisco Javier Tsao Santín <tsao>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 32CC: agrimm, imlinux+fedora, jal233, projects.rg, troxor0, tsao
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: supervisor-4.2.0-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-12 03:07:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dick Marinus 2020-05-01 06:04:21 UTC
Description of problem:


Version-Release number of selected component (if applicable):
supervisor-4.0.4-4.fc32.noarch


How reproducible:
Always

Steps to Reproduce:
1. dnf install supervisor
2. /usr/bin/supervisord

Actual results:
Traceback (most recent call last):
  File "/usr/bin/supervisord", line 11, in <module>
    load_entry_point('supervisor==4.0.4', 'console_scripts', 'supervisord')()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 40, in <module>
    from supervisor.options import ServerOptions
  File "/usr/lib/python3.8/site-packages/supervisor/options.py", line 54, in <module>
    from supervisor import xmlrpc
  File "/usr/lib/python3.8/site-packages/supervisor/xmlrpc.py", line 24, in <module>
    from supervisor.http import NOT_DONE_YET
  File "/usr/lib/python3.8/site-packages/supervisor/http.py", line 24, in <module>
    from supervisor.medusa import default_handler
  File "/usr/lib/python3.8/site-packages/supervisor/medusa/default_handler.py", line 20, in <module>
    from supervisor.medusa.util import html_repr
  File "/usr/lib/python3.8/site-packages/supervisor/medusa/util.py", line 1, in <module>
    from cgi import escape
ImportError: cannot import name 'escape' from 'cgi' (/usr/lib64/python3.8/cgi.py)

Expected results:
A started supervisord

Additional info:
This is fixed in the latest version of supervisor.

Comment 1 Fedora Update System 2020-05-01 11:36:24 UTC
FEDORA-2020-6cdd2f6d7a has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-6cdd2f6d7a

Comment 2 Fedora Update System 2020-05-02 05:54:14 UTC
FEDORA-2020-6cdd2f6d7a has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-6cdd2f6d7a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-6cdd2f6d7a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2020-05-12 03:07:30 UTC
FEDORA-2020-6cdd2f6d7a has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.