Received: with LISTAR (v1.0.0; list gopher); Thu, 04 Jan 2001 11:30:33 -0600 (CST) Return-Path: Delivered-To: gopher@complete.org Received: from gtei1.bellatlantic.net (gtei1.bellatlantic.net [199.45.40.145]) by pi.glockenspiel.complete.org (Postfix) with ESMTP id D440F3B8FD for ; Thu, 4 Jan 2001 11:30:32 -0600 (CST) Received: from mothra (adsl-141-152-12-101.bellatlantic.net [141.152.12.101]) by gtei1.bellatlantic.net (8.9.1/8.9.1) with ESMTP id MAA05445 for ; Thu, 4 Jan 2001 12:27:57 -0500 (EST) Received: from x by mothra with local (Exim 3.20 #1 (Debian)) id 14EEAP-0001Ja-00 for ; Thu, 04 Jan 2001 12:27:09 -0500 Date: Thu, 4 Jan 2001 12:27:09 -0500 From: David Allen To: gopher@complete.org Subject: [gopher] Re: New client announcement (#2) Message-ID: <20010104122709.A4987@mothra> References: <20010104000948.A17912@mothra> <20010104092015.C11361@success-info.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <20010104092015.C11361@success-info.com>; from emanuel@heatdeath.org on Thu, Jan 04, 2001 at 09:20:15AM -0800 Content-Transfer-Encoding: 8bit X-archive-position: 25 X-listar-version: Listar v1.0.0 Sender: gopher-bounce@complete.org Errors-to: gopher-bounce@complete.org X-original-sender: s2mdalle@titan.vcu.edu Precedence: bulk Reply-to: gopher@complete.org X-list: gopher On Thu, Jan 04, 2001 at 09:20:15AM -0800, emanuel at heatdeath organisation wrote: > To get back on topic, I tried out the Python/Tkinter client and it > worked fine with Python 2.0 on Slackware. Excellent. > I tried it with Python 2.0 in Windows 2000. The main window opened, but > it stalled with status "Updating display...". The UI was still > functional, though. The following was dumped to the console window: D'oh! > E:\Documents and Settings\emanuel\Desktop\forg-0.03>Forg.py gopher.heatdeath.org > > Starting the FORG > Prefs are D:\emanuel\.forg > Previously had 8 keys > ****Successfully loaded options from disk. > ****Couldn't load bookmarks at D:\emanuel\.forg\bookmarks: [Errno 2] No such fil > e or directory: 'D:\\emanuel\\.forg\\bookmarks' > Read 1024: 1024 > Read 1024: 2048 > Read 1024: 3072 > Setting type to Directory: > Unhandled exception in thread: > Traceback (most recent call last): > File "E:\Documents and Settings\emanuel\Desktop\forg-0.03\TkGui.py", line 410, > in download_function > contentKey = self.createContentFrame(request) > File "E:\Documents and Settings\emanuel\Desktop\forg-0.03\TkGui.py", line 496, > in createContentFrame > wid = self.responseToWidget(resp, resource) > File "E:\Documents and Settings\emanuel\Desktop\forg-0.03\TkGui.py", line 593, > in responseToWidget > except CacheException, exceptionstr: > NameError: There is no variable named 'CacheException' > > Which is wierd, because as far as I can tell from the code, this should > not happen. Just to see if I could make it get further, I put > CacheException = 'Error' at the top of TkGui.py, but then when I ran it, > two Tk windows opened with no contents and it hung. Now I have to get > back to work... This is a simple screw up it looks like...if you're familiar with python, then I'll just tell you that it's a namespace screw up. I did "import Cache" at the top of that module, and I should have written that as "except Cache.CacheException, exceptionstr:" - CacheException doesn't exist in that module. This is a little bit odd though, since it shouldn't be a windows only thing. Every time you try to load a file, it checks the cache. If it's in the cache, it returns the necessary information, and if it's not in the cache, then it raises a CacheException, which in this case wasn't caught due to a simple namespacing issue. If you want to, you can grab a fixed version at http://opop.nols.com/forg-0.03.1.tar.gz Thanks for pointing this out - let me know about anything you find. -- David Allen http://opop.nols.com/ ---------------------------------------- > The term you are probably looking for (or maybe not, what the heck do > I care?) is Freudan Slip. That's when you say one thing and mean your mother.