From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 00:21:58 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 4A49216A4DE for ; Wed, 2 Aug 2006 00:21:58 +0000 (UTC) (envelope-from zope@2012.vi) Received: from efit.xs4all.nl (efit.xs4all.nl [82.92.236.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9235D43D46 for ; Wed, 2 Aug 2006 00:21:57 +0000 (GMT) (envelope-from zope@2012.vi) Received: from [192.168.0.6] (dpc67143135132.direcpc.com [67.143.135.132]) by efit.xs4all.nl (Weasel v1.73) for ; 02 Aug 2006 02:18:51 Message-ID: <44CFF018.3030706@2012.vi> Date: Tue, 01 Aug 2006 20:21:44 -0400 From: beno User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-python@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 00:21:58 -0000 It's been years since I've done this. I had a programmer working for me who disappeared one day, and now I'm taking over his responsibilities. I need to re-configure Apache for mod_python which means I have to rebuild python. I'm working with the latest distro. I'm heavily dependent on zope, so all this has to work together. Platform is FreeBSD 5.3. I have the following questions: What is meant by pointing to this folder thus: ./configure --prefix=/usr/python When I run make test I get these errors: 2 tests failed: test_mimetools test_urllib2 48 tests skipped: test_aepack test_al test_applesingle test_asynchat test_bsddb test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_doctest test_fork1 test_gdbm test_gl test_imgfile test_imp test_linuxaudiodev test_logging test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_queue test_scriptpackages test_socket test_socket_ssl test_socketserver test_sunaudiodev test_tcl test_thread test_threaded_import test_threadedtempfile test_threading test_threading_local test_threadsignals test_timeout test_unicode_file test_urllib2net test_urllibnet test_winreg test_winsound 13 skips unexpected on freebsd5: test_threadedtempfile test_imp test_threaded_import test_fork1 test_threading test_threadsignals test_socket test_thread test_queue test_asynchat test_doctest test_threading_local test_logging *** Error code 1 What do I do about those failed tests? I've googled this with no luck. Please advise what to do or at least how to start TIA, beno From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 00:34:29 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 298F216A4DD for ; Wed, 2 Aug 2006 00:34:29 +0000 (UTC) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id C522B43D49 for ; Wed, 2 Aug 2006 00:34:28 +0000 (GMT) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (localhost.natserv.net [127.0.0.1]) by zoraida.natserv.net (Postfix) with ESMTP id 9872EB81F; Tue, 1 Aug 2006 20:34:25 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on zoraida.natserv.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=failed version=3.1.3 Received: from 35st-server.simplicato.com (static-71-249-233-130.nycmny.east.verizon.net [71.249.233.130]) by zoraida.natserv.net (Postfix) with ESMTP id 52B37B81D; Tue, 1 Aug 2006 20:34:25 -0400 (EDT) References: <44CFF018.3030706@2012.vi> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Francisco Reyes To: beno Date: Tue, 01 Aug 2006 20:34:25 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP 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 00:34:29 -0000 beno writes: > It's been years since I've done this. I had a programmer working for me > who disappeared one day, and now I'm taking over his responsibilities. I > What is meant by pointing to this folder thus: > ./configure --prefix=/usr/python How come you are not trying to use the ports? From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 05:04:07 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 A14B916A4DA for ; Wed, 2 Aug 2006 05:04:07 +0000 (UTC) (envelope-from karnaugh@karnaugh.za.net) Received: from chthon.slipgate.za.net (chthon.slipgate.za.net [67.18.198.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6222E43D46 for ; Wed, 2 Aug 2006 05:04:07 +0000 (GMT) (envelope-from karnaugh@karnaugh.za.net) Received: from [127.0.0.1] (chthon [127.0.0.1]) by chthon.slipgate.za.net (Postfix) with ESMTP id 2030CFE803; Wed, 2 Aug 2006 05:03:54 +0000 (UTC) Message-ID: <44D031F1.5020607@karnaugh.za.net> Date: Wed, 02 Aug 2006 07:02:41 +0200 From: Colin Alston User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: beno References: <44CFF018.3030706@2012.vi> In-Reply-To: <44CFF018.3030706@2012.vi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Slipgate-MailScanner: Found to be clean X-Slipgate-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.399, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-MailScanner-From: karnaugh@karnaugh.za.net 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 05:04:07 -0000 beno wrote: > It's been years since I've done this. I had a programmer working for me > who disappeared one day, and now I'm taking over his responsibilities. I > need to re-configure Apache for mod_python which means I have to rebuild > python. I'm working with the latest distro. I'm heavily dependent on > zope, so all this has to work together. Platform is FreeBSD 5.3. I have > the following questions: Sadly... no, thats not right. Thankfully! mod_python is highly deprecated and no longer maintained. I would suggest moving over to one of the new platforms such as Twisted, or using a CGI solution. -- Colin Alston http://www.karnaugh.za.net/ "There have been hacker forums where, out of some misguided sense of hyper-courtesy, participants are banned from posting any fault-finding with another's posts, and told ''Don't say anything if you're unwilling to help the user.'' The resulting departure of clueful participants to elsewhere causes them to descend into meaningless babble and become useless as technical forums." - Eric Steven Raymond From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 06:45:14 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 6DC0816A4DA for ; Wed, 2 Aug 2006 06:45:14 +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 01F1A43D4C for ; Wed, 2 Aug 2006 06:45:12 +0000 (GMT) (envelope-from ike@lesmuug.org) Received: from [10.0.2.214] (dsl027-139-113.nyc1.dsl.speakeasy.net [216.27.139.113]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by beth.easthouston.org (Postfix) with ESMTP id 73E12112D53; Wed, 2 Aug 2006 02:45:53 -0400 (EDT) In-Reply-To: <44CFF018.3030706@2012.vi> References: <44CFF018.3030706@2012.vi> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Isaac Levy Date: Wed, 2 Aug 2006 02:45:06 -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 06:45:14 -0000 Hello Beno, On Aug 1, 2006, at 8:21 PM, beno wrote: > It's been years since I've done this. I had a programmer working > for me who disappeared one day, and now I'm taking over his > responsibilities. I need to re-configure Apache for mod_python > which means I have to rebuild python. Yes, go clean. > I'm working with the latest distro. I'm heavily dependent on zope, > so all this has to work together. 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). 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. Then, depending on your vintage of Zope, you should be prepared to compile a python *just for zope*, if things go haywire somehow... This makes it so you can isolate the apps from each other while you sort out your predecessor's apps. > Platform is FreeBSD 5.3. I have the following questions: > > What is meant by pointing to this folder thus: > ./configure --prefix=/usr/python This configure statement means that you are isolating python, (and associated libs, man pages, etc...) from the rest of the system. This kind of thing can lead to tremendous person-specific messes, I'd highly suggest a quick flip through 'man hier' for some more standard ways of doing things. It's just my take after years of this kind of web-app complexity, but as long as you know where stuff is, it really doesn't matter where you install things. > > When I run make test I get these errors: > > 2 tests failed: > test_mimetools test_urllib2 The 2 failed tests: test_mimetools, test_urllib2 are no big deal at all. Python's standard library is vast, but not much of it is intended for 'production' type application, aside from rapid prototyping, etc... What I'm getting at is that the authors of Zope, as well as mod_apache, will be nary to use much of the Python Standard Library, insomuch as the API's for those modules can and do change over time. (Think of them as analagous to /usr/bin vs. /bin). With that, simply grok your predessor's code to see if he/she used either mimetools or urllib2, and if he/she didn't, you'r good to go. If not, google for the modules and dive down that rabbit hole. > 48 tests skipped: > test_aepack test_al test_applesingle test_asynchat test_bsddb > test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk > test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses > test_doctest test_fork1 test_gdbm test_gl test_imgfile test_imp > test_linuxaudiodev test_logging test_macfs test_macostools > test_nis test_normalization test_ossaudiodev test_pep277 > test_plistlib test_queue test_scriptpackages test_socket > test_socket_ssl test_socketserver test_sunaudiodev test_tcl > test_thread test_threaded_import test_threadedtempfile > test_threading test_threading_local test_threadsignals > test_timeout test_unicode_file test_urllib2net test_urllibnet > test_winreg test_winsound A few of these stand out to me, like socket, etc... though most are normal and sane. Are you perhaps working inside a FreeBSD jail? (or otherwise working on a box somehow restricting sockets?) Just curious- don't worry about this. > 13 skips unexpected on freebsd5: > test_threadedtempfile test_imp test_threaded_import test_fork1 > test_threading test_threadsignals test_socket test_thread > test_queue test_asynchat test_doctest test_threading_local > test_logging These skipped tests, are just common sense stuff- depending on how you have your kernel compiled on your host, and how tweaked out you are with your Python. (basically, if you need this stuff, you'd definately know which ones and why, so don't worry and move on). > *** Error code 1 > > What do I do about those failed tests? I've googled this with no > luck. Please advise what to do or at least how to start Hope my comments above help, feel free to continue on list if I didn't. Best, .ike From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 07:10:47 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 8428A16A4DD for ; Wed, 2 Aug 2006 07:10:47 +0000 (UTC) (envelope-from laprice@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB1C43D49 for ; Wed, 2 Aug 2006 07:10:46 +0000 (GMT) (envelope-from laprice@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so552064nfc for ; Wed, 02 Aug 2006 00:10:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lqa/5fUpZRLj2cB6BAE6S3DWeJaUJ8hjFH2yZUhzzjtrN/YdjwJTci/5/Mi37Mf35EOe7nTEscyBiHCRssr6kbaGQSBfi1DhMkwc7M3tsY3yVLU0im+uEtfzaD8BoxJHXKBu36KZiDTy0GdJp55yGw+iu47yYO0dGYM7KWANEGw= Received: by 10.78.133.10 with SMTP id g10mr185900hud; Wed, 02 Aug 2006 00:10:44 -0700 (PDT) Received: by 10.78.158.7 with HTTP; Wed, 2 Aug 2006 00:10:44 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2006 00:10:44 -0700 From: "larry price" To: beno In-Reply-To: <44CFF018.3030706@2012.vi> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44CFF018.3030706@2012.vi> 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 07:10:47 -0000 On 8/1/06, beno wrote: > It's been years since I've done this. I had a programmer working for me > who disappeared one day, and now I'm taking over his responsibilities. I > need to re-configure Apache for mod_python which means I have to rebuild > python. I'm working with the latest distro. I'm heavily dependent on > zope, so all this has to work together. Platform is FreeBSD 5.3. I have > the following questions: > > What is meant by pointing to this folder thus: > ./configure --prefix=/usr/python > > When I run make test I get these errors: > > 2 tests failed: > test_mimetools test_urllib2 > 48 tests skipped: > test_aepack test_al test_applesingle test_asynchat test_bsddb > test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk > test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses > test_doctest test_fork1 test_gdbm test_gl test_imgfile test_imp > test_linuxaudiodev test_logging test_macfs test_macostools > test_nis test_normalization test_ossaudiodev test_pep277 > test_plistlib test_queue test_scriptpackages test_socket > test_socket_ssl test_socketserver test_sunaudiodev test_tcl > test_thread test_threaded_import test_threadedtempfile > test_threading test_threading_local test_threadsignals > test_timeout test_unicode_file test_urllib2net test_urllibnet > test_winreg test_winsound > 13 skips unexpected on freebsd5: > test_threadedtempfile test_imp test_threaded_import test_fork1 > test_threading test_threadsignals test_socket test_thread > test_queue test_asynchat test_doctest test_threading_local > test_logging > *** Error code 1 > > What do I do about those failed tests? I've googled this with no luck. > Please advise what to do or at least how to start > TIA, > beno starting from a clean install updated to RELENG_5_3 install ports update ports using cvsup build python24 from ports build apache2 from ports build mod_python3 from ports if you are trying to replicate a particular build version please say so. mimetools and urllib2 are both fairly recent additions to python standard library but you don't say which version you were attempting to build. The recipe I listed above should get you to a recent stable build, but will probably require some level of porting of the original python code. mod_python + Django = fast and functional web applications From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 15:37:36 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 C127316A4DA for ; Wed, 2 Aug 2006 15:37:36 +0000 (UTC) (envelope-from zope@2012.vi) Received: from efit.xs4all.nl (efit.xs4all.nl [82.92.236.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB53943D55 for ; Wed, 2 Aug 2006 15:37:35 +0000 (GMT) (envelope-from zope@2012.vi) Received: from [192.168.0.6] (dpc67143135132.direcpc.com [67.143.135.132]) by efit.xs4all.nl (Weasel v1.73); 02 Aug 2006 17:34:27 Message-ID: <44D0C6AE.9050704@2012.vi> Date: Wed, 02 Aug 2006 11:37:18 -0400 From: beno User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Isaac Levy , freebsd-python@freebsd.org References: <44CFF018.3030706@2012.vi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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:37:36 -0000 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 ;) > > 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? TIA, beno 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 From owner-freebsd-python@FreeBSD.ORG Wed Aug 2 18:45:36 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 2F44216A4DF for ; Wed, 2 Aug 2006 18:45:36 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7431343D49 for ; Wed, 2 Aug 2006 18:45:35 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (vkbczg@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k72IjRNo005383 for ; Wed, 2 Aug 2006 20:45:33 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k72IjRks005382; Wed, 2 Aug 2006 20:45:27 +0200 (CEST) (envelope-from olli) Date: Wed, 2 Aug 2006 20:45:27 +0200 (CEST) Message-Id: <200608021845.k72IjRks005382@lurza.secnetix.de> From: Oliver Fromme To: freebsd-python@FreeBSD.ORG In-Reply-To: <44D031F1.5020607@karnaugh.za.net> X-Newsgroups: list.freebsd-python User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 02 Aug 2006 20:45:33 +0200 (CEST) Cc: Subject: Re: Reinstalling Python with mod_python Problem X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-python@FreeBSD.ORG List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 18:45:36 -0000 Colin Alston wrote: > beno wrote: > > It's been years since I've done this. I had a programmer working for me > > who disappeared one day, and now I'm taking over his responsibilities. I > > need to re-configure Apache for mod_python which means I have to rebuild > > python. I'm working with the latest distro. I'm heavily dependent on > > zope, so all this has to work together. Platform is FreeBSD 5.3. I have > > the following questions: > > Sadly... no, thats not right. Thankfully! mod_python is highly > deprecated and no longer maintained. That's not true, fortunately. mod_python3 is certainly not deprecated, and it's actively maintained. The latest version of mod_python is 3.2.8. > one of the new platforms such as Twisted, or using a CGI solution. Twisted is a complex monster, and CGI solutions are slow, that's the exactly the reason why mod_python exists. Django is pretty cool to easily develop web applications (see www.djangoproject.com, it's under a BSD license). Its authors explicitly recommend to run it with apache2 + mod_python3, by the way. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich From owner-freebsd-python@FreeBSD.ORG Thu Aug 3 14:21:28 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 48DB816A4DD for ; Thu, 3 Aug 2006 14:21:28 +0000 (UTC) (envelope-from zope@2012.vi) Received: from efit.xs4all.nl (efit.xs4all.nl [82.92.236.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2190E43D7C for ; Thu, 3 Aug 2006 14:21:24 +0000 (GMT) (envelope-from zope@2012.vi) Received: from [192.168.0.6] (dpc67143135132.direcpc.com [67.143.135.132]) by efit.xs4all.nl (Weasel v1.73) for ; 03 Aug 2006 16:18:10 Message-ID: <44D2064E.5030705@2012.vi> Date: Thu, 03 Aug 2006 10:21:02 -0400 From: beno User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-python@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Help! Server Down! 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: Thu, 03 Aug 2006 14:21:28 -0000 I should be sending this to the Apache list, but I can't get subscribed! No response from ezmlm... I have FreeBSD 5.3 and just installed Apache 2.2.3. I just took over sysadmining this box. We work with Zope and VirtualHostMonster, so there's lots of RewriteRules and a proxy is necessary. The problem is configuring the proxy. The old Apache (1.3.3) had the following: LoadModule proxy_module libexec/libproxy.so ClearModuleList AddModule proxy_module libexec/libproxy.so but apparently the new version of Apache doesn't use that code any more. I ran my configure command with --enable-proxy=shared among others and it didn't complain. Nonetheless, I get errors like this: server167# /usr/local/apache2/bin/apachectl -k start httpd: Syntax error on line 56 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libproxy.so into server: /usr/local/apache2/modules/libproxy.so: Undefined symbol "ap_dummy_mutex" when I copy libproxy.so over to the new distro and put in the LoadModule command, server167# /usr/local/apache2/bin/apachectl -k start Syntax error on line 576 of /usr/local/apache2/conf/vhosts.conf: // This is where my stuff lives Invalid command 'CacheRoot', perhaps misspelled or defined by a module not included in the server configuration server167# /usr/local/apache2/bin/apachectl -k start httpd: Syntax error on line 56 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libproxy.so into server: /usr/local/apache2/modules/libproxy.so: Undefined symbol "ap_dummy_mutex" For some reason, I can't get the old Apache up, either, so I'm trying to resolve the problem with the new one. Please help. Thanks. beno