Project

General

Profile

Bug #26363

Updated by Evgeni Golov about 5 years ago

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

 <pre> 
 >>> 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' 
 </pre> </code> 

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

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

 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.

Back