{"id":337,"date":"2009-10-29T15:34:13","date_gmt":"2009-10-29T15:34:13","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2009\/10\/29\/yum-update-shows-module-object-has-no-attribute-httpshandler-error\/"},"modified":"2023-02-24T13:06:13","modified_gmt":"2023-02-24T13:06:13","slug":"yum-update-shows-module-object-has-no-attribute-httpshandler-error","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html","title":{"rendered":"Yum Update Error: ‘module object’ has no attribute ‘HTTPSHandler’"},"content":{"rendered":"
When you try and run a yum update you receive the following error :<\/p>\n
root@localhost:\/$ yum update First of all run the command “rpm -Va python\\* yum\\*<\/strong>“. This will show you all the installed rpms which currently have problems. These dependencies may though also cause other programs\/binaries issues as well. root@localhost:\/$ rpm -Va python\\* yum\\* Using the above as an example we would run the following commands to resolve the problem dependencies :<\/p>\n root@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/openssl-0.9.8e-12.el5.i386.rpm Now you should see no issues from the\u00a0 “rpm -Va python\\* yum\\*<\/strong>” command and be able to run the “yum update<\/strong>” command.<\/p>\n If you still receive issues from the output of\u00a0 “rpm -Va python\\* yum\\*<\/strong>” (Unsatisfied dependencies), you can always try to update the whole of the yum cache via the command “<\/strong><\/span>rpm -Uvh –force –nodeps <\/strong>\/var\/cache\/yum\/*\/packages\/*<\/span><\/strong>.rpm”<\/strong>.<\/p>\n As a last resort you can try to uninstall the the the rpm then reinstall via the commands “rpm -ev –nodeps [rpm name].rpm<\/strong>” and then reinstall via the command “rpm -iv –nodeps [rpm name].rpm<\/strong>“.<\/p>\n","protected":false},"excerpt":{"rendered":" Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File “\/usr\/bin\/yum”, line 4, in ? import yum File “\/usr\/lib\/python2.4\/site-packages\/yum\/__init__.py”, line 42, in ? import config File “\/usr\/lib\/python2.4\/site-packages\/yum\/config.py”, line 27, in ? from parser import ConfigPreProcessor File “\/usr\/lib\/python2.4\/site-packages\/yum\/parser.py”, line 3, in ? … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\n
\nTraceback (most recent call last):
\nFile “\/usr\/bin\/yum”, line 4, in ?
\nimport yum
\nFile “\/usr\/lib\/python2.4\/site-packages\/yum\/__init__.py”, line 42, in ?
\nimport config
\nFile “\/usr\/lib\/python2.4\/site-packages\/yum\/config.py”, line 27, in ?
\nfrom parser import ConfigPreProcessor
\nFile “\/usr\/lib\/python2.4\/site-packages\/yum\/parser.py”, line 3, in ?
\nimport urlgrabber
\nFile “\/usr\/lib\/python2.4\/site-packages\/urlgrabber\/__init__.py”, line 53, in ?
\nfrom grabber import urlgrab, urlopen, urlread
\nFile “\/usr\/lib\/python2.4\/site-packages\/urlgrabber\/grabber.py”, line 406, in ?
\nimport keepalive
\nFile “\/usr\/lib\/python2.4\/site-packages\/urlgrabber\/keepalive.py”, line 339, in ?
\nclass HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
\nAttributeError: ‘module’ object has no attribute ‘HTTPSHandler’\u00a0 <\/span><\/span><\/p>\nSolution<\/h2>\n
\n<\/span><\/p>\n
\nUnsatisfied dependencies for python-iniparse-0.2.3-4.el5.noarch: python(abi) = 2.4
\nUnsatisfied dependencies for python-sqlite-1.1.7-1.2.1.i386: python(abi) = 2.4
\nUnsatisfied dependencies for python-urlgrabber-3.1.0-2.noarch: \/usr\/bin\/python, python(abi) = 2.4
\nUnsatisfied dependencies for python-elementtree-1.2.6-5.i386: python(abi) = 2.4, python-abi = 2.4
\nUnsatisfied dependencies for yum-metadata-parser-1.1.2-2.el5.i386: libglib-2.0.so.0, libxml2.so.2, python(abi) = 2.4<\/span><\/span><\/p>\n
\nroot@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/python-2.4.3-24.el5_3.6.i386.rpm
\nroot@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/libxml2-2.6.26-2.1.2.8.i386.rpm
\nroot@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/glib2-2.12.3-4.el5_3.1.i386.rpm
\nroot@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/bzip2-1.0.3-4.el5_2.i386.rpm
\nroot@localhost:\/$ rpm -Uvh –force –nodeps \/var\/cache\/yum\/*\/packages\/bzip2-libs-1.0.3-4.el5_2.i386.rpm\u00a0<\/span><\/p>\nAdditional Notes<\/h2>\n