Comment 4 for bug 479914

Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote : Re: ipython cannot load configuration files and start with default -bare bones- configuration in Karmic

This is somewhat the intended behaviour. The iPython documentation (file:///usr/share/doc/ipython/manual/html/config/index.html) describes two ways of handling configuration:

* Old: .ipython/ipythonrc, .ipython/ipythonrc-PROFILENAME
* New: .ipython/ipy_user_conf.py, .ipython/ipy_profile_PROFILENAME.py

The file .ipython/ipythonrc must *exist*; if it doesn't, the traceback you see is produced. However, it is possible to run iPython perfectly well with an *empty* ipythonrc file, doing all configuration through ipy_user_conf.py.

There is an example of this file on your system at /usr/share/pyshared/IPython/UserConfig/ipy_user_conf.py (Ubuntu 9.10) — or type "locate ipy_user_conf.py" to find it. The line "import ipy_defaults" in this file establishes the iPython features you are used to.

I think the bug here is that iPython should treat a missing ipythonrc the same as an empty one, so I'm changing the title.