{"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":"

Issue<\/h2>\n

When you try and run a yum update you receive the following error :<\/p>\n

root@localhost:\/$ yum update
\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>\n

Solution<\/h2>\n

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.
\n<\/span><\/p>\n

root@localhost:\/$ rpm -Va python\\* yum\\*
\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

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
\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>\n

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

Additional Notes<\/h2>\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":"\nYum Update Error: 'module object' has no attribute 'HTTPSHandler'<\/title>\n<meta name=\"description\" content=\"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Yum Update Error: 'module object' has no attribute 'HTTPSHandler'\" \/>\n<meta property=\"og:description\" content=\"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-29T15:34:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T13:06:13+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"Yum Update Error: ‘module object’ has no attribute ‘HTTPSHandler’\",\"datePublished\":\"2009-10-29T15:34:13+00:00\",\"dateModified\":\"2023-02-24T13:06:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\"},\"wordCount\":428,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\",\"url\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\",\"name\":\"Yum Update Error: 'module object' has no attribute 'HTTPSHandler'\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2009-10-29T15:34:13+00:00\",\"dateModified\":\"2023-02-24T13:06:13+00:00\",\"description\":\"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating Systems\",\"item\":\"https:\/\/www.fir3net.com\/os\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux\",\"item\":\"https:\/\/www.fir3net.com\/os\/linux\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Yum Update Error: ‘module object’ has no attribute ‘HTTPSHandler’\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Yum Update Error: 'module object' has no attribute 'HTTPSHandler'","description":"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html","og_locale":"en_US","og_type":"article","og_title":"Yum Update Error: 'module object' has no attribute 'HTTPSHandler'","og_description":"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File","og_url":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html","og_site_name":"Fir3net","article_published_time":"2009-10-29T15:34:13+00:00","article_modified_time":"2023-02-24T13:06:13+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"Yum Update Error: ‘module object’ has no attribute ‘HTTPSHandler’","datePublished":"2009-10-29T15:34:13+00:00","dateModified":"2023-02-24T13:06:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html"},"wordCount":428,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html","url":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html","name":"Yum Update Error: 'module object' has no attribute 'HTTPSHandler'","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2009-10-29T15:34:13+00:00","dateModified":"2023-02-24T13:06:13+00:00","description":"Issue When you try and run a yum update you receive the following error : root@localhost:\/$ yum update Traceback (most recent call last): File","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/UNIX\/Linux\/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Operating Systems","item":"https:\/\/www.fir3net.com\/os"},{"@type":"ListItem","position":3,"name":"Linux","item":"https:\/\/www.fir3net.com\/os\/linux"},{"@type":"ListItem","position":4,"name":"Yum Update Error: ‘module object’ has no attribute ‘HTTPSHandler’"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/337"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":2,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":3465,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/337\/revisions\/3465"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}