[baylisa] Reinstall python?
David Alban
extasia at extasia.org
Sat May 24 10:10:16 PDT 2003
Greetings!
I think I may need to (re-)install python and mailman to get mailman
working on a red hat 9 box. Anyone think, based on the info below,
that this is not the case? Should I use rpms? Or would it be better
to "configure && make && make test && make install"?
I inherited a brand new mailman installation on a red hat 9 box to
which I have access via ssh. I have root on the box.
I'm trying to start mailman, and am getting:
$ /etc/init.d/mailman start
Traceback (most recent call last):
File "/var/mailman/bin/mailmanctl", line 524, in ?
main()
File "/var/mailman/bin/mailmanctl", line 319, in main
check_privs()
File "/var/mailman/bin/mailmanctl", line 274, in check_privs
gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
KeyError: getgrnam(): name not found
I get a similar error when running ~mailman/bin/check_perms:
Traceback (most recent call last):
File "bin/check_perms", line 51, in ?
MAILMAN_GID = grp.getgrnam(MAILMAN_GROUP)[2]
KeyError: getgrnam(): name not found
I found <http://www.mail-archive.com/[email protected]/msg17390.html>,
which says:
You can try for yourself by running Python from the command line as
follows [...]
[EMAIL PROTECTED]:/mailman/run/bin> python
Python 2.2.2 (#3, Feb 11 2003, 16:57:53)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import paths
>>> from Mailman import mm_cfg
>>> from Mailman.mm_cfg import MAILMAN_USER, MAILMAN_GROUP
>>> print MAILMAN_USER, MAILMAN_GROUP
mailman mailman
>>> import grp
>>> MAILMAN_GID = grp.getgrnam(MAILMAN_GROUP)[2]
>>> print MAILMAN_GID
18
>>> import sys
>>> sys.exit()
[EMAIL PROTECTED]:/mailman/run/bin>
I try the above. As soon as I type "import paths" and hit ENTER, I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named paths
Umm... At this point I (who have no experience with python) am
beginning to think there's something wrong with the python
installation. Or is this a case analogous to when perl's @INC array
isn't set properly?
Thanks!
David
--
Live in a world of your own, but always welcome visitors.
***
Come to sig-beer-west! http://www.extasia.org/sig-beer-west/
Unix sysadmin available: http://www.extasia.org/resume/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://www.baylisa.org/pipermail/baylisa/attachments/20030524/fc81df04/attachment.bin>
More information about the Baylisa
mailing list