Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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_count

ImportError: 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 (http://groups.google.com/group/sage- support/browse_thread/thread/1d33ecb0830a307c), but even when I open eclipse via

$ sage -sh 
$ eclipse &

I get the same error.

click to hide/show revision 2
corrected link formatting.

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_count

ImportError: 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 this post (http://groups.google.com/group/sage- support/browse_thread/thread/1d33ecb0830a307c), on the sage support google groups, but even when I open eclipse via

$ sage -sh 
$ eclipse &

I get the same error.