Bug 1706811

Summary: AttributeError: 'MLStripper' object has no attribute 'convert_charrefs'
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: pkgwatAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: infra-sig, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pkgwat-0.13-1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-13 01:06:54 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 Kamil Páral 2019-05-06 10:45:05 UTC
Description of problem:

$ pkgwat releases firefox
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 32, in strip_tags
    s.feed(d)
  File "/usr/lib64/python3.7/html/parser.py", line 111, in feed
    self.goahead(0)
  File "/usr/lib64/python3.7/html/parser.py", line 139, in goahead
    if self.convert_charrefs and not self.cdata_elem:
AttributeError: 'MLStripper' object has no attribute 'convert_charrefs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/cliff/app.py", line 401, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3.7/site-packages/pkgwat/cli/subcommands.py", line 180, in take_action
    start_row=args.start_row,
  File "/usr/lib/python3.7/site-packages/pkgwat/api/__init__.py", line 270, in releases
    return _make_request(path, query, strip_tags)
  File "/usr/lib/python3.7/site-packages/pkgwat/api/__init__.py", line 143, in _make_request
    d = pkgwat.api.utils.strip_tags(d)
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 24, in strip_tags
    return dict(((k, strip_tags(v)) for k, v in d.items()))
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 24, in <genexpr>
    return dict(((k, strip_tags(v)) for k, v in d.items()))
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 27, in strip_tags
    return [strip_tags(element) for element in d]
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 27, in <listcomp>
    return [strip_tags(element) for element in d]
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 24, in strip_tags
    return dict(((k, strip_tags(v)) for k, v in d.items()))
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 24, in <genexpr>
    return dict(((k, strip_tags(v)) for k, v in d.items()))
  File "/usr/lib/python3.7/site-packages/pkgwat/api/utils.py", line 33, in strip_tags
    except html_parser.HTMLParseError:
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.7/logging/__init__.py", line 1037, in emit
    stream.write(msg + self.terminator)
  File "/usr/lib64/python3.7/codecs.py", line 378, in write
    self.stream.write(data)
TypeError: write() argument must be str, not bytes
Call stack:
  File "/usr/bin/pkgwat", line 11, in <module>
    load_entry_point('pkgwat.cli==0.11', 'console_scripts', 'pkgwat')()
  File "/usr/lib/python3.7/site-packages/pkgwat/cli/main.py", line 60, in main
    return myapp.run(argv)
  File "/usr/lib/python3.7/site-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python3.7/site-packages/pkgwat/cli/main.py", line 55, in run_subcommand
    return super(PkgWat, self).run_subcommand(argv)
  File "/usr/lib/python3.7/site-packages/cliff/app.py", line 406, in run_subcommand
    self.LOG.error(err)
Message: AttributeError("module 'html.parser' has no attribute 'HTMLParseError'")
Arguments: ()



Version-Release number of selected component (if applicable):
python3-pkgwat-0.11-14.fc30.noarch

How reproducible:
always

Comment 1 Fedora Update System 2019-07-11 15:19:47 UTC
FEDORA-2019-c8e7935ce0 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c8e7935ce0

Comment 2 Fedora Update System 2019-07-12 02:16:00 UTC
pkgwat-0.13-1.fc30, python-pkgwat-api-0.13-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-c8e7935ce0

Comment 3 Fedora Update System 2019-07-13 01:06:54 UTC
pkgwat-0.13-1.fc30, python-pkgwat-api-0.13-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.