On Tue, Mar 29, 2011 at 4:06 AM, Nils Wagner
<nwag...@iam.uni-stuttgart.de> wrote:
> On Tue, 29 Mar 2011 10:01:34 +0200
>  "Nils Wagner" <nwag...@iam.uni-stuttgart.de> 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'

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.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to