Jed wins the prize,
It looks like this function may not be any good on 64 bit systems (in
utils\system.py)
def windows_memory_usage():
"""Return physical memory usage (float)
Works on Windows platforms only"""
from ctypes import windll
from ctypes.wintypes import byref, Structure, DWORD
class MemoryStatus(Structure):
_fields_ = [('dwLength', DWORD), ('dwMemoryLoad', DWORD),
('dwTotalPhys', DWORD), ('dwAvailPhys', DWORD),
('dwTotalPageFile', DWORD), ('dwAvailPageFile', DWORD),
('dwTotalVirtual', DWORD), ('dwAvailVirtual', DWORD),]
memorystatus = MemoryStatus()
windll.kernel32.GlobalMemoryStatus(byref(memorystatus))
return float(memorystatus.dwMemoryLoad)
On Tue, May 15, 2012 at 9:56 AM, Jed Ludlow <[email protected]> wrote:
> *
>>> 4. Please also tell us your exact Python and PyQt versions (Note that
>>> Spyder doesn't work too well with PySide and it usually segfaults).
>>> *
>>>
>>
>> PyQt version 4.7.4
>> Python 2.7.2 (default, Jun12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
>> on win32
>>
>>> *
>>> Cheers,
>>> Carlos*
>>>
>>
>> Thanks for your time,
>>
>> Matt
>>
>>>
>>>
>>>
>>
> That last little tidbit about 64-bit Python is critical information. I
> have reproduced this bug on a 64-bit Python install, and the problem
> appears to be related to the new Memory Usage widget that was added to the
> status bar. I'm not sure what the issue is yet, but could you try this
> experiment? Open your .spyder.ini file in your home directory and set the
> memory_usage/enable option to False like this:
>
> memory_usage/enable = False
>
> This resolved the problem for me. Please let us know how this goes.
>
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.