[IPython-user] Slight Problem: Re: Test results (good?)

Fernando Perez fperez.net@gmail....
Thu Apr 26 16:13:36 CDT 2007


On 4/26/07, Ryan Krauss <ryanlists@gmail.com> wrote:

> On 4/26/07, Ryan Krauss <ryanlists@gmail.com> wrote:
> > Actually, even when it runs with no apparent errors in my script, I am getting:
> >
> > In [4]: run bicycle.py
> > ---------------------------------------------------------------------------
> > exceptions.AttributeError                            Traceback (most recent call
> >  last)
> >
> > E:\siue\AdvDynamics\chapter5\<ipython console>
> >
> > C:\Python24\Lib\site-packages\IPython\iplib.py in ipmagic(self, arg_s)
> >     955         else:
> >     956             magic_args = self.var_expand(magic_args,1)
> > --> 957             return fn(magic_args)
> >     958
> >     959     def ipalias(self,arg_s):
> >
> > C:\Python24\Lib\site-packages\IPython\Shell.py in magic_run(self, parameter_s)
> >     544
> >     545     def magic_run(self,parameter_s=''):
> > --> 546         Magic.magic_run(self,parameter_s,runner=self.mplot_exec)
> >     547
> >     548     # Fix the docstring so users see the original as well
> >
> > C:\Python24\Lib\site-packages\IPython\Magic.py in magic_run(self, parameter_s, r
> > unner)
> >    1674             if restore_main:
> >    1675                 sys.modules['__main__'] = restore_main
> > -> 1676             self.shell.reloadhist()
> >    1677
> >    1678         return stats
> >
> > C:\Python24\Lib\site-packages\IPython\iplib.py in reloadhist(self)
> >    1255
> >    1256         if self.has_readline:
> > -> 1257             self.readline.clear_history()
> >    1258             self.readline.read_history_file(self.shell.histfile)
> >    1259
> >
> > AttributeError: 'module' object has no attribute 'clear_history'

Do you have the latest pyreadline installed?  Grab this and let us
know how it goes, if you have anything older:

http://ipython.scipy.org/dist/testing/pyreadline-1.4.3.rc1.win32.exe

regards,

f


More information about the IPython-user mailing list