--
You received this message because you are subscribed to the Google Groups "spyder" group.To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
Sorry, I guess I could be on the default branch of 2.1...but noI am on the default repositoryOn Mon, May 14, 2012 at 10:51 AM, Matt Anderson <ma...@archangel.com> wrote:
hg branch = defaultOn Mon, May 14, 2012 at 10:39 AM, Jed Ludlow <jed.l...@gmail.com> wrote:
On Mon, May 14, 2012 at 9:29 AM, matt <wmatta...@gmail.com> wrote:Hey guys,I just pulled the latest code from the repository and am having strange consequences. I have tried with pyside and qt, but in both cases, the gui loads and then python stalls and has to be ended by Windows 7. No error codes or anything, unless it gets hidden in a log somwhereI am on a Windows 7 64 bit machine with python 2.7. I have been enjoying spyder for quite a while on several machines. Any idea what causes this or where I can look to find a clue?
Which repository are you running from? The default repository or the v21 repository?
--
The main gui fully loads, in debug mode it gets to ***end of main window setup*** and then gives a couple of warnings about already having imported pyflakes/rope and adding site-packages to the sys.path.It actually crashes somewhere in the app.exec_() call of spyder.py(1868). Around the time it lodes the object inspector(sometimes I see the object inspector details before it crashes, sometimes not).
--
Hi Matt,
Thanks for reporting the problem. I don't fully understand what's happening. Here are my questions to you:
1. Does Spyder freezes and you have to manually kill it? Or does it just crash before you can do something on it? If the case is the last one, do you receive a segfault warning on the console or you can see a Python traceback?
2. Does your windows account have non-ascii characters?
3. Could you reset your spyder settings and start afresh to see if that solves the problem? You can do it with:
python bootstrap.py -- --defaults
and if that doesn't work with
python bootstrap.py -- --reset
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).
Cheers,
Carlos
1. No
2. No, it is c:/users/matta.COMPANY
The first bad revision is:changeset: 2041:3bed38623049parent: 2040:1cd7dc4233ceparent: 2031:c27ddf06569euser: Carlos Cordoba <ccord...@gmail.com>date: Tue May 01 22:25:05 2012 -0500summary: Merge: Make Spyder start and work on non-ascii user accounts on WindowsNot all ancestors of this changeset have been checked.Use bisect --extend to continue the bisection fromthe common ancestor, aaddf3e325fa.If I extend it, I getThe first bad revision is:changeset: 2014:b5670c37c544parent: 2012:aaddf3e325fauser: Pierre Raybaut <pierre....@gmail.com>date: Sun Apr 15 15:15:00 2012 +0200summary: Added memory and CPU usage status bar widgets (see Preferences/General)But somewhere in there between the two, and including 2014 the gui never loads at all(however, 2030 works). 2041 looks like a pretty big merge so I'm not sure how much that helps.
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/Yt1MYo0OcoYJ.
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.4Python 2.7.2 (default, Jun12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
Cheers,
CarlosThanks for your time,Matt
--
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 windllfrom ctypes.wintypes import byref, Structure, DWORDclass 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)
--
I think this is what you want...after come cleanup. Test it on a 32 bit http://msdn.microsoft.com/en-us/library/windows/desktop/aa366770(v=vs.85).aspxI can put it in my clone if that's better
def windows_memory_usage():"""Return physical memory usage (float)Works on Windows platforms only"""from ctypes import windllfrom ctypes.wintypes import byref, Structure, DWORD, sizeofimport ctypesclass MemoryStatus(Structure):_fields_ = [('dwLength', ctypes.c_uint32), ('dwMemoryLoad', ctypes.c_uint32),('dwlTotalPhys', ctypes.c_uint64), ('dwlAvailPhys', ctypes.c_uint64),('dwlTotalPageFile', ctypes.c_uint64), ('dwlAvailPageFile', ctypes.c_uint64),('dwlTotalVirtual', ctypes.c_uint64), ('dwlAvailVirtual', ctypes.c_uint64),('dwlAvailExtendedVirtual', ctypes.c_uint64),]memorystatus = MemoryStatus()memorystatus.dwLength = sizeof(MemoryStatus)windll.kernel32.GlobalMemoryStatusEx(byref(memorystatus))return float(memorystatus.dwMemoryLoad)