Select to view content in your preferred language

PythonWin Debugger Error

1226
5
05-03-2011 08:05 AM
KateLyndegaard
Deactivated User
Dear all;

I've just installed ArcMap 10 (Info) Student evaluation edition on a brand new laptop running Windows 7. I followed explicit directions to set up PythonWin as an administrator, navigating to the folder on the install disk. The only issue is that the debugger does not work, I recieve the following error:

Traceback (most recent call last):
  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\framework\dbgcommands.py", line 74, in OnGo
    self._DoOrStart("do_set_continue", scriptutils.RS_DEBUGGER_GO)
  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\framework\dbgcommands.py", line 58, in _DoOrStart
    method()
  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 669, in do_set_continue
    if self.GUIAboutToRun():
  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 804, in GUIAboutToRun
    if not self.StopDebuggerPump():
  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 516, in StopDebuggerPump
    assert self.pumping, "Can't stop the debugger pump if Im not pumping!"
AssertionError: Can't stop the debugger pump if Im not pumping!
win32ui.error: Error in Command Message handler for command ID 15022, Code 0

Does anyone have any suggestions?

Thank you.
Tags (2)
0 Kudos
5 Replies
MathewCoyle
Honored Contributor
You get this error when you try to run a script or when you try to just open PythonWin? Does the IDLE work?

Edit: Oh you just get it when trying to run through the debugger using win32traceutil? Did you try on just a simple print "Hello World" program?
0 Kudos
KateLyndegaard
Deactivated User
Hello Matthew;

I'm working on a batch reprojection script, but I've tried debugging other scripts as well and values just don't show up in the watch window when I add variables. I always get that error message whenever I set breakpoints, step into code, etc.

The IDLE seems to work in all other respects, other than sometimes it won't open and I have to restart my laptop. I didn't have this problem with PythonWin in 9.3.

Thanks again,
Kate.
0 Kudos
MathewCoyle
Honored Contributor
What build of PythonWin are you using? 214 works fine for me. I would try removing and reinstalling PythonWin with the latest build if you haven't already. Also, is PythonWin using 2.6.5 to run your code?
0 Kudos
KateLyndegaard
Deactivated User
Unfortunately uninstalling and reinstalling has not worked. I'm running ArcMap 10, Python 2.6.5 on a Windows 7 (64 bit) machine.
0 Kudos
MathewCoyle
Honored Contributor
Just to be clear, you are talking about the PythonWin Trace Collector Debugging Tool, not the Python Debugger right? Have you tried both?

If you are having problems with debugging without even using the geoprocessor module then it sounds more like a general problem with your environment and PythonWin. I don't think I will be able to help much. You should try e-mailing python-help@python.org they are a great resource for technical python related problems.

FYI, I run the exact same setup, Windows 7 64-bit Arc10 SP1, running PythonWin 214 with Python 2.6.5 and haven't seen any issues with the PythonWin debugger. So there should be some solution out there for you.

If something simple like this can't run in the debugger for you then I'm out of ideas, sorry.
import win32traceutil
x = 0
xlist = list()
while x <= 10:
    x += 1
    xlist.append(x)
print xlist
print "done"
0 Kudos