From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 15:50:24 2006 Return-Path: X-Original-To: freebsd-python@freebsd.org 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 71A1016A4DA for ; Wed, 2 Aug 2006 15:50:24 +0000 (UTC) (envelope-from ike@lesmuug.org) Received: from beth.easthouston.org (mail1.berdom.net [216.254.117.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CA8143D76 for ; Wed, 2 Aug 2006 15:50:05 +0000 (GMT) (envelope-from ike@lesmuug.org) Received: from [10.0.1.11] (unknown [69.38.131.26]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by beth.easthouston.org (Postfix) with ESMTP id 1994B114F1C; Wed, 2 Aug 2006 11:50:46 -0400 (EDT) In-Reply-To: <44D0C6AE.9050704@2012.vi> References: <44CFF018.3030706@2012.vi> <44D0C6AE.9050704@2012.vi> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4D080271-1930-4346-A6E9-9BEC67F5CF32@lesmuug.org> Content-Transfer-Encoding: 7bit From: Isaac Levy Date: Wed, 2 Aug 2006 11:50:01 -0400 To: beno X-Mailer: Apple Mail (2.752.2) Cc: freebsd-python@freebsd.org Subject: Re: Reinstalling Python with mod_python Problem X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 15:50:24 -0000 Hi Beno, On Aug 2, 2006, at 11:37 AM, beno wrote: > Isaac Levy wrote: >> Suggestion: >> >> If this is all new to you, and debugging cross-incompatibilities >> is not what you want to be doing, I'd suggest you do: >> >> First, make sure your system is up to date, and for Zope, make >> certain you have up-to-date Zlib and Expat installed (easiest from >> ports). > Afraid to do this. The last guy built a *very* sophisticated > shopping cart that depends on an older version of Zope. Don't want > to break it until I'm sure I can fix it ;) Gotcha- then this is a case where you *want* to isolate python, and even Zlib and Expat, all in a directory with the Zope software. Just use '--prefix=/path/to/new_isolated/ZopeSw' with each of the builds, and you'll be in great shape. If you are proxying Zope with Apache (mod_rewrite or other such common Zope-ish convention), you can build an Apache in there too, just for zope... Keeping it all contained and separate from your mod_python setup. The somewhat nice part about this strategy is that you can rebuild these softwares, including Zope itself, and test it all before you take down the old Zope system! Your Zope instance will only need config file tweaks- and you can test it all on different network ports... >> >> Compile one python and let it all live in /usr/local (default when >> NOT specifying --prefix during the install), track down and see if >> any other Python installs exist on the machine. >> You shouldn't need to toss ANY flags at the Python build for that >> matter, it will work AOK with mod_python and Zope. > Well, I just went to compile python and got this in the make test: > > test test_asynchat produced unexpected output: > ********************************************************************** > *** mismatch between line 3 of expected output and line 3 of actual > output: > - Received: 'hello world' > + error: uncaptured python exception, closing channel > > (socket.error:(61, 'Connection refused') [/usr/local/zope/py243/Lib/ > asynchat.py|handle_read|89] [/usr/local/zope/py243/Lib/asyncore.py| > recv|343]) > ********************************************************************** > What do I do about that? Well, just check to see that your predecessor didn't use asynchat in any of his/her code, and if not, ignore it and move on... Troubleshooting why this isn't working could prove time consuming, insomuch as for some reason the socket isn't working to make the asynchat server run? (i.e. this could be your network config, packet filtering, some barfing lib which asyncore is based on, etc...) If your not using it, and don't plan to, don't worry about it. > TIA, > beno > Rocket, .ike