Bug#729590: nitime: FTBFS: RuntimeError: maximum recursion depth exceeded

2013-12-26 Thread Dmitry Shachnev
Control: reassign -1 python-matplotlib 1.3.1-1
Control: severity -1 important
Control: block 706533 by -1

This turns out to be a bug in python-matplotlib. A patch that fixes this bug is
attached. After also applying first hunk of [1], nitime builds fine.

The matplotlib patch is taken from [2].

[1]: https://github.com/nipy/nitime/commit/d9004946ea8f
[2]: https://github.com/matplotlib/matplotlib/commit/cee4ba990c7e20

--
Dmitry ShachnevDescription: fix infinite recursion in units with ndarray subclasses
Origin: upstream, https://github.com/matplotlib/matplotlib/commit/21fd7c03ba1444
Last-Update: 2013-12-24

--- a/lib/matplotlib/units.py
+++ b/lib/matplotlib/units.py
@@ -145,7 +145,13 @@
 return converter
 except AttributeError:
 # not a masked_array
-converter = self.get_converter(xravel[0])
+# Make sure we don't recurse forever -- it's possible for
+# ndarray subclasses to continue to return subclasses and
+# not ever return a non-subclass for a single element.
+next_item = xravel[0]
+if (not isinstance(next_item, np.ndarray) or
+next_item.shape != x.shape):
+converter = self.get_converter(next_item)
 return converter
 
 if converter is None and iterable(x):


Bug#729590: nitime: FTBFS: RuntimeError: maximum recursion depth exceeded

2013-11-14 Thread Andreas Beckmann
Control: tag -1 jessie sid

On Thursday, 14. November 2013 17:24:43 Dmitry Shachnev wrote:
 This package failed to build for me on i386 sid machine:
[...]
 | /tmp/nitime-0.4/debian/tmp/usr/lib/python2.7/dist-packages/nitime/timese
 |ries.py, line 219, in __getitem__ return np.ndarray.__getitem__(self,
 | key)
 | RuntimeError: maximum recursion depth exceeded
 | make[2]: *** [rstexamples] Error 1

reproducible in jessie and sid on amd64
builds fine on wheezy/amd64

Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org