How to fix ImportError: No module named librepo [closed]
I just installed Fedora 22, and this is my first time using Fedora. Since I wanted to see if minecraft was in the repositories, I did the command
yum install minecraft
and got this result
Yum command has been deprecated, redirecting to '/usr/bin/dnf install minecraft'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Traceback (most recent call last):
File "/usr/bin/dnf", line 35, in <module>
from dnf.cli import main
File "/usr/lib/python2.7/site-packages/dnf/__init__.py", line 31, in <module>
import dnf.base
File "/usr/lib/python2.7/site-packages/dnf/base.py", line 26, in <module>
from dnf.comps import CompsQuery
File "/usr/lib/python2.7/site-packages/dnf/comps.py", line 29, in <module>
import dnf.util
File "/usr/lib/python2.7/site-packages/dnf/util.py", line 31, in <module>
import librepo
ImportError: No module named librepo
EDIT: Someone asked what
rpm -Vv python-librepo
returns. It returns this:
missing /usr/lib64/python2.7/site-packages/librepo (Input/output error)
missing /usr/lib64/python2.7/site-packages/librepo/__init__.py (Input/output error)
missing /usr/lib64/python2.7/site-packages/librepo/__init__.pyc (Input/output error)
missing /usr/lib64/python2.7/site-packages/librepo/__init__.pyo (Input/output error)
missing /usr/lib64/python2.7/site-packages/librepo/_librepomodule.so (Input/output error)
can you post
That's pretty weird. "Input/output error" usually signals a hardware problem. Maybe the hard drive is damaged or dying. It seems to be having trouble loading the files belonging to the corresponding python module (librepo).
@rg3, when I do cd /usr/lib64/python2.7/site-packages/librepo and then do ls -a, only . and .. are returned, so it probably means it's not there.
minecraft? sorry but isn't free...no exist available rpm for Fedora. Please read it: https://ask.fedoraproject.org/en/ques...
OP has answered below that a reinstallation fixed it. Probably an error while creating boot media. Closing.