Project

General

Profile

Actions

Bug #26363

closed

tracer plugin to yum/dnf prevents yum/dnf from working if tracer is broken

Added by Evgeni Golov over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I've been playing with tracer on EL8 and due to a bad dependency, Tracer itself was not functioning:

>>> import tracer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/tracer/__init__.py", line 3, in <module>
    from tracer.query import Query
  File "/usr/lib/python3.6/site-packages/tracer/query.py", line 19, in <module>
    from tracer.resources.tracer import Tracer
  File "/usr/lib/python3.6/site-packages/tracer/resources/tracer.py", line 29, in <module>
    from tracer.resources.applications import Applications, AffectedApplication
  File "/usr/lib/python3.6/site-packages/tracer/resources/applications.py", line 21, in <module>
    from bs4 import BeautifulSoup, element
  File "/usr/lib/python3.6/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python3.6/site-packages/bs4/builder/__init__.py", line 308, in <module>
    from . import _htmlparser
  File "/usr/lib/python3.6/site-packages/bs4/builder/_htmlparser.py", line 7, in <module>
    from html.parser import (
ImportError: cannot import name 'HTMLParseError'

While this was my own fault, I've tried to kick tracer from my system:

[root@rhel-8-nightly ~]# yum erase katello-host-tools-tracer
Error Importing tracer! Is tracer installed?
[root@rhel-8-nightly ~]#

I don't think the plugin we ship should prevent yum from working?

Droping sys.exit from /usr/lib/python3.6/site-packages/katello/tracer.py was sufficient to fix that issue.

Actions

Also available in: Atom PDF