From owner-freebsd-questions@FreeBSD.ORG Mon Jun 19 12:23:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 057BF16A47D for ; Mon, 19 Jun 2006 12:23:15 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [216.9.132.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8A0043D55 for ; Mon, 19 Jun 2006 12:23:12 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id CA2467E8C5; Mon, 19 Jun 2006 08:23:11 -0400 (EDT) X-Virus-Scanned: by amavisd-new at netmusician.org Received: from netmusician.org ([127.0.0.1]) by localhost (jauty.suso.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cES9ZH1bWzaS; Mon, 19 Jun 2006 08:23:11 -0400 (EDT) Received: from [192.168.0.3] (unknown [74.128.244.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id D23C07E8C4; Mon, 19 Jun 2006 08:23:10 -0400 (EDT) In-Reply-To: <44966182.3020202@dial.pipex.com> References: <9842C36E-C450-4282-9019-BA2DD3476684@netmusician.org> <2A55FF5E-F764-406A-BE0E-272246F425B5@netmusician.org> <448xoska3k.fsf@be-well.ilk.org> <44733B8B.6030404@dial.pipex.com> <448FDE6B.4000703@dial.pipex.com> <38D0516F-2F6B-4700-9006-5A2D6034DC0C@netmusician.org> <449042EF.9040905@dial.pipex.com> <4680C6D4-50F9-4441-8B54-924092A1A3AD@netmusician.org> <44913391.7060906@dial.pipex.com> <7B276387-F946-4FEC-81D1-8CF9B95808E2@netmusician.org> <44958D50.4050000@dial.pipex.com> <44966182.3020202@dial.pipex.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joe Auty Date: Mon, 19 Jun 2006 08:23:17 -0400 To: Alex Zbyslaw X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Gpgmail-State: signed X-Mailer: Apple Mail (2.750) Cc: FreeBSD Questions Subject: Re: Python port problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:23:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jun 19, 2006, at 4:34 AM, Alex Zbyslaw wrote: > Joe Auty wrote: > >> >> On Jun 18, 2006, at 1:28 PM, Alex Zbyslaw wrote: >> >>> Joe Auty wrote: >>> >>>> >>>> On Jun 15, 2006, at 6:16 AM, Alex Zbyslaw wrote: >>>> >>>>> Joe Auty wrote: >>>>> >>>>>> jauty# python -v /usr/local/mailman/bin/qrunner >>>>>> [...snip...] >>>>>> # /usr/local/lib/python2.4/getopt.pyc matches /usr/local/ >>>>>> lib/ python2.4/getopt.py >>>>>> import getopt # precompiled from /usr/local/lib/python2.4/ >>>>>> getopt.pyc >>>>>> # /usr/local/mailman/bin/paths.pyc matches /usr/local/mailman/ >>>>>> bin/ paths.py >>>>>> import paths # precompiled from /usr/local/mailman/bin/paths.pyc >>>>>> [...snip...] >>>>> >>>>> >>>>> >>>>> OK, you just ran qrunner successfully without getting the >>>>> error you were getting earlier about getopt. Doesn't matter >>>>> that all you got was help, it found *everything* that it >>>>> tried to import. >>>>> >>>>> I missed the start of this thread. How did you run qrunner to >>>>> get your earlier error and where did the error appear? I >>>>> think you said the rc script. If it's not too big can you >>>>> post it? Or compare it against your working mailman? >>>>> >>>> >>>> My Mailman rc script (exactly identical to the one on my >>>> working machine): >>>> >>> You're getting your error when mailman starts at boot time; is >>> that right? >>> >>> If so, what happens if you try as root (csh): >>> >>> # sh -x /usr/local/etc/rc.d/mailman.sh start >>> >>> (you might have to check the exact name of the rc.d script). >>> >>> If this starts mailman then something bizarre is going on. >>> >>> If you get the same error as usual, then judicious snippets with >>> the error and prior context. >>> >> >> Running the RC script under sh, csh, and bash yields the same >> error spew.... >> >> I've attached the errors spewed out in their entirety: > > Sorry, the csh/sh distinction should have been edited out by me - I > was redirecting the output in my first edit then took it out. > However, the point was to run with sh -x as that will trace > execution and might find where has been written. > > Can you try: > > $ ls /usr/local/etc/rc.d/mailman* > # ls /usr/local/etc/rc.d/mailman* /usr/local/etc/rc.d/mailman.sh > $ ls /etc/rc.d/mailman* > # ls /etc/rc.d/mailman* ls: No match. > (in case some old script has hung around) > > $ find /usr/local/mailman -type f -exec egrep -H '' {} \; > > (to try to find somewhere in mailman install) > # find /usr/local/mailman -type f -exec egrep -H '' {} \; /usr/local/mailman/messages/ja/README.ja: % cd /pythonlib > and if that finds nothing > > $ sh -x /usr/local/etc/rc.d/mailman.sh start > Same problem, would you like a copy of this output? I'm presuming the lines prefaced by a "+" are of interest to you? + named_symlink_enable=YES + kerberos5_server_enable=NO + kerberos5_server=/usr/libexec/kdc + kadmind5_server_enable=NO + kadmind5_server=/usr/libexec/kadmind + kpasswdd_server_enable=NO + kpasswdd_server=/usr/libexec/kpasswdd + rwhod_enable=NO Anything in particular you'd like me to pull from this output? > [from mailman list] > >> One wild guess - look at bin/paths.py. It should contain real >> paths as >> definitions for 'prefix' and 'exec_prefix'. If it's wrong, then so >> probably are cron/paths.py and scripts/paths.py (and who knows what >> else). > > > > We tried looking in that first file a couple iterations ago :- > ( Above I've tried looking in others but I don't think that will > be it. don't think it's the mailman install per se as you ran > qrunner from the command line and it worked. Try again to be sure: > > /usr/local/mailman/bin/qrunner > > and you' should get the help message and not an import error. > Indeed, I do! Thanks again for your help! I hope that isolating and resolving my problem will be useful for others too... - ----------- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFElpc2CgdfeCwsL5ERAmTMAKCP+gq9x5grPHc/2PrSLlBnvPltGQCfZj1Z sIzmqj95/1mEeuAlhOENNfo= =faPl -----END PGP SIGNATURE-----