[Tutor] Problem with Winpdb.
Steve Robb
stever at insightbb.com
Wed Oct 12 18:41:16 CEST 2005
Can anyone point me to what the problem may be with running Winpdb?
I am running Win98, unfortunately, Mozilla/5.0 (Windows; U; Win98;
en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7.
I have python 2.4, Python 2.4 (#60, Nov 30 2004, 09:34:21) [MSC v.1310
32 bit (Intel)] on win32.
I have Winpdb, WINPDB_VERSION = "WINPDB_1_0_4".
I have Crypto, print Crypto.__version__
2.0.1.
I have wxPython, print wxPython.__version__
2.6.1.0.
I have thread, Directory of
C:\Python24\Lib\site-packages\pythonwin\pywin\mfc
THREAD PY 541 09-14-05 11:53a thread.py
THREAD PYC 1,140 09-14-05 11:53a thread.pyc
THREAD PYO 1,140 09-14-05 11:53a thread.pyo
I seem to be able to execute _rpdb2.py in a MS-DOS command window by
using the following,
..\python _rpdb2.py, while in the \python24\scripts directory.
However, when I try,
..\python _winpdb.py, from the same directory, I get the following
traceback.
Traceback (most recent call last):
File
"C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
line 310, in RunScript
exec codeObject in __main__.__dict__
File "C:\Python24\Scripts\_winpdb.py", line 31, in ?
winpdb.main()
File "C:\Python24\Lib\site-packages\winpdb.py", line 3269, in main
return rpdb2.main(StartClient)
File "C:\Python24\Lib\site-packages\rpdb2.py", line 6844, in main
StartClient_func('', fAttach, fchdir, pwd, fAllowUnencrypted,
fRemote, host)
File "C:\Python24\Lib\site-packages\winpdb.py", line 3259, in StartClient
app = CWinpdbApp(sm, fchdir, command_line, fAttach, fAllowUnencrypted)
File "C:\Python24\Lib\site-packages\winpdb.py", line 1526, in __init__
wx.App.__init__(self, redirect = False)
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
7473, in __init__
self._BootstrapApp()
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
7125, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "C:\Python24\Lib\site-packages\winpdb.py", line 1531, in OnInit
self.m_settings.load_settings()
File "C:\Python24\Lib\site-packages\winpdb.py", line 632, in load_settings
path = self.calc_path()
File "C:\Python24\Lib\site-packages\winpdb.py", line 607, in calc_path
app_data = os.environ['APPDATA']
File "C:\PYTHON24\lib\os.py", line 422, in __getitem__
return self.data[key.upper()]
KeyError: 'APPDATA'
Thanks in advance for any help,
Steve
More information about the Tutor
mailing list