ERROR
An error occurs in PythonWin when running a script while debugging.>>> LoadBarState failed - LoadBarState failed (with win32 exception!)
>>> Traceback (most recent call last):
File "c:\python21\pythonwin\pywin\mfc\docview.py", line 91, in CreateNewFrame
wnd.LoadFrame(self.GetResourceID(), -1, None, context) # triggers OnCreateClient...
win32ui: LoadFrame failedwin32ui: CreateNewFrame() virtual handler (<method DocTemplate.CreateNewFrame of SyntEditTemplate instance at 00EF697C>) raised an exception
TypeError: PyCTemplate::CreateNewFrame must return a PyCFrameWnd object.
__init__.py(5): import win32api, sys
This is a bug with the Python and PythonWin application.
Warning:
WARNING: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary.
ESRI cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.
This problem is a result of PythonWin adding Toolbar Entries to the registry until it no longer functions. This can be fixed by removing all the "ToolbarDebugging-Bar#" entries from the registry under HKEY_CURRENT_USER\Software\Python 2.x\Python for Win32.
Article ID:000008131
Get help from ArcGIS experts
Download the Esri Support App