I've been reading an old post Sage + Eclipse + PyDev
http://groups.google.com/group/sage-support/browse_thread/thread/ac94be0a91863467/07b0f8c43223321b?lnk=gst&q=eclipse#07b0f8c43223321b

Many moons later, I have the same problem. Some things change, some
stay the same. It still doesn't work running "sage -sh" or "source
local/bin/sage-env" from $SAGE_ROOT although one would expect it to.
As it is Eclipse that has the problem let's do it the Eclipse way.

0) First configure your interpeter in PyDev and point it at Sage's
python executable.
eg. /home/me/sage/sage-4.5.2/local/bin/python2.6 and just accept the
default Libraries and Forced Built-ins.

These days(Eclipse Ganymede) run configs are at Run > Run
Configurations.

1)  There is no Location field anymore. Hmmm. What exactly did that
used to mean?

2)  Arguments -python  #is this still necessary?
    Main Module field has ${workspace_loc:myproj/main.py} so that
looks like the "{container_loc}/My_MAIN_PYTHON_FILE.py" bit is taken
care of.

Does it work? No!

There are [Variables] buttons on the Arguments tab for Program
arguments, VM arguments and Working directory but these are for
Eclipse variables(eg. container_loc.) The last tab is the Envrionment
tab and this has two columns Variable and Value. This is where you can
set environment variables for the run configuration. But you can also
set env vars on a similar tab under configure interpreter.

Does it work? No!

I've got past line 32 of sage.all.py where it asks me to set SAGE_ROOT
and LD_LIBRARY_PATH but it appears there are other benefits beyond
this that "sage -sh" gives me but what these are and how to give them
to Eclipse, I don't know.

    from sage.all import *
  File "/home/bee/sage/sage-4.5.2/local/lib/python2.6/site-packages/
sage/all.py", line 56, in <module>
    from sage.rings.memory import pmem_malloc
ImportError: libcsage.so: cannot open shared object file: No such file
or directory

PS. I'm using a Sage binary install, not a compiled from source one.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to