WIT issue between wxPython 2.8 and 2.9

If I run the wxPython 2.9 demo and open the WIT and then run wxPython 2.8.12.0 demo and open the WIT I get this exception.

C:\Python26\Doc\wxPython2.8 Docs and Demos\demo>\python26\python.exe main.py
Traceback (most recent call last):
   File "main.py", line 2186, in OnOpenWidgetInspector
     InspectionTool().Show(wnd, True)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 94, in Show
     app=self._app)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 182, in __init__
     self.LoadSettings(self.config)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 385, in LoadSettings
     self.mgr.LoadPerspective(perspective)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\aui.py", line 657, i
n LoadPerspective
     return _aui.AuiManager_LoadPerspective(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\a
ui\framemanager.cpp(1442) in wxAuiManager::LoadPaneInfo(): Bad Perspective Strin
g
Traceback (most recent call last):
   File "main.py", line 2186, in OnOpenWidgetInspector
     InspectionTool().Show(wnd, True)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 94, in Show
     app=self._app)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 182, in __init__
     self.LoadSettings(self.config)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\lib\inspection.py",
line 385, in LoadSettings
     self.mgr.LoadPerspective(perspective)
   File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\aui.py", line 657, i
n LoadPerspective
     return _aui.AuiManager_LoadPerspective(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\a
ui\framemanager.cpp(1442) in wxAuiManager::LoadPaneInfo(): Bad Perspective Strin
g

Work around is to delete the HKEY_CURRENT_USER\Software\wxpyinspector\perspective entry in the registry.

Then I can use the WIT in wxPython 2.8 again and going up to 2.9 is no problem.

Werner

If I run the wxPython 2.9 demo and open the WIT and then run wxPython
2.8.12.0 demo and open the WIT I get this exception.

ui\framemanager.cpp(1442) in wxAuiManager::LoadPaneInfo(): Bad
Perspective Strin
g

I thought I was the only one switching between 2.8 and 2.9 enough that this error became annoying. :wink:

Work around is to delete the
HKEY_CURRENT_USER\Software\wxpyinspector\perspective entry in the registry.

Then I can use the WIT in wxPython 2.8 again and going up to 2.9 is no
problem.

You can also just ignore it and close the WIT Frame (by the user closing the window, not because of the parent window being closed) which will force a save of the config object, overwriting the bad perspective string. I've added a try/except to ignore errors on loading the perspective for future releases.

···

On 8/28/11 3:37 AM, werner wrote:

--
Robin Dunn
Software Craftsman

I thought I tried this, will keep that in mind for the next time.

Thanks
Werner

···

On 08/29/2011 08:45 PM, Robin Dunn wrote:

On 8/28/11 3:37 AM, werner wrote:

If I run the wxPython 2.9 demo and open the WIT and then run wxPython
2.8.12.0 demo and open the WIT I get this exception.

ui\framemanager.cpp(1442) in wxAuiManager::LoadPaneInfo(): Bad
Perspective Strin
g

I thought I was the only one switching between 2.8 and 2.9 enough that this error became annoying. :wink:

Work around is to delete the
HKEY_CURRENT_USER\Software\wxpyinspector\perspective entry in the registry.

Then I can use the WIT in wxPython 2.8 again and going up to 2.9 is no
problem.

You can also just ignore it and close the WIT Frame (by the user closing the window, not because of the parent window being closed) which will force a save of the config object, overwriting the bad perspective string. I've added a try/except to ignore errors on loading the perspective for future releases.