You may get an error when you run yum update command.
# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named pycurl
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Soluton:
Download the pycurl package using wget command and extract the file,
# wget https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.0.tar.gz
# tar -xf pycurl-7.19.0.tar.gz
# cd pycurl-7.19.0
# tar -xf pycurl-7.19.0.tar.gz
# cd pycurl-7.19.0
execute the command,
# sudo python2.7 setup.py install
Using curl-config (libcurl 7.29.0)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
.....
running install_egg_info
Removing /usr/lib64/python2.7/site-packages/pycurl-7.19.0-py2.7.egg-info
Writing /usr/lib64/python2.7/site-packages/pycurl-7.19.0-py2.7.egg-info
Now, you can execute the command yum update.
Error 2 :
Also i am getting another error when using yum command,
/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks
Recompile the Python same version.
Comments (0)