[IPython-dev] NameError: global name 'error' is not defined

Johann Cohen-Tanugi cohen at slac.stanford.edu
Tue Jun 3 10:44:38 EDT 2008


[cohen at jarrett GRBOD]$ ipython
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.4 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: %store -d
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)

/home/cohen/data1/WORK/GRBOD/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/IPython/iplib.pyc in ipmagic(self, arg_s)
    958         else:
    959             magic_args = self.var_expand(magic_args,1)
--> 960             return fn(magic_args)
    961
    962     def ipalias(self,arg_s):

/usr/lib/python2.5/site-packages/IPython/Extensions/pspersistence.pyc in 
magic_store(self, parameter_s)
     97             todel = args[0]
     98         except IndexError:
---> 99             error('You must provide the variable to forget')
    100         else:
    101             try:

NameError: global name 'error' is not defined


I know I forgot the argument (I should have seen the message 'You must 
provide the variable to forget' right ;) ? ), but still.....
best,
Johann



More information about the IPython-dev mailing list