[Ipython-tickets] [IPython] #191: Can't find UserConfig crash

IPython ipython-tickets@scipy....
Fri Oct 19 02:07:11 CDT 2007


#191: Can't find UserConfig crash
----------------------+-----------------------------------------------------
 Reporter:  vivainio  |       Owner:  vivainio
     Type:  defect    |      Status:  new     
 Priority:  highest   |   Milestone:          
Component:  ipython   |     Version:          
 Severity:  blocker   |    Keywords:          
----------------------+-----------------------------------------------------
 I have many of these crash reports:

 {{{
 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/IPython/iplib.py in
 user_setup(self=<IPython.iplib.InteractiveShell object at 0x11633f0>,
 ipythondir='/Users/oldbrad/.ipython', rc_suffix='', mode='install')
   1091         cwd = os.getcwd()  # remember where we started
   1092         glb = glob.glob
   1093         print '*'*70
   1094         if mode == 'install':
   1095             print \
   1096 """Welcome to IPython. I will try to create a personal
 configuration directory
   1097 where you can customize many aspects of IPython's functionality
 in:\n"""
   1098         else:
   1099             print 'I am going to upgrade your configuration in:'
   1100
   1101         print ipythondir
   1102
   1103         rcdirend = os.path.join('IPython','UserConfig')
   1104         cfg = lambda d: os.path.join(d,rcdirend)
   1105         try:
 -> 1106             rcdir = filter(os.path.isdir,map(cfg,sys.path))[0]
        rcdir = undefined
        global filter = undefined
        global os.path.isdir = <function isdir at 0x41270>
        global map = undefined
        cfg = <function <lambda> at 0x1404970>
        global sys.path = ['', '/usr/local/bin',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/setuptools-0.6c7-py2.5.egg',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/PyOpenGL-3.0.0a6-py2.5.egg',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-
 darwin', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /plat-mac',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac
 /lib-scriptpackages',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
 dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/Numeric', '/Library/Frame
  works/Python.framework/Versions/2.5/lib/python2.5/site-packages/PIL',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/Py2App',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/PyObjC',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/wx-2.8-mac-unicode',
 '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
 packages/IPython/Extensions', '/Users/oldbrad/.ipython']
   1107         except IOError:
   1108             warning = """
   1109 Installation error. IPython's directory was not found.
   1110
   1111 Check the following:
   1112
   1113 The ipython/IPython directory should be in a directory belonging to
 your
   1114 PYTHONPATH environment variable (that is, it should be in a
 directory
   1115 belonging to sys.path). You can copy it explicitly there or just
 link to it.
   1116
   1117 IPython will proceed with builtin defaults.
   1118 """
   1119             warn(warning)
   1120             wait()
   1121             return

 IndexError: list index out of range
 }}}

-- 
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/191>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list