On 09/23/2014 04:04 AM, Patrick Leinenkugel wrote:
Hi,

I am using Spyder within python (x,y) (Version 2.7.6.1) on Windows.
Doing the following causes a MemoryError in my Spyder Python IDE:

|>>>  from  numpyimport  *
 a_flt=  ones((7000,7000),  dtype=float64)+4
 b_flt=  ones((7000,7000),  dtype=float64)+1
Traceback  (most recent call last):
   File  "<stdin>",  line1,  in  <module>
MemoryError


|

This is weird, since the memory usage in the statusbar of Spyder shows
that only approx. 25% of my memory is used. Furthermore, when generating
even a higher number of these 7000*7000 arrays in the standard Python
IDE GUI, everything works fine.

|>>>  from  numpyimport  *
 a_flt=  ones((7000,7000),  dtype=float64)+4
 b_flt=  ones((7000,7000),  dtype=float64)+1
 c_flt=  ones((7000,7000),  dtype=float64)+1
 d_flt=  ones((7000,7000),  dtype=float64)+1
 e_flt=  ones((7000,7000),  dtype=float64)+1

|

Even with 5 floating point arrays created, memory requirements only
amount to about a third of my total memory of 16GB. So this cannot be a
real memory problem. Thenupdated to Spyder 2.3.1 using Python 2.7.6
32bits, Qt 4.8.4, PyQt4 (APIv2) 4.9.6 on Windows and the same Memory
Error results alreay when trying to create the first array with
7000*7000 float elements (a_flt)! Furthermore, the same error is
reproducable in the Spyder IDE on the computer of my colleague, so it is
not an error related to my specific computer settings.

I also found a similiar question on this issue in this spyder google
group
https://groups.google.com/forum/#!msg/spyderlib/qE9tiriT91s/0x3s2Aw-efMJ
<https://groups.google.com/forum/#%21msg/spyderlib/qE9tiriT91s/0x3s2Aw-efMJ>,
however no answer was provided. It would really be nice if someone could
help me with this paradoxical situation. Thanks in advance,

Some more information is probably in order.

So:

1) Where are you running the above code, the Python or IPython console?

2) If you are using IPython, what version?
2a) What happens if you run in a stand alone IPython console?

3) What is the 'standard' Python IDE GUI you refer to?

Patrick

--

--
Adrian Klaver
[email protected]

--
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to