On Dec 22, 2012, at 01:02 PM, Sandesh Agrawal wrote:

>I am using python 2.7.3 and bin/py interpreter prompt to run :
>
>>>> master = TestableMaster()
>>>> master.start()
>
>But the following error occurs :
>--------------------------------------------------------------------------
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/home/sandesh/mail_man/mailman-3.0.0b2/src/mailman/testing/helpers.py",
>line 186, in start
>    self.start_runners(runners)
>  File "/home/sandesh/mail_man/mailman-3.0.0b2/src/mailman/bin/master.py",
>line 385, in start_runners
>    for runner_config in config.runner_configs:
>  File "/home/sandesh/mail_man/mailman-3.0.0b2/src/mailman/config/config.py",
>line 215, in runner_configs
>    for section in self._config.getByCategory('runner', []):
>AttributeError: 'NoneType' object has no attribute 'getByCategory'
>------------------------------------------------------------------------
>
>should i not use bin/py or anything else need to be done.

Remember that I said bin/py is just the Python interpreter with sys.path set
up correctly, but no initializations done?  That's what's happening here.
None of the configuration system is set up by bin/py.

You want `bin/mailman shell` which will give you an interpreter prompt with
all the system initializations performed.

Cheers,
-Barry

_______________________________________________
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/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to