From owner-freebsd-python@FreeBSD.ORG Fri Feb 6 21:41:20 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D38D16A4CE for ; Fri, 6 Feb 2004 21:41:20 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C4743D46 for ; Fri, 6 Feb 2004 21:41:18 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 6F5C548741 for ; Sat, 7 Feb 2004 00:41:19 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id CF0CFBEF9; Sat, 7 Feb 2004 00:41:08 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Sat, 7 Feb 2004 00:41:07 -0500 User-Agent: KMail/1.6 References: <200402040438.45528.x@Vex.Net> <20040205013733.GA95701@freebsd.csie.nctu.edu.tw> In-Reply-To: <20040205013733.GA95701@freebsd.csie.nctu.edu.tw> X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402070041.07899.x@Vex.Net> Subject: Re: wxMozilla and documancer X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 05:41:20 -0000 On Wednesday 04 February 2004 20:37, Ying-Chieh Liao wrote: > maybe you have to > ldconfig -m /usr/X11R6/lib/firebird/lib/mozilla-1.5 That's the same effect as setting the LD_LIBRARY_PATH variable ... tried it anyhow just to make sure. Still get the "NameError: name 'wxWindowPtr' is not defined" error. > On my 5.2-CURRENT (2004/01/06) everything is ok That's good to hear at least. Hmm, maybe I need to rebuild something. Umm.... Looking around I discovered a post related to this error, where Robin Dunn suggests that it is some sort of swig generated problem where wxPython.wx doesn't get imported. He suggests importing wxPython.wx explicitly before doing a "from WxPython import "... and... it does indeed fix things here: >>> import wxPython.wx >>> from wxPython import mozilla >>> No error... Now my only question is why does my system seem to have this problem requiring that, and yours not. I have no idea, but I added "import wxPython.wx" at the top of the /usr/local/bin/documancer file, and it no longer complains about not being able to load wxMozilla... -- Tim Middleton | Cain Gang Ltd | I care not much for a man's religion whose x@veX.net | www.Vex.Net | dog or cat are not the better for it. [A.L.]