[Mailman-Users] Re: install on OS X

Peter Bengtson peter.bengtson at noteheads.com
Sat Oct 6 14:51:13 CEST 2001


Actually, the installation README for Python recommends that the name
"python.exe" is used to avoid a clash with a HFS volume called "python".
Adding a hard link to python.exe called python fixes it of course, and
makes it possible to invoke Python from the command line in the usual manner.

I'm also trying to install Mailman under Mac OS X, and it _almost_
works. It took a while to figure out how groups are defined and
maintained under OS X (it isn't like any other *nix I've seen), but once
a group called mailman was defined, and Apache was configured to allow
ExecCGI anywhere, the rest was easy. Except for one bit.

I'm using MacOS X (v10.0.4) on a Mac Cube with 192MB of memory. As part
of the installation of Mailman, Python had to be installed (it isn't
preinstalled on MacOS X or "Darwin").

All the tests run fine, except for the regexp one which segfaults (as
indicated in the excellent Python README document). The interpreter also
runs fine, and after installing a hard link to "python.exe",
command-line invocations of python work as expected.

However, when Mailman tries to call Python, errors occur, manifesting as
"Internal Server Errors". First, the "time" module seemed to be missing,
so I added it by uncommenting the relevant line in Modules/Setup. I got
a little further, and a socket-related library was missing, so I added
the socket module without SSL in the same fashion. Then, the following
happens, for which I cannot find a module.

I am beginning to thing something is seriously wrong, if modules cannot
be loaded dynamically, and that I either have misconfigured the entire
thing by not including correct parameters to ./configure, or that
important installation instructions for MacOS X are missing from either
the Python README or the Mailman OS X installation instructions.

I would be very grateful for any information or idea. Here's the error
log from Mailman:

> admin(6536): [----- Mailman Version: 2.0.6 -----]
> admin(6536): [----- Traceback ------]
> admin(6536): Traceback (most recent call last):
> admin(6536):   File "/Users/mailman/scripts/driver", line 80, in run_main
> admin(6536):     import Mailman.pythonlib.cgi
> admin(6536):   File "/Users/mailman/Mailman/pythonlib/cgi.py", line 35, in ?
> admin(6536):     from StringIO import StringIO
> admin(6536): ImportError: cannot import name StringIO
> admin(6536): [----- Python Information -----]
> admin(6536): sys.version    = 2.1.1 (#4, 10/06/01, 13:16:50) 
> [GCC Apple DevKit-based CPP 6.0alpha]
> admin(6536): sys.executable = /Library/Python-2.1.1/python.exe
> admin(6536): sys.prefix     = /usr/local
> admin(6536): sys.exec_prefix= /usr/local
> admin(6536): sys.path       = /usr/local
> admin(6536): sys.platform   = darwin1
> admin(6536): [----- Environment Variables -----]
> admin(6536):    DOCUMENT_ROOT: /Library/WebServer/WebSites/www.musikelit.nu
> admin(6536):    SERVER_ADDR: 213.80.33.227
> admin(6536):    HTTP_ACCEPT_ENCODING: gzip
> admin(6536):    SERVER_PORT: 80
> admin(6536):    REMOTE_ADDR: 213.80.33.237
> admin(6536):    APACHE_PORT: 81
> admin(6536):    SERVER_SOFTWARE: Apache/1.3.20 (iTools/MacOSX) mod_ssl/2.8.4 OpenSSL/0.9.5a PHP/4.0.4pl1 mod_perl/1.25
mod_fastcgi
> /2.2.10
> admin(6536):    HTTP_VIA: 1.0 sphinx.naradek.org:80 (Squid/2.4.STABLE1)
> admin(6536):    HTTP_ACCEPT_LANGUAGE: en-GB,en
> admin(6536):    HTTP_X_FORWARDED_FOR: 213.80.33.237
> admin(6536):    GATEWAY_INTERFACE: CGI/1.1
> admin(6536):    SERVER_NAME: www.musikelit.nu
> admin(6536):    HTTP_CONNECTION: keep-alive
> admin(6536):    HTTP_USER_AGENT: Mozilla/4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
> admin(6536):    HTTP_ACCEPT_CHARSET: iso-8859-1,*,utf-8
> admin(6536):    HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
> admin(6536):    REQUEST_URI: /mailman/admin
> admin(6536):    HTTP_CACHE_CONTROL: max-age=259200
> admin(6536):    QUERY_STRING: 
> admin(6536):    SERVER_PROTOCOL: HTTP/1.0
> admin(6536):    HTTP_HOST: www.musikelit.nu:81
> admin(6536):    REQUEST_METHOD: GET
> admin(6536):    SERVER_SIGNATURE: <ADDRESS>Apache/1.3.20 Server at www.musikelit.nu Port 80</ADDRESS>
> 
> admin(6536):    SCRIPT_NAME: /mailman/admin
> admin(6536):    SERVER_ADMIN: webmaster at naradek.org
> admin(6536):    SCRIPT_FILENAME: /Users/mailman/cgi-bin/admin
> admin(6536):    PYTHONPATH: /Users/mailman
> admin(6536):    REMOTE_PORT: 49448


        / Peter Bengtson




More information about the Mailman-Users mailing list