[IPython-user] AttributeError when using run command
Jesus Aguillon
jesus@aguillon....
Mon May 21 01:32:58 CDT 2007
On 5/20/07, Jesus Aguillon <jesus@aguillon.com> wrote:
>
> When I type run filename.py in IPython I get the exception below. It
> actually does run my python script, it's just that I am not sure what this
> means. I am running Python 2.5.1, Ipython 0.8.1 on Windows XP.
After installing the version of pyreadline from subversion (thanks to Jerry
McRae for the information on the latest version), this problem seems to be
resolved. I no longer see the exception occurring.
Thank you,
>
>
> Output of the run command -
> ==========================
>
> ---------------------------------------------------------------------------
> <type 'exceptions.AttributeError'> Traceback (most recent call
> last)
>
> C:\python\artbeat\<ipython console> in <module>()
>
> C:\Python25\Lib\site-packages\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):
>
> C:\Python25\Lib\site-packages\IPython\Magic.py in magic_run(self,
> parameter_s, r
> unner)
> 1679 if restore_main:
> 1680 sys.modules['__main__'] = restore_main
> -> 1681 self.shell.reloadhist()
> 1682
> 1683 return stats
>
> C:\Python25\Lib\site-packages\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
>
> <type 'exceptions.AttributeError '>: 'module' object has no attribute
> 'clear_history'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20070520/233218a7/attachment-0001.html
More information about the IPython-user
mailing list