[IPython-user] AttributeError when using run command
Jesus Aguillon
jesus@aguillon....
Sun May 20 22:48:46 CDT 2007
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.
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/638264be/attachment.html
More information about the IPython-user
mailing list