<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/862" rel="nofollow">http://projects.scipy.org/scipy/ticket/862</a> on 2009-02-01 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">python2.6 and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.__version__
'0.8.0.dev5530'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.__version__
'0.8.0.dev5530'
</code></pre></div>
<p dir="auto">scipy.test()</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================                                                                                       
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">======================================================================                                                                                       
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/778" rel="nofollow">http://projects.scipy.org/scipy/ticket/778</a> on 2008-11-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p>
<p dir="auto">The following tests in MMIO part of scipy.io and scipy.cluster fail under non-English locale (presumably those in which "," is the decimal separator).</p>
<p dir="auto">My guess is that the underlying reason for the failures probably is a locale dependency in numpy.fromfile. If so, fixing this requires first fixes in Numpy.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5/site-pac
kages/scipy/cluster/tests/test_vq.py&quot;, line 141, in test_kmeans2_init
    data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged
======================================================================
Traceback (most recent call last):
  File &quot;/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5/site-pac
kages/scipy/cluster/tests/test_vq.py&quot;, line 121, in test_kmeans2_rank1
    data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged
======================================================================
... etc, see test.log-fi ..."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5/site-pac
kages/scipy/cluster/tests/test_vq.py", line 141, in test_kmeans2_init
    data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged
======================================================================
Traceback (most recent call last):
  File "/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5/site-pac
kages/scipy/cluster/tests/test_vq.py", line 121, in test_kmeans2_rank1
    data = data.reshape((200, 2))
ValueError: total size of new array must be unchanged
======================================================================
... etc, see test.log-fi ...
</code></pre></div>
<p dir="auto">(The Lapack failures in the test log are a separate issue, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13650112" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/1304" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/1304/hovercard" href="https://github.com/scipy/scipy/issues/1304">gh-1304</a>.)</p>