[Mailman-Users] Can't run mm_cfg.py
Hi. I'm unable to configure Mailman, because when I edit and run mm_cfg.py (python ./mm_cfg.py) I get this error: Traceback (most recent call last): File ./mm_cfg.py, line 44, in ? from Defaults import * ImportError: No module named Defaults Well, Defaults.py, Defaults.pyo and Defaults.pyc are sitting right there in the current directory. I'm not a Python expert, perhaps that isn't what's being looked for? I'm running 2.1.5 under Debian Sarge, using Python 2.3.5. Any other information that can help figure this out, please ask. I have resubscribed to the mailing list, so there's no need to copy me personally on any answers. (I think the old custom of summarizing for mailing lists is finally dead, unfortunately.) I did search the archive and found no mention of this problem. And I'll be very grateful for any assistance. -- Carl Fink [EMAIL PROTECTED] Patriotism is supporting your country all the time, and your government when it deserves it. - Mark Twain -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Can't run mm_cfg.py
On Thu, Jun 01, 2006 at 08:30:34AM -0700, Dragon wrote: Yeah, that all seems a bit strange but if he can stop and successfully restart his qrunners, then the edits are syntactically correct and mailman can at least understand what is there. Whether those edits are then lexically and logically correct is another story altogether. I actually did restart Mailman, with no errors, and so far it seems to have taken my changes. If mm_cfg is just there to be read from, why is it a script instead of a text file /etc/mailman? -- Carl Fink [EMAIL PROTECTED] Patriotism is supporting your country all the time, and your government when it deserves it. - Mark Twain -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Can't run mm_cfg.py
On Thu, Jun 01, 2006 at 11:18:04AM -0500, Brad Knowles wrote: When the configuration is done in the Python language in a Python script, you can let Python do all the parsing, and do the equivalent of #include in order to pull in all your configuration details. Fair enough. Like I wrote, I'm no Python expert. Thanks. -- Carl Fink [EMAIL PROTECTED] Patriotism is supporting your country all the time, and your government when it deserves it. - Mark Twain -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp