[Tutor] Problem with Winpdb.
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 PY541 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 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Problem with Winpdb.
Message: 5 Date: Thu, 13 Oct 2005 05:51:04 -0400 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] Problem with Winpdb. Cc: tutor@python.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Steve Robb wrote: > Can anyone point me to what the problem may be with running Winpdb? > > I am running Win98, unfortunately > > 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\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' winpdb seems to be looking for an environment variable (APPDATA) that is not supported on Win 98. As a workaround you could replace line 606 in C:\Python24\Lib\site-packages\winpdb.py which says if os.name == 'nt': with if os.name == 'nt' and os.environ.has_key('APPDATA'): This will make winpdb create its settings file in the current directory with the name winpdb_settings.cfg. Reporting this as a bug on SourceForge is also a good idea. Kent Thanks Kent, Worked like a chanp! Thanks so much for the help. I will report the "bug" to SourceForge once they send me an account login. Steve ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Tutor Digest, Vol 21, Issue 60
I have spent quite a bit of time looking at TurboGears. I have not used it in any production sense. Recently, there has developed a new TurboGears app which you may not have run across yet, but is very interesting in itself. It's called Catwalk. http://www.checkandshare.com/catwalk/download.html I have hacked it to give it access to other databases I have stored in MySQL and have started a generic version of it to display the MySQL database itself. Seems very cool. Steve > Message: 9 > Date: Mon, 14 Nov 2005 18:12:42 - > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: [Tutor] Any TurboGears users out there? > To: "Python Tutor list" > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > > I just stumbled across TurboGears: > > http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html > > Its based on CheryPy which consistently gets good reviews but adds SQL > access and XML templates. Sounds interesting, possibly even a Zope rival > for the medium sized as opposed to massive site.. > > Is anyone on the list using it? Or even looked at it? > > Alan G > Author of the learn to program web tutor > http://www.freenetpages.co.uk/hp/alan.gauld > > -- > > Message: 11 > Date: Mon, 14 Nov 2005 13:37:36 -0500 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Any TurboGears users out there? > Cc: Python Tutor list > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Alan Gauld wrote: > > I just stumbled across TurboGears: > > > > http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html > > > > Its based on CheryPy which consistently gets good reviews but adds SQL > > access and XML templates. Sounds interesting, possibly even a Zope rival > > for the medium sized as opposed to massive site.. > > > > Is anyone on the list using it? Or even looked at it? > > I have looked at it to the extent of getting through the tutorial and a > little more playing. It looks very promising to me. CherryPy, SQLObject and > mochikit all have good reputations and TG seems to do a good job of gluing > them together. Kid (the template engine) is not as mature as the others but > it seems to work OK. > > I used CherryPy 1 for a small work project. It was very easy to build the web > site. I found the built-in webserver lacking in some of the basics like a > usable request log but I think this has been fixed in CP 2. > > Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor