When I use sage from the command line I get the following error message:
sage: integral(x,x)
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/home/oscar/sage-4.5.2/local/bin/sage-cleaner", line 21, in
<module>
import os, shutil, sys, time, socket
File "/home/oscar/sage-4.5.2/local/lib/python/os.py", line 49, in
<module>
import posixpath as path
File "/home/oscar/sage-4.5.2/local/lib/python/posixpath.py", line 14,
in <module>
import stat
File "stat.py", line 2, in <module>
from sage.all_cmdline import * # import sage library
ImportError: No module named sage.all_cmdline
1/2*x^2
But as you can see, sage returns the correct answer. If I start sage
from ~/sage-4.5.2 I don't get the error message:
sage: integral(x,x)
1/2*x^2
I think that this might be related to the way in which I added
~/sage-4.5.2 to my PATH: I put the following line at the end of my
~/.bashrc file (Ubuntu 10.04):
export PATH=$PATH:/home/oscar/sage-4.5.2
I also think this is Maxima-related, since it appears to happen only
when calling Maxima (It does not happen anymore once Maxima has been
started). I've had this error since sage 3.x but I thought I was making
some no0bish mistake (which might still be the case).
thanks!
Oscar
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org