[matplotlib-devel] AttributeError: 'module' object has no attribute 'HTTPSHandler'
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 -- 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
Re: [matplotlib-devel] AttributeError: 'module' object has no attribute 'HTTPSHandler'
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' -- 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
Re: [matplotlib-devel] AttributeError: 'module' object has no attribute 'HTTPSHandler'
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
[matplotlib-devel] Python 3.x port status/roadmap
Things are looking pretty good over on the Python 3 branch, thanks to the great work done at CTPUG, Sage Days 29 and elsewhere, and it probably bears some discussion about where we'd like to go from here. I'm thinking we should probably do another 1.0.x release with all of the bugfixes we currently have on that branch. Then, the question is when to start treating the py3 branch as master. The only downside on Python 2.x (that I'm aware of) is the dropped support for Python 2.6. There are still a number of reasons (mainly due to external library dependencies) that one may not to run matplotlib on Python 3.x, but that's a separate question, IMHO. The status of the Py3 work is here: https://github.com/matplotlib/matplotlib-py3/wiki I would love a Mac user to build and run regression tests on both Python 2.x and Python 3.x, and run some interactive examples, particularly the mac os backend, as I haven't been able to test that personally. Thoughts? Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA -- 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
[matplotlib-devel] matplotlib-py3: dateutil 2.0 and patch for mathtext_wx example
Hello, Dateutil 2.0 is now available for Python 3.x at http://niemeyer.net/python-dateutil. The example user_interfaces/mathtext_wx.py is broken since as_rgba_str() was removed from the ft2font extension. A patch is attached. Christoph diff --git a/examples/user_interfaces/mathtext_wx.py b/examples/user_interfaces/mathtext_wx.py index 06197bb..9d19e09 100644 --- a/examples/user_interfaces/mathtext_wx.py +++ b/examples/user_interfaces/mathtext_wx.py @@ -5,7 +5,7 @@ controls on wxPython. import matplotlib matplotlib.use(WxAgg) -from numpy import arange, sin, pi, cos, log +from numpy import arange, sin, pi, cos, log, zeros from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wx import NavigationToolbar2Wx from matplotlib.figure import Figure @@ -22,9 +22,10 @@ from matplotlib.mathtext import MathTextParser mathtext_parser = MathTextParser(Bitmap) def mathtext_to_wxbitmap(s): ftimage, depth = mathtext_parser.parse(s, 150) -return wx.BitmapFromBufferRGBA( -ftimage.get_width(), ftimage.get_height(), -ftimage.as_rgba_str()) +rgba = zeros((ftimage.get_height(), ftimage.get_width(), 4), dtype='uint8') +rgba[...,3] = ftimage.as_array() +return wx.BitmapFromBufferRGBA(ftimage.get_width(), ftimage.get_height(), + rgba) functions = [ -- 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
Re: [matplotlib-devel] Python 3.x port status/roadmap
Hi Mike, On Tue, Mar 29, 2011 at 12:52 PM, Michael Droettboom md...@stsci.edu wrote: Things are looking pretty good over on the Python 3 branch, thanks to the great work done at CTPUG, Sage Days 29 and elsewhere, and it probably bears some discussion about where we'd like to go from here. I'm thinking we should probably do another 1.0.x release with all of the bugfixes we currently have on that branch. Then, the question is when to start treating the py3 branch as master. The only downside on Python 2.x (that I'm aware of) is the dropped support for Python 2.6. There are still a number of reasons (mainly due to external library dependencies) that one may not to run matplotlib on Python 3.x, but that's a separate question, IMHO. The status of the Py3 work is here: https://github.com/matplotlib/matplotlib-py3/wiki I would love a Mac user to build and run regression tests on both Python 2.x and Python 3.x, and run some interactive examples, particularly the mac os backend, as I haven't been able to test that personally. Thoughts? How about the following: 1) Cut a new v1.0.x release, update the documentation at the sourceforge site, and announce on all the mailing lists that development has moved to github. 2) Announce that the v1.1.x series will be the last to support =python-2.5, and that a v1.1.x feature freeze is about to go into effect. Once devs have the features committed that they will need with =python-2.5, create the v1.1.x maintenance branch and cut the 1.1.0 release. 3) Merge matplotlib-py3/master into matplotlib/master, champagne and doughnuts 4?) Make v1.2.0alpha1 binaries available so bleeding edgers can help identify issues on Windows (and maybe OS X). Darren -- 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