22 Dec
2012
22 Dec
'12
2:48 p.m.
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
4358
Age (days ago)
4358
Last active (days ago)
0 comments
1 participants
participants (1)
-
Barry Warsaw