[IPython-User] Configuring DB backend?

MinRK benjaminrk@gmail....
Fri Jan 27 18:34:32 CST 2012


On Fri, Jan 27, 2012 at 16:32, Darren Govoni <darren@ontrenet.com> wrote:
> 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.

All the config docs assume that the line `c = get_config()` at the
top, which will be true if you start from the default generated config
files with:

`ipython profile create --parallel`

-MinRK

>
> [1]
> http://ipython.org/ipython-doc/rel-0.12/parallel/parallel_process.html?highlight=mongodb
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user


More information about the IPython-User mailing list