<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>24088</bug_id>
          
          <creation_ts>2010-09-15 23:26:46 +0400</creation_ts>
          <short_desc>numpy.linalg.svd fails</short_desc>
          <delta_ts>2010-09-20 08:44:34 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-numpy</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Valery Pipin">pip</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>cow</cc>
    
    <cc>darktemplar</cc>
    
    <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>imz</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>lav</cc>
    
    <cc>nbr</cc>
    
    <cc>qa_viy</cc>
    
    <cc>real.altlinux.org</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112188</commentid>
    <comment_count>0</comment_count>
    <who name="Valery Pipin">pip</who>
    <bug_when>2010-09-15 23:26:46 +0400</bug_when>
    <thetext>Делаем следующий тест.

from numpy.random import *
from numpy.linalg import *
m=randn(1000,1000)

%time U,s,V=svd(m)
## it should work

m=randn(2000,2000)
%time U,s,V=svd(m)

Получаем:

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: (&apos;EOF in multi-line statement&apos;, (236, 0))

---------------------------------------------------------------------------
MemoryError                               Traceback (most recent call last)

/home/va/&lt;ipython console&gt; in &lt;module&gt;()

/usr/lib/python2.6/site-packages/IPython/iplib.pyc in ipmagic(self, arg_s)
   1180         else:
   1181             magic_args = self.var_expand(magic_args,1)
-&gt; 1182             return fn(magic_args)
   1183 
   1184     def ipalias(self,arg_s):

/usr/lib/python2.6/site-packages/IPython/Magic.pyc in magic_time(self, parameter_s)                                                                             
   1969         else:
   1970             st = clk()
-&gt; 1971             exec code in glob
   1972             end = clk()
   1973             out = None

/home/va/&lt;timed exec&gt; in &lt;module&gt;()

/usr/lib/python2.6/site-packages/numpy/linalg/linalg.pyc in svd(a, full_matrices, compute_uv)                                                                   
   1314                                  work, -1, iwork, 0)
   1315         lwork = int(work[0])
-&gt; 1316         work = zeros((lwork,), t)
   1317         results = lapack_routine(option, m, n, a, m, s, u, m, vt, nvt,
   1318                                  work, lwork, iwork, 0)

MemoryError: 

Модуль linalg из scipy с этой задачей справился.
Все это на 32бит сизифе из-под виртуалбокс (ему доступно 512Mb RAM) . 
python-module-numpy-2.0.0-alt1.svn20100607.1
python-module-scipy-0.9.0-alt1.svn20100607</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112189</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-09-15 23:31:23 +0400</bug_when>
    <thetext>У меня работает на последнем 32бит сизифе.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112190</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-09-15 23:31:55 +0400</bug_when>
    <thetext>А, MemoryError.
Памяти 4 Гб.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112191</commentid>
    <comment_count>3</comment_count>
    <who name="Valery Pipin">pip</who>
    <bug_when>2010-09-15 23:38:06 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; А, MemoryError.
&gt; Памяти 4 Гб.

Да если памяти добавить исчезает. Но ведь модуль из scipy справился и на 512-ти</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112192</commentid>
    <comment_count>4</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-09-16 06:18:14 +0400</bug_when>
    <thetext>Мне негде проверить на такой конфигурации. Лично у меня всё работает. Так что лучше подождать подтверждения от других пользователей, прежде чем обращаться в апстрим. Или всё же прямо так им настучать? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112193</commentid>
    <comment_count>5</comment_count>
    <who name="Valery Pipin">pip</who>
    <bug_when>2010-09-16 06:27:17 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; Мне негде проверить на такой конфигурации. Лично у меня всё работает. Так что
&gt; лучше подождать подтверждения от других пользователей, прежде чем обращаться в
&gt; апстрим. Или всё же прямо так им настучать? :)
Не надо. Можно вообще закрыть пока.
Но я вами восхищаюсь. Как на апстриме можно работать?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112194</commentid>
    <comment_count>6</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-09-16 06:35:57 +0400</bug_when>
    <thetext>&quot;Можно вообще закрыть пока.&quot;

Я всё-таки подожду, вдруг кто-нибудь подтвердит такое падение в схожих условиях...

&quot;Как на апстриме можно работать?&quot;

Не понял...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112195</commentid>
    <comment_count>7</comment_count>
    <who name="Valery Pipin">pip</who>
    <bug_when>2010-09-16 06:52:57 +0400</bug_when>
    <thetext>(In reply to comment #6)
&gt; &quot;Можно вообще закрыть пока.&quot;
&gt; 
&gt; Я всё-таки подожду, вдруг кто-нибудь подтвердит такое падение в схожих
&gt; условиях...
&gt; 
&gt; &quot;Как на апстриме можно работать?&quot;
&gt; 
&gt; Не понял...
Ну так 
Scipy и numpy очень активно развиваются вероятность частных поломок очень велика. Сизиф пожалуй единственный репозитарий где можно найти практически апстримную версию этих программ.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112196</commentid>
    <comment_count>8</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-09-16 07:05:58 +0400</bug_when>
    <thetext>На то он и сизиф ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112323</commentid>
    <comment_count>9</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-09-20 08:44:34 +0400</bug_when>
    <thetext>Так, ну раз пока никто ничего не подтвердил, закрою, если что, переоткрывайте.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>