Using Pydev (eclipse) and Sage?
Hi,
I've been googling around to find a way to set up pydev and sage, and have had nothing but the worst of luck.
sage 4.7 is located in /home/steven/sage-4.7, and I've created a "sage_python" python interpreter who's location is "/home/steven/sage-4.7/local/bin/python".
I've set the following environment variables:
SAGE_ROOT = /home/steven/sage-4.7
LD_LIBRARY_PATH = $SAGE_ROOT/local/lib
Now, when I run the following script (test.py):
#!/usr/bin/env sage -python
import sys
from sage.all import *
print 2
When I run the script with sage_python as the interpreter I get the following error:
Traceback (most recent call last):
File "/home/steven/code/whateva/test.py", line 4, in <module> from sage.all import *
File "/home/steven/sage-4.7/local/lib/python2.6/site-packages/sage/ all.py", line 70, in <module> from sage.ext.c_lib import _init_csage, sig_on_countImportError: libcsage.so: cannot open shared object file: No such file or directorydirectory
Can anyone help me out with this?
Thanks,
Steven
p.s. I've noticed this post on the sage support google groups, but even when I open eclipse via
$ sage -sh
$ eclipse &
I get the same error.
Hello, could you please post how you "run the script with sage_python as the interpreter". I'm working on the same problem, but with eclipse 3.7.0 and Pydev 2.2.1 it does not even let me set sage-4.6.2 as the interpreter, as "sage -u" does not give the desired result.
Just type "sage -python" in your terminal, and it will open up the sage_python interpreter.