[IPython-user] AttributeError: 'module' object has no attribute 'clear_history'?

Peter J. Bismuti peter.j.bismuti@boeing....
Fri Mar 7 17:55:42 CST 2008


Hi, I'm sure this has been answered before, but I've only found for Windows, 
I'm on Linux.  What must I do to fix this?  

Thanks in advance.

bash-3.00$ uname -a
Linux skagit.ca.boeing.com 2.6.9-67.0.1.ELsmp #1 SMP Fri Nov 30 11:57:43 EST 
2007 x86_64 x86_64 x86_64 GNU/Linux
bash-3.00$ python
Python 2.3.4 (#1, Nov 20 2007, 15:12:42)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2


---------------------------------------------------------------------------
exceptions.AttributeError                            Traceback (most recent 
call last)

/acct/pjb9508/SLUGG/Dev/<ipython console>

/acct/pjb9508/Python/local/lib/python/IPython/iplib.py in ipmagic(self, arg_s)
    962         else:
    963             magic_args = self.var_expand(magic_args,1)
--> 964             return fn(magic_args)
    965
    966     def ipalias(self,arg_s):

/acct/pjb9508/Python/local/lib/python/IPython/Magic.py in magic_run(self, 
parameter_s, runner)
   1679             if restore_main:
   1680                 sys.modules['__main__'] = restore_main
-> 1681             self.shell.reloadhist()
   1682
   1683         return stats

/acct/pjb9508/Python/local/lib/python/IPython/iplib.py in reloadhist(self)
   1262
   1263         if self.has_readline:
-> 1264             self.readline.clear_history()
   1265             self.readline.read_history_file(self.shell.histfile)
   1266

AttributeError: 'module' object has no attribute 'clear_history'

-- 


Peter Bismuti
Boeing Information Technology
Renton, WA
(425) 234-0873 W
(425) 442-7775 C


More information about the IPython-user mailing list