Fail to create a list with MM3 ALPHA
I am having problems creating a mailing list with MM3 ALPHA.
Here's what I have done so far:
I created a config that overrides src/mailman/config/schema.cfg.
Then I started mailmanctl:
# /var/lib/mailman/bin/mailmanctl -C /etc/mailman/mailman.cfg start Warning! You may encounter permission problems. Starting Mailman's master qrunner.
mailmanctl is created the necessacry directory structure in /var/lib/mailman/:
# ls -1 /var/lib/mailman/ archives bin data etc ext lists locks logs messages qfiles spam
It seems to run well:
# ps axf | grep mailman 16215 pts/0 S+ 0:00 \_ grep mailman 16164 ? Ss 0:00 /usr/local/bin/python /var/lib/mailman/bin/master -C /etc/mailman/mailman.cfg 16167 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=retry:0:1 -s -C /etc/mailman/mailman.cfg 16168 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=out:0:1 -s -C /etc/mailman/mailman.cfg 16169 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=bounces:0:1 -s -C /etc/mailman/mailman.cfg 16170 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=command:0:1 -s -C /etc/mailman/mailman.cfg 16171 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=pipeline:0:1 -s -C /etc/mailman/mailman.cfg 16172 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=lmtp:0:1 -s -C /etc/mailman/mailman.cfg 16173 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=in:0:1 -s -C /etc/mailman/mailman.cfg 16174 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=virgin:0:1 -s -C /etc/mailman/mailman.cfg 16175 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=news:0:1 -s -C /etc/mailman/mailman.cfg 16176 ? S 0:00 \_ /usr/local/bin/python /var/lib/mailman/bin/qrunner --runner=archive:0:1 -s -C /etc/mailman/mailman.cfg
Then I try to create a list:
# /var/lib/mailman/bin/create_list -C /etc/mailman/mailman.cfg mailman@mailman.state-of-mind.de Traceback (most recent call last): File "/var/lib/mailman/bin/create_list", line 18, in <module> mailman.bin.create_list.main() File "/root/mailman/src/mailman/bin/create_list.py", line 93, in main options = ScriptOptions() File "/root/mailman/src/mailman/options.py", line 80, in __init__ self.add_options() File "/root/mailman/src/mailman/bin/create_list.py", line 47, in add_options super(ScriptOptions, self).add_options() File "/root/mailman/src/mailman/options.py", line 131, in add_options type='unicode', help=_('The mailing list name')) File "/usr/local/lib/python2.6/optparse.py", line 1004, in add_option raise TypeError, "invalid arguments" TypeError: invalid arguments
What should I do?
Thanks,
p@rick
-- state of mind Agentur für Kommunikation, Design und Softwareentwicklung
Patrick Koetter Tel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de
Amtsgericht München Partnerschaftsregister PR 563
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 4, 2009, at 3:15 PM, Patrick Ben Koetter wrote:
I am having problems creating a mailing list with MM3 ALPHA.
Then I try to create a list:
# /var/lib/mailman/bin/create_list -C /etc/mailman/mailman.cfg mailman@mailman.state-of-mind.de Traceback (most recent call last): File "/var/lib/mailman/bin/create_list", line 18, in <module> mailman.bin.create_list.main() File "/root/mailman/src/mailman/bin/create_list.py", line 93, in main options = ScriptOptions() File "/root/mailman/src/mailman/options.py", line 80, in __init__ self.add_options() File "/root/mailman/src/mailman/bin/create_list.py", line 47, in
add_options super(ScriptOptions, self).add_options() File "/root/mailman/src/mailman/options.py", line 131, in add_options type='unicode', help=_('The mailing list name')) File "/usr/local/lib/python2.6/optparse.py", line 1004, in add_option raise TypeError, "invalid arguments" TypeError: invalid argumentsWhat should I do?
I'll try to fix this later today. The problem is that I've enabled
unicode literals in all the source files, but Python's standard
optparse.py module does not allow unicode options (I consider this a
bug in the module, may or may not get fixed for Python 2.6). The
solution is to wrap the option specs in str().
The other problem is that the command line scripts are not well
tested. Eventually I'll add unit tests for those.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmJ+z0ACgkQ2YZpQepbvXFbAQCfXNNHAmgKfLguOZtI+WbzBnj/ UiAAmwYu4N0Qu79e6trhuFqJlfJY4bC7 =Qo/H -----END PGP SIGNATURE-----
What should I do?
I'll try to fix this later today. The problem is that I've enabled unicode literals in all the source files, but Python's standard optparse.py module does not allow unicode options (I consider this a bug in the module, may or may not get fixed for Python 2.6). The solution is to wrap the option specs in str().
The other problem is that the command line scripts are not well tested. Eventually I'll add unit tests for those.
I think this is holding me up on my lmtp code. I need to be able to write a test that allows me to create a list, add a member, and change the member's posting permissions. All so that the lmtp server can reject the message if the sender doesn't have permission to post to the list.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmJ+z0ACgkQ2YZpQepbvXFbAQCfXNNHAmgKfLguOZtI+WbzBnj/ UiAAmwYu4N0Qu79e6trhuFqJlfJY4bC7 =Qo/H -----END PGP SIGNATURE-----
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/iane%40sussex.a c.uk
Security Policy: http://wiki.list.org/x/QIA9
-- Ian Eiloart IT Services, University of Sussex x3148
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 5, 2009, at 7:59 AM, Ian Eiloart wrote:
I think this is holding me up on my lmtp code. I need to be able to
write a test that allows me to create a list, add a member, and
change the member's posting permissions. All so that the lmtp server
can reject the message if the sender doesn't have permission to post
to the list.
Using the command line scripts in the test is not the right way to do
that. There are internal APIs for all that stuff. See some of the
existing doctests.
The command line scripts should be a thin wrapper around the internal
APIs, mostly to do option parsing and a bit of setup. Some of the
older scripts haven't been updated yet, but that's the design
principle I'm shooting for.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmLGEwACgkQ2YZpQepbvXGn9QCbB2TFGwpEQaueONKVUq4At4YY HJkAnibf8jJd/JB4PlSta9X/4yByD/2K =7LPX -----END PGP SIGNATURE-----
--On 5 February 2009 11:48:12 -0500 Barry Warsaw <barry@list.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 5, 2009, at 7:59 AM, Ian Eiloart wrote:
I think this is holding me up on my lmtp code. I need to be able to write a test that allows me to create a list, add a member, and change the member's posting permissions. All so that the lmtp server can reject the message if the sender doesn't have permission to post to the list.
Using the command line scripts in the test is not the right way to do that. There are internal APIs for all that stuff. See some of the existing doctests.
Ah, fair point. I should have engaged my brain first. Actually, our tests do use the API. I'll shut up now, and take a closer look at why they're not working.
The command line scripts should be a thin wrapper around the internal APIs, mostly to do option parsing and a bit of setup. Some of the older scripts haven't been updated yet, but that's the design principle I'm shooting for.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmLGEwACgkQ2YZpQepbvXGn9QCbB2TFGwpEQaueONKVUq4At4YY HJkAnibf8jJd/JB4PlSta9X/4yByD/2K =7LPX -----END PGP SIGNATURE-----
-- Ian Eiloart IT Services, University of Sussex x3148
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 4, 2009, at 3:15 PM, Patrick Ben Koetter wrote:
# /var/lib/mailman/bin/create_list -C /etc/mailman/mailman.cfg mailman@mailman.state-of-mind.de Traceback (most recent call last): File "/var/lib/mailman/bin/create_list", line 18, in <module> mailman.bin.create_list.main() File "/root/mailman/src/mailman/bin/create_list.py", line 93, in main options = ScriptOptions() File "/root/mailman/src/mailman/options.py", line 80, in __init__ self.add_options() File "/root/mailman/src/mailman/bin/create_list.py", line 47, in
add_options super(ScriptOptions, self).add_options() File "/root/mailman/src/mailman/options.py", line 131, in add_options type='unicode', help=_('The mailing list name')) File "/usr/local/lib/python2.6/optparse.py", line 1004, in add_option raise TypeError, "invalid arguments" TypeError: invalid arguments
Fixed in r6680. Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iQCVAwUBSYptCXEjvBPtnXfVAQKXGgQAi7HHLS5So80r7N3huliFSPfRUOr1zBVn ubNtCkoK+4SKsr6a5tH1ch04yq/+vgdsT/g9C/26V3QbZ3t4lP/1emq4xtpPvzv8 GP2Urh4oe+9EG6CP1OMARlT0kSAdbwk+VSzyePxR6jx3mOoCIWg5XiFWKHDP8Xd7 rdNESBEn0k8= =MeNL -----END PGP SIGNATURE-----
participants (4)
-
Barry Warsaw
-
Barry Warsaw
-
Ian Eiloart
-
Patrick Ben Koetter