Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/mpl_examples/api/date_demo.py doesn't run #1083

Closed
pelson opened this issue Aug 14, 2012 · 2 comments
Closed

doc/mpl_examples/api/date_demo.py doesn't run #1083

pelson opened this issue Aug 14, 2012 · 2 comments

Comments

@pelson
Copy link
Member

pelson commented Aug 14, 2012

Has anyone else seen this? I thought I had seen a solution to to this somewhere, but can't find it. I seem to remember @jkseppan was involved in the conversation too. Sorry it is all a bit vague.

$> python2.7 doc/mpl_examples/api/date_demo.py 

Traceback (most recent call last):
  File "doc/mpl_examples/api/date_demo.py", line 28, in <module>
    datafile = cbook.get_sample_data('goog.npy')
  File "lib/matplotlib/cbook.py", line 740, in get_sample_data
    return myserver.get_sample_data(fname, asfileobj=asfileobj)
  File "lib/matplotlib/cbook.py", line 669, in get_sample_data
    response = self.opener.open(url)
  File "lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "lib/python2.7/urllib2.py", line 1207, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "lib/python2.7/urllib2.py", line 1168, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "lib/python2.7/urllib2.py", line 259, in get_selector
    return self.__r_host
  File "lib/python2.7/urllib2.py", line 218, in __getattr__
    return getattr(self, attr)
  File "lib/python2.7/urllib2.py", line 218, in __getattr__
    return getattr(self, attr)
  File "lib/python2.7/urllib2.py", line 214, in __getattr__
    if attr[:12] == '_Request__r_':
RuntimeError: maximum recursion depth exceeded in cmp

@jkseppan
Copy link
Member

Sounds like http://bugs.python.org/issue8797.

I wonder if we shouldn't just start delivering sample data as part of the package - it's not the first time that something's gone wrong with the downloading.

@jkseppan
Copy link
Member

I think this should be fixed as of 6c5e961

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants