when i do yum update on fedora 21 i get the following error and i am not able to run any of the packages with yum…
This problem started when i upgraded python to 3.4.3… later i reverted back to 2.7… Right now i am running python 2.7 but still i am getting the following error…
[root@localhost bin]# yum update
Traceback (most recent call last):
File “/bin/yum”, line 22, in
import yummain
File “/usr/share/yum/yummain.py”, line 22, in
import clientStuff
File “/usr/share/yum/clientStuff.py”, line 18, in
import rpm
ImportError: No module named rpm
[root@localhost bin]#
Err, Python 2 & 3 aren’t compatible - you should have both on your system, otherwise you could have some problems (as a lot of system programs rely on it). How did you remove it - I’d imagine the package manager would have wanted to remove loads of stuff due to dependencies?
or you could manually download all the original default rpm’s of python and reinstall them.
(good luck … a reinstall will probably be easier, then don’t mess with python which can be a b*tch to fix once you break it )