SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Nils W. <nw...@ia...> - 2011年03月29日 08:01:42
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
From: Nils W. <nw...@ia...> - 2011年03月29日 08:07:06
On 2011年3月29日 10:01:34 +0200
 "Nils Wagner" <nw...@ia...> 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'
 
From: Darren D. <dsd...@gm...> - 2011年03月29日 11:47:28
On Tue, Mar 29, 2011 at 4:06 AM, Nils Wagner
<nw...@ia...> wrote:
> On 2011年3月29日 10:01:34 +0200
> "Nils Wagner" <nw...@ia...> 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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /