[IPython-dev] Last call: 0.12 this weekend?

Thomas Spura tomspur at fedoraproject.org
Sun Dec 18 08:05:40 EST 2011


On Sat, Dec 17, 2011 at 10:44 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> Anyone have any objection or see any glaring problems?


When running rm -rf ~/.config/ipython and doing
%install_default_config, this results in a crash:
Installing default config file in: /home/tom/.config/ipython/profile_default
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
/home/tom/src/ipython.git/<ipython-input-1-57560e033eac> in <module>()
----> 1 get_ipython().magic(u'install_default_config')

/home/tom/src/ipython.git/IPython/core/interactiveshell.pyc in
magic(self, arg_s, next_input)
   1996                 self._magic_locals = sys._getframe(1).f_locals
   1997             with self.builtin_trap:
-> 1998                 result = fn(magic_args)
   1999             # Ensure we're not keeping object references around:

   2000             self._magic_locals = {}

/home/tom/src/ipython.git/IPython/core/magic.pyc in
magic_install_default_config(self, s)
   3403         pd = self.shell.profile_dir
   3404         print "Installing default config file in: %s" % pd.location
-> 3405         pd.copy_config_file('ipython_config.py', overwrite=overwrite)
   3406
   3407     # Pylab support: simple wrappers that activate pylab, load gui input


/home/tom/src/ipython.git/IPython/core/profiledir.pyc in
copy_config_file(self, config_file, path, overwrite)
    149             path = os.path.join(get_ipython_package_dir(),
u'config', u'profile', u'default')
    150         src = os.path.join(path, config_file)
--> 151         shutil.copy(src, dst)
    152         return True
    153

/usr/lib64/python2.7/shutil.pyc in copy(src, dst)
    114     if os.path.isdir(dst):
    115         dst = os.path.join(dst, os.path.basename(src))
--> 116     copyfile(src, dst)
    117     copymode(src, dst)
    118

/usr/lib64/python2.7/shutil.pyc in copyfile(src, dst)
     79                 raise SpecialFileError("`%s` is a named pipe" % fn)
     80
---> 81     with open(src, 'rb') as fsrc:
     82         with open(dst, 'wb') as fdst:
     83             copyfileobj(fsrc, fdst)

IOError: [Errno 2] No such file or directory:
u'./IPython/config/profile/default/ipython_config.py'


Also see this bug report for that:
https://bugzilla.redhat.com/show_bug.cgi?id=751146

All I could find in the github issues is this:
https://github.com/ipython/ipython/issues/467
but that was with the old config system...

Greetings,
   Tom



More information about the IPython-dev mailing list