Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
L-U-T-i opened this issue Feb 12, 2024 · 1 comment
Labels

Comments

@L-U-T-i
Copy link

L-U-T-i commented Feb 12, 2024

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 L-U-T-i closed this as completed Feb 15, 2024
@L-U-T-i L-U-T-i reopened this Feb 15, 2024
@jan-kolarik
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants