<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1408" rel="nofollow">http://projects.scipy.org/scipy/ticket/1408</a> on 2011-03-11 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>, assigned to unknown.</em></p>
<p dir="auto">Reported by Christoph Gohlke on the mailing list with Python 3.2 on 64-bit Windows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
FAIL: minimum position 7
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;X:\Python32\lib\site-packages\nose\case.py&quot;, line 188, in runTest
    self.test(*self.arg)
  File
&quot;X:\Python32\lib\site-packages\scipy\ndimage\tests\test_measurements.py&quot;,
 line 701, in test_minimum_position07
    assert_equal(output[0], (0, 1))
  File &quot;X:\Python32\lib\site-packages\numpy\testing\utils.py&quot;, line
251, in assert_equal
    assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg),
verbose)
  File &quot;X:\Python32\lib\site-packages\numpy\testing\utils.py&quot;, line
300, in assert_equal
    raise AssertionError(msg)
AssertionError:
Items are not equal:
item=0

 ACTUAL: nan
 DESIRED: 0"><pre class="notranslate"><code class="notranslate">======================================================================
FAIL: minimum position 7
----------------------------------------------------------------------
Traceback (most recent call last):
  File "X:\Python32\lib\site-packages\nose\case.py", line 188, in runTest
    self.test(*self.arg)
  File
"X:\Python32\lib\site-packages\scipy\ndimage\tests\test_measurements.py",
 line 701, in test_minimum_position07
    assert_equal(output[0], (0, 1))
  File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
251, in assert_equal
    assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg),
verbose)
  File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
300, in assert_equal
    raise AssertionError(msg)
AssertionError:
Items are not equal:
item=0

 ACTUAL: nan
 DESIRED: 0
</code></pre></div>
<p dir="auto">the result is that it will raise an error when any of the sub-block has a 0 dimension.</p>

  File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/construct.py", line 579, in bmat
    raise ValueError('blocks[:,%d] is all None' % bcol_lengths.argmin())
ValueError: blocks[:,0] is all None