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

ImportError: No module named libdnf.transaction #1867

Open
alitariq4589 opened this issue Dec 9, 2022 · 0 comments
Open

ImportError: No module named libdnf.transaction #1867

alitariq4589 opened this issue Dec 9, 2022 · 0 comments

Comments

@alitariq4589
Copy link

Dear all,
I have a broken pre-installed dnf such that whenever I write dnf on commandline, I get ModuleNotFoundError: No module named 'libdnf'. That's because I installed python3.8.15 from source with --prefix=/usr. So I tried building dnf from source. Build does not give me any error. But when I execute installed binary from dnf/bin/dnf-2, I get following error:

Traceback (most recent call last):
  File "./dnf-2", line 57, in <module>
    from dnf.cli import main
  File "/root/dnf/dnf/__init__.py", line 31, in <module>
    import dnf.base
  File "/root/dnf/dnf/base.py", line 27, in <module>
    import libdnf.transaction
ImportError: No module named libdnf.transaction

My specifications are as follows:
Architecture: riscv64 (I am using hifive unleashed board from sifive).
Distro: Fedora Rawhide

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

No branches or pull requests

1 participant