Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2006 13:26:24 -0400
From:      Joe Auty <joe@netmusician.org>
To:        Alex Zbyslaw <xfb52@dial.pipex.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Python port problems
Message-ID:  <4680C6D4-50F9-4441-8B54-924092A1A3AD@netmusician.org>
In-Reply-To: <449042EF.9040905@dial.pipex.com>
References:  <9842C36E-C450-4282-9019-BA2DD3476684@netmusician.org>	<fb6605670605221727h719579a2gdeae84452036f6e8@mail.gmail.com>	<2A55FF5E-F764-406A-BE0E-272246F425B5@netmusician.org>	<448xoska3k.fsf@be-well.ilk.org> <44733B8B.6030404@dial.pipex.com>	<B766BA83-CF9A-404C-B8AB-3F9BF4D7180C@netmusician.org>	<448FDE6B.4000703@dial.pipex.com> <38D0516F-2F6B-4700-9006-5A2D6034DC0C@netmusician.org> <449042EF.9040905@dial.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-37-200092587
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On Jun 14, 2006, at 1:10 PM, Alex Zbyslaw wrote:

>
> I've truncated the tests since nothing there showed any problem  
> whatsoever.  I'm running out of ideas, so this one may be off the  
> wall:
> ($ to indicate command lines but don;t type the $ :-))
>

Just as a preface, Mailman is working fine on another FreeBSD machine  
of mine. I'm wondering if this could be something as simple as bad  
permissions set somewhere?


> $ egrep prefix /usr/local/mailman/bin/qrunner
>

nothing

> I've found a mailman installation I can compare this next one against.
>
> $ egrep prefix /usr/local/mailman/bin/paths.py
>
> If this doesn't look like below, then we have found the problem, if  
> not the cause.  If anything contains the <> you have the problem  
> and can ignore the next item.  (Yours should have /usr/local for / 
> var but it's a cruddy Linux machine which happens to have mailman).
>
>
> # importing this module, sys.path gets `hacked' so that the $prefix/ 
> Mailman
> prefix = '/var/mailman'
> exec_prefix = '${prefix}'
> if exec_prefix == '${prefix}':
>    exec_prefix = prefix
> # Hack the path to include the parent directory of the $prefix/ 
> Mailman package
> sys.path.insert(0, prefix)
> sys.path.insert(0, os.path.join(prefix, 'pythonlib'))
> sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
>

# grep prefix /usr/local/mailman/bin/paths.py
# importing this module, sys.path gets `hacked' so that the $prefix/ 
Mailman
prefix = '/usr/local/mailman'
exec_prefix = '${prefix}'
if exec_prefix == '${prefix}':
     exec_prefix = prefix
# Hack the path to include the parent directory of the $prefix/ 
Mailman package
sys.path.insert(0, prefix)
sys.path.insert(0, os.path.join(prefix, 'pythonlib'))
sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],


Only difference here seems to be the prefix...


>
> And one which may spew quite a lot.  Cut it off if it gets to  
> printing help.
>
> $ python -v /usr/local/mailman/bin/qrunner
>


# grep prefix /usr/local/mailman/bin/paths.py
# importing this module, sys.path gets `hacked' so that the $prefix/ 
Mailman
prefix = '/usr/local/mailman'
exec_prefix = '${prefix}'
if exec_prefix == '${prefix}':
     exec_prefix = prefix
# Hack the path to include the parent directory of the $prefix/ 
Mailman package
sys.path.insert(0, prefix)
sys.path.insert(0, os.path.join(prefix, 'pythonlib'))
sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
jauty# python -v /usr/local/mailman/bin/qrunner
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/local/lib/python2.4/site.pyc matches /usr/local/lib/python2.4/ 
site.py
import site # precompiled from /usr/local/lib/python2.4/site.pyc
# /usr/local/lib/python2.4/os.pyc matches /usr/local/lib/python2.4/os.py
import os # precompiled from /usr/local/lib/python2.4/os.pyc
import posix # builtin
# /usr/local/lib/python2.4/posixpath.pyc matches /usr/local/lib/ 
python2.4/posixpath.py
import posixpath # precompiled from /usr/local/lib/python2.4/ 
posixpath.pyc
# /usr/local/lib/python2.4/stat.pyc matches /usr/local/lib/python2.4/ 
stat.py
import stat # precompiled from /usr/local/lib/python2.4/stat.pyc
# /usr/local/lib/python2.4/UserDict.pyc matches /usr/local/lib/ 
python2.4/UserDict.py
import UserDict # precompiled from /usr/local/lib/python2.4/UserDict.pyc
# /usr/local/lib/python2.4/copy_reg.pyc matches /usr/local/lib/ 
python2.4/copy_reg.py
import copy_reg # precompiled from /usr/local/lib/python2.4/copy_reg.pyc
# /usr/local/lib/python2.4/types.pyc matches /usr/local/lib/python2.4/ 
types.py
import types # precompiled from /usr/local/lib/python2.4/types.pyc
# /usr/local/lib/python2.4/warnings.pyc matches /usr/local/lib/ 
python2.4/warnings.py
import warnings # precompiled from /usr/local/lib/python2.4/warnings.pyc
# /usr/local/lib/python2.4/linecache.pyc matches /usr/local/lib/ 
python2.4/linecache.py
import linecache # precompiled from /usr/local/lib/python2.4/ 
linecache.pyc
import encodings # directory /usr/local/lib/python2.4/encodings
# /usr/local/lib/python2.4/encodings/__init__.pyc matches /usr/local/ 
lib/python2.4/encodings/__init__.py
import encodings # precompiled from /usr/local/lib/python2.4/ 
encodings/__init__.pyc
# /usr/local/lib/python2.4/codecs.pyc matches /usr/local/lib/ 
python2.4/codecs.py
import codecs # precompiled from /usr/local/lib/python2.4/codecs.pyc
import _codecs # builtin
# /usr/local/lib/python2.4/encodings/aliases.pyc matches /usr/local/ 
lib/python2.4/encodings/aliases.py
import encodings.aliases # precompiled from /usr/local/lib/python2.4/ 
encodings/aliases.pyc
# /usr/local/lib/python2.4/encodings/ascii.pyc matches /usr/local/lib/ 
python2.4/encodings/ascii.py
import encodings.ascii # precompiled from /usr/local/lib/python2.4/ 
encodings/ascii.pyc
Python 2.4.3 (#2, Jun 13 2006, 21:29:49)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.
# /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
import japanese # directory /usr/local/mailman/pythonlib/japanese
# /usr/local/mailman/pythonlib/japanese/__init__.pyc matches /usr/ 
local/mailman/pythonlib/japanese/__init__.py
import japanese # precompiled from /usr/local/mailman/pythonlib/ 
japanese/__init__.pyc
import japanese.aliases # directory /usr/local/mailman/pythonlib/ 
japanese/aliases
# /usr/local/mailman/pythonlib/japanese/aliases/__init__.pyc matches / 
usr/local/mailman/pythonlib/japanese/aliases/__init__.py
import japanese.aliases # precompiled from /usr/local/mailman/ 
pythonlib/japanese/aliases/__init__.pyc
import korean # directory /usr/local/mailman/pythonlib/korean
# /usr/local/mailman/pythonlib/korean/__init__.pyc matches /usr/local/ 
mailman/pythonlib/korean/__init__.py
import korean # precompiled from /usr/local/mailman/pythonlib/korean/ 
__init__.pyc
# /usr/local/mailman/pythonlib/korean/aliases.pyc matches /usr/local/ 
mailman/pythonlib/korean/aliases.py
import korean.aliases # precompiled from /usr/local/mailman/pythonlib/ 
korean/aliases.pyc
import Mailman # directory /usr/local/mailman/Mailman
# /usr/local/mailman/Mailman/__init__.pyc matches /usr/local/mailman/ 
Mailman/__init__.py
import Mailman # precompiled from /usr/local/mailman/Mailman/ 
__init__.pyc
# /usr/local/mailman/Mailman/mm_cfg.pyc matches /usr/local/mailman/ 
Mailman/mm_cfg.py
import Mailman.mm_cfg # precompiled from /usr/local/mailman/Mailman/ 
mm_cfg.pyc
# /usr/local/mailman/Mailman/Defaults.pyc matches /usr/local/mailman/ 
Mailman/Defaults.py
import Mailman.Defaults # precompiled from /usr/local/mailman/Mailman/ 
Defaults.pyc
# /usr/local/mailman/Mailman/Version.pyc matches /usr/local/mailman/ 
Mailman/Version.py
import Mailman.Version # precompiled from /usr/local/mailman/Mailman/ 
Version.pyc
# /usr/local/mailman/Mailman/i18n.pyc matches /usr/local/mailman/ 
Mailman/i18n.py
import Mailman.i18n # precompiled from /usr/local/mailman/Mailman/ 
i18n.pyc
dlopen("/usr/local/lib/python2.4/lib-dynload/time.so", 2);
import time # dynamically loaded from /usr/local/lib/python2.4/lib- 
dynload/time.so
# /usr/local/lib/python2.4/gettext.pyc matches /usr/local/lib/ 
python2.4/gettext.py
import gettext # precompiled from /usr/local/lib/python2.4/gettext.pyc
# /usr/local/lib/python2.4/locale.pyc matches /usr/local/lib/ 
python2.4/locale.py
import locale # precompiled from /usr/local/lib/python2.4/locale.pyc
dlopen("/usr/local/lib/python2.4/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /usr/local/lib/python2.4/lib- 
dynload/_locale.so
# /usr/local/lib/python2.4/copy.pyc matches /usr/local/lib/python2.4/ 
copy.py
import copy # precompiled from /usr/local/lib/python2.4/copy.pyc
# /usr/local/lib/python2.4/inspect.pyc matches /usr/local/lib/ 
python2.4/inspect.py
import inspect # precompiled from /usr/local/lib/python2.4/inspect.pyc
# /usr/local/lib/python2.4/string.pyc matches /usr/local/lib/ 
python2.4/string.py
import string # precompiled from /usr/local/lib/python2.4/string.pyc
# /usr/local/lib/python2.4/re.pyc matches /usr/local/lib/python2.4/re.py
import re # precompiled from /usr/local/lib/python2.4/re.pyc
# /usr/local/lib/python2.4/sre.pyc matches /usr/local/lib/python2.4/ 
sre.py
import sre # precompiled from /usr/local/lib/python2.4/sre.pyc
# /usr/local/lib/python2.4/sre_compile.pyc matches /usr/local/lib/ 
python2.4/sre_compile.py
import sre_compile # precompiled from /usr/local/lib/python2.4/ 
sre_compile.pyc
import _sre # builtin
# /usr/local/lib/python2.4/sre_constants.pyc matches /usr/local/lib/ 
python2.4/sre_constants.py
import sre_constants # precompiled from /usr/local/lib/python2.4/ 
sre_constants.pyc
# /usr/local/lib/python2.4/sre_parse.pyc matches /usr/local/lib/ 
python2.4/sre_parse.py
import sre_parse # precompiled from /usr/local/lib/python2.4/ 
sre_parse.pyc
dlopen("/usr/local/lib/python2.4/lib-dynload/strop.so", 2);
import strop # dynamically loaded from /usr/local/lib/python2.4/lib- 
dynload/strop.so
# /usr/local/lib/python2.4/dis.pyc matches /usr/local/lib/python2.4/ 
dis.py
import dis # precompiled from /usr/local/lib/python2.4/dis.pyc
# /usr/local/lib/python2.4/opcode.pyc matches /usr/local/lib/ 
python2.4/opcode.py
import opcode # precompiled from /usr/local/lib/python2.4/opcode.pyc
import imp # builtin
# /usr/local/lib/python2.4/tokenize.pyc matches /usr/local/lib/ 
python2.4/tokenize.py
import tokenize # precompiled from /usr/local/lib/python2.4/tokenize.pyc
# /usr/local/lib/python2.4/token.pyc matches /usr/local/lib/python2.4/ 
token.py
import token # precompiled from /usr/local/lib/python2.4/token.pyc
dlopen("/usr/local/lib/python2.4/lib-dynload/struct.so", 2);
import struct # dynamically loaded from /usr/local/lib/python2.4/lib- 
dynload/struct.so
import errno # builtin
# /usr/local/mailman/Mailman/SafeDict.pyc matches /usr/local/mailman/ 
Mailman/SafeDict.py
import Mailman.SafeDict # precompiled from /usr/local/mailman/Mailman/ 
SafeDict.pyc
import Mailman.Logging # directory /usr/local/mailman/Mailman/Logging
# /usr/local/mailman/Mailman/Logging/__init__.pyc matches /usr/local/ 
mailman/Mailman/Logging/__init__.py
import Mailman.Logging # precompiled from /usr/local/mailman/Mailman/ 
Logging/__init__.pyc
# /usr/local/mailman/Mailman/Logging/Syslog.pyc matches /usr/local/ 
mailman/Mailman/Logging/Syslog.py
import Mailman.Logging.Syslog # precompiled from /usr/local/mailman/ 
Mailman/Logging/Syslog.pyc
# /usr/local/lib/python2.4/quopri.pyc matches /usr/local/lib/ 
python2.4/quopri.py
import quopri # precompiled from /usr/local/lib/python2.4/quopri.pyc
dlopen("/usr/local/lib/python2.4/lib-dynload/binascii.so", 2);
import binascii # dynamically loaded from /usr/local/lib/python2.4/ 
lib-dynload/binascii.so
# /usr/local/mailman/Mailman/Logging/StampedLogger.pyc matches /usr/ 
local/mailman/Mailman/Logging/StampedLogger.py
import Mailman.Logging.StampedLogger # precompiled from /usr/local/ 
mailman/Mailman/Logging/StampedLogger.pyc
# /usr/local/mailman/Mailman/Logging/Logger.pyc matches /usr/local/ 
mailman/Mailman/Logging/Logger.py
import Mailman.Logging.Logger # precompiled from /usr/local/mailman/ 
Mailman/Logging/Logger.pyc
# /usr/local/mailman/Mailman/Logging/Utils.pyc matches /usr/local/ 
mailman/Mailman/Logging/Utils.py
import Mailman.Logging.Utils # precompiled from /usr/local/mailman/ 
Mailman/Logging/Utils.pyc
# /usr/local/lib/python2.4/traceback.pyc matches /usr/local/lib/ 
python2.4/traceback.py
import traceback # precompiled from /usr/local/lib/python2.4/ 
traceback.pyc
Run one or more qrunners, once or repeatedly.

.. snip (after this is the help options and some other stuff)






--Apple-Mail-37-200092587
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEkEbACgdfeCwsL5ERArNqAJ4zfWB4raN6IexNAfY2FkHnEmXhQACgktjT
Uoz0IO8QQPk7eF036o8WeNU=
=pe9S
-----END PGP SIGNATURE-----

--Apple-Mail-37-200092587--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4680C6D4-50F9-4441-8B54-924092A1A3AD>