<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/827" rel="nofollow">http://projects.scipy.org/scipy/ticket/827</a> on 2008-12-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p>
<p dir="auto">scipy.test() and python2.6</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.__version__
'0.7.0.dev5294'
&gt;&gt;&gt; numpy.__version__
'1.3.0.dev6221'





======================================================================                                                         
ERROR: Testing that kmeans2 init methods work.                                                                                 
----------------------------------------------------------------------                                                         
Traceback (most recent call last):                                                                                             
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 147, in test_kmeans2_init      
    data = data.reshape((200, 2))                                                                                              
ValueError: total size of new array must be unchanged                                                                          

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 127, in test_kmeans2_rank1
    data = data.reshape((200, 2))                                                                                         
ValueError: total size of new array must be unchanged                                                                     

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 139, in test_kmeans2_rank1_2
    data = data.reshape((200, 2))                                                                                           
ValueError: total size of new array must be unchanged                                                                       

======================================================================
ERROR: This will cause kmean to have a cluster with no points.        
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 96, in test_kmeans_lost_cluster
    data = data.reshape((200, 2))                                                                                              
ValueError: total size of new array must be unchanged                  "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.__version__
'0.7.0.dev5294'
&gt;&gt;&gt; numpy.__version__
'1.3.0.dev6221'





======================================================================                                                         
ERROR: Testing that kmeans2 init methods work.                                                                                 
----------------------------------------------------------------------                                                         
Traceback (most recent call last):                                                                                             
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 147, in test_kmeans2_init      
    data = data.reshape((200, 2))                                                                                              
ValueError: total size of new array must be unchanged                                                                          

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 127, in test_kmeans2_rank1
    data = data.reshape((200, 2))                                                                                         
ValueError: total size of new array must be unchanged                                                                     

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 139, in test_kmeans2_rank1_2
    data = data.reshape((200, 2))                                                                                           
ValueError: total size of new array must be unchanged                                                                       

======================================================================
ERROR: This will cause kmean to have a cluster with no points.        
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 96, in test_kmeans_lost_cluster
    data = data.reshape((200, 2))                                                                                              
ValueError: total size of new array must be unchanged                  
</code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/828" rel="nofollow">http://projects.scipy.org/scipy/ticket/828</a> on 2008-12-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.__version__
'0.7.0.dev5294'
&gt;&gt;&gt; numpy.__version__
'1.3.0.dev6221'





======================================================================
ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate)         
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py&quot;, line 290, in test_complex_write_read
    b = mmread(fn).todense()                                                                                                
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 52, in mmread                             
    return MMFile().read(source)                                                                                            
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 273, in read                              
    return self._parse_body(stream)                                                                                         
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 407, in _parse_body                       
    flat_data = flat_data.reshape(-1,4)                                                                                     
ValueError: total size of new array must be unchanged                                                                       

======================================================================
ERROR: read a hermitian matrix                                        
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py&quot;, line 213, in test_read_hermitian
    b = mmread(fn).todense()                                                                                            
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 52, in mmread                         
    return MMFile().read(source)                                                                                        
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 273, in read                          
    return self._parse_body(stream)                                                                                     
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 407, in _parse_body                   
    flat_data = flat_data.reshape(-1,4)                                                                                 
ValueError: total size of new array must be unchanged         "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.__version__
'0.7.0.dev5294'
&gt;&gt;&gt; numpy.__version__
'1.3.0.dev6221'





======================================================================
ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate)         
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 290, in test_complex_write_read
    b = mmread(fn).todense()                                                                                                
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread                             
    return MMFile().read(source)                                                                                            
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read                              
    return self._parse_body(stream)                                                                                         
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body                       
    flat_data = flat_data.reshape(-1,4)                                                                                     
ValueError: total size of new array must be unchanged                                                                       

======================================================================
ERROR: read a hermitian matrix                                        
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 213, in test_read_hermitian
    b = mmread(fn).todense()                                                                                            
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread                         
    return MMFile().read(source)                                                                                        
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read                          
    return self._parse_body(stream)                                                                                     
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body                   
    flat_data = flat_data.reshape(-1,4)                                                                                 
ValueError: total size of new array must be unchanged         
</code></pre></div>