dnf-plugins-core icon indicating copy to clipboard operation
dnf-plugins-core copied to clipboard

Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'

Open L-U-T-i opened this issue 1 year ago • 1 comments

dnfdaemon is throwing me out the following error: Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli'

I've looked at the code of debuginfo-install.py and found only: import dnf line.

Considering 'cli' module resides in its own subdirectory, shouldn't there be also a line: import dnf.cli there? Or, any 'cli' being referenced as 'dnf.cli' (and not just 'cli')?

I've manually added this import line, and it seems to resolve the issue (that error is not logged anymore at least).

L-U-T-i avatar Feb 12 '24 12:02 L-U-T-i

Hi, thanks for the report. It seems that when the debuginfo-install plugin is used by dnf itself, the dnf.cli module is imported by some other script beforehand, so it's working. However, as you've pointed out, it should be referenced directly in debuginfo-install.py.

jan-kolarik avatar Mar 11 '24 10:03 jan-kolarik