Text of discourse.matplotlib.org › t › attributeerror-module-object-has-no-attribute-http… as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

AttributeError: 'module' object has no attribute 'HTTPSHandler' - matplotlib-devel - Matplotlib

AttributeError: 'module' object has no attribute 'HTTPSHandler' Development matplotlib-devel _Nils_Wagner1 March 29, 2011, 8:01am 1 Hi all, I am using the latest matplotlib. How can I resolve the following problem ? import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py", line 133, in <module> from matplotlib.rcsetup import (defaultParams, File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 19, in <module> from matplotlib.colors import is_color_like File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/colors.py", line 54, in <module> import matplotlib.cbook as cbook File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/cbook.py", line 453, in <module> class ViewVCCachedServer(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' Thanks in advance Nils _Nils_Wagner1 March 29, 2011, 8:06am 2 Hi all, I am using the latest matplotlib.

How can I resolve the following problem ? import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py", line 133, in <module> from matplotlib.rcsetup import (defaultParams, File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 19, in <module> from matplotlib.colors import is_color_like File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/colors.py", line 54, in <module> import matplotlib.cbook as cbook File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/cbook.py", line 453, in <module> class ViewVCCachedServer(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' Thanks in advance Nils >>> dir (urllib2) ['AbstractBasicAuthHandler', 'AbstractDigestAuthHandler', 'AbstractHTTPHandler', 'BaseHandler', 'CacheFTPHandler', 'FTPHandler', 'FileHandler', 'GopherError', 'GopherHandler', 'HTTPBasicAuthHandler', 'HTTPCookieProcessor', 'HTTPDefaultErrorHandler', 'HTTPDigestAuthHandler', 'HTTPError', 'HTTPErrorProcessor', 'HTTPHandler', 'HTTPPasswordMgr', 'HTTPPasswordMgrWithDefaultRealm', 'HTTPRedirectHandler', 'OpenerDirector', 'ProxyBasicAuthHandler', 'ProxyDigestAuthHandler', 'ProxyHandler', 'Request', 'StringIO', 'URLError', 'UnknownHandler', '__builtins__', '__doc__', '__file__', '__name__', '__version__', '_cut_port_re', '_opener', '_parse_proxy', 'addinfourl', 'base64', 'bisect', 'build_opener', 'ftpwrapper', 'getproxies', 'hashlib', 'httplib', 'install_opener', 'localhost', 'mimetools', 'noheaders', 'os', 'parse_http_list', 'parse_keqv_list', 'posixpath', 'quote', 'random', 'randombytes', 're', 'request_host', 'socket', 'splitattr', 'splitgophertype', 'splithost', 'splitpasswd', 'splitport', 'splitquery', 'splittype', 'splituser', 'splitvalue', 'sys', 'time', 'unquote', 'unwrap', 'url2pathname', 'urlopen', 'urlparse'] urllib2.__version__ '2.5' ··· On Tue, 29 Mar 2011 10:01:34 +0200 "Nils Wagner" < [email protected] ...> wrote: _Darren_Dale2 March 29, 2011, 11:47am 3 It looks like the changes I made to fetch sample data from github instead of sourceforge are causing problems if python was not compiled with SSL support.

Comment out ViewVCCachedServer in cbook.py and I'll figure something out. ··· On Tue, Mar 29, 2011 at 4:06 AM, Nils Wagner < [email protected] ...> wrote: On Tue, 29 Mar 2011 10:01:34 +0200 > "Nils Wagner" < [email protected] ...> wrote: Hi all, I am using the latest matplotlib. How can I resolve the following problem ? import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/__init__.py", line 133, in <module> from matplotlib.rcsetup import (defaultParams, File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 19, in <module> from matplotlib.colors import is_color_like File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/colors.py", line 54, in <module> import matplotlib.cbook as cbook File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/cbook.py", line 453, in <module> class ViewVCCachedServer(urllib2.HTTPSHandler): AttributeError: 'module' object has no attribute 'HTTPSHandler' Thanks in advance Nils >>> dir (urllib2) ['AbstractBasicAuthHandler', 'AbstractDigestAuthHandler', 'AbstractHTTPHandler', 'BaseHandler', 'CacheFTPHandler', 'FTPHandler', 'FileHandler', 'GopherError', 'GopherHandler', 'HTTPBasicAuthHandler', 'HTTPCookieProcessor', 'HTTPDefaultErrorHandler', 'HTTPDigestAuthHandler', 'HTTPError', 'HTTPErrorProcessor', 'HTTPHandler', 'HTTPPasswordMgr', 'HTTPPasswordMgrWithDefaultRealm', 'HTTPRedirectHandler', 'OpenerDirector', 'ProxyBasicAuthHandler', 'ProxyDigestAuthHandler', 'ProxyHandler', 'Request', 'StringIO', 'URLError', 'UnknownHandler', '__builtins__', '__doc__', '__file__', '__name__', '__version__', '_cut_port_re', '_opener', '_parse_proxy', 'addinfourl', 'base64', 'bisect', 'build_opener', 'ftpwrapper', 'getproxies', 'hashlib', 'httplib', 'install_opener', 'localhost', 'mimetools', 'noheaders', 'os', 'parse_http_list', 'parse_keqv_list', 'posixpath', 'quote', 'random', 'randombytes', 're', 'request_host', 'socket', 'splitattr', 'splitgophertype', 'splithost', 'splitpasswd', 'splitport', 'splitquery', 'splittype', 'splituser', 'splitvalue', 'sys', 'time', 'unquote', 'unwrap', 'url2pathname', 'urlopen', 'urlparse'] urllib2.__version__ '2.5'