[IPython-User] Configuring DB backend?

Darren Govoni darren@ontrenet....
Fri Jan 27 18:32:13 CST 2012


Hi,
   I'm trying to configure my ipcontroller to use mongodb backend. I 
followed the instructions here[1]
But I get errors when running the controller.

[IPControllerApp] Attempting to load config file: ipcontroller_config.py
[IPControllerApp] Exception while loading config file 
/home/darren/.config/ipython/profile_default/ipcontroller_config.py
Traceback (most recent call last):
   File 
"/usr/local/lib/python2.6/dist-packages/IPython/config/application.py", 
line 440, in load_config_file
     config = loader.load_config()
   File 
"/usr/local/lib/python2.6/dist-packages/IPython/config/loader.py", line 
268, in load_config
     self._read_file_as_dict()
   File 
"/usr/local/lib/python2.6/dist-packages/IPython/config/loader.py", line 
321, in _read_file_as_dict
     py3compat.execfile(conf_filename, namespace)
   File 
"/usr/local/lib/python2.6/dist-packages/IPython/utils/py3compat.py", 
line 175, in execfile
     __builtin__.execfile(filename, *where)
   File 
"/home/darren/.config/ipython/profile_default/ipcontroller_config.py", 
line 1, in <module>
     c.HubFactory.db_class = 'IPython.parallel.controller.mongodb.MongoDB'
NameError: name 'c' is not defined
2012-01-27 19:31:30.281 [IPControllerApp] Config changed

Thanks for any tips. I couldn't see from the instructions how to make it 
work.

[1] 
http://ipython.org/ipython-doc/rel-0.12/parallel/parallel_process.html?highlight=mongodb 



More information about the IPython-User mailing list