EL10: tracer error "Failed loading plugin "tracer_upload": No module named 'imp'"

Out of curiosity I have installed a Alma 10 server and the host tools for foreman client 3.14:

katello-host-tools-4.4.0-2.el10.noarch
katello-host-tools-tracer-4.4.0-2.el10.noarch

However, there seems to be an issue with a missing python imp module:

# dnf check-update
Failed loading plugin "tracer_upload": No module named 'imp'
...

On el9 with python3.9 the import shows a deprecation warning:

>>> import imp
<stdin>:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
```

thus I would say, they have removed it on el10 running python3.12...
1 Like

That is odd we should have removed all references of imp here Add CentOS 10, Debian 11 and openSUSE 15 tests by evgeni · Pull Request #162 · Katello/katello-host-tools

I did a git grep on the repo and don’t see any more references to imp it looks like it was added in 4.5.0 I can get a new release out for that package. @pcreech are we doing any more Foreman 3.14.z releases?

1 Like

It looks like Katello Host Tools 4.5.0 is packaged in the 3.15.0 client repo, perhaps worth trying it out: Index of /client/3.15/el10/x86_64

1 Like