On 5/8/07, Brian Harris <[EMAIL PROTECTED]> wrote: > > This happens when loading any file, ideas on why? > > [EMAIL PROTECTED]:~/Desktop/sage-2.5-linux_32bit-debian-i686-Linux > $ ./sage > ---------------------------------------------------------------------- > | SAGE Version 2.5, Release Date: 2007-05-08 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > > sage: load examples/calculus/newton_raphson.sage > --------------------------------------------------------------------------- > <type 'exceptions.AttributeError'> Traceback (most recent call > last) > > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/<ipython > console> in <module>() > > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/ > lib/python2.5/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): > > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/ > lib/python2.5/site-packages/IPython/Magic.py in magic_run(self, > parameter_s, runner) > 1674 if restore_main: > 1675 sys.modules['__main__'] = restore_main > -> 1676 self.shell.reloadhist() > 1677 > 1678 return stats > > /home/brharris/Desktop/sage-2.5-linux_32bit-debian-i686-Linux/local/ > lib/python2.5/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 > > <type 'exceptions.AttributeError'>: 'module' object has no attribute > 'clear_history' >
Hmm. I did fix this for sage-2.5 (and you were right -- the break involved upgrading ipython). In my sage-2.5 it works fine: [EMAIL PROTECTED]:~/sage-bdist$ ./sage ---------------------------------------------------------------------- | SAGE Version 2.5, Release Date: 2007-05-08 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: load example.sage This is a simple SAGE example script. 9765625 5 * 401 [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] [(0 : 0 : 1)] 37 The following should be true: True What happens if you put quotes around the file name in your case? Maybe that would be a reasonable work-around. That said, please type "version()" from the SAGE prompt to confirm that your sage library code is at version 2.5. If you upgraded maybe there was a failure. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---