Hi,

I'm trying to use library Csdp <https://projects.coin-or.org/Csdp/> in Sage 
by means of Python numpy wrapper for CSDP called pycsdp (by B. 
Kern)<http://ifatwww.et.uni-magdeburg.de/syst/about_us/people/kern/index.shtml>.
 


I was assuming that it'll be easy, as one can generally run python scripts 
from sage.

So I installed Csdp library (built against ATLAS library for linear 
algebra), and installed the above said wrapper -- which is done in a 
standard python way by 
python setup.py install
 -- and it works. But only as a "stand-alone python script".

So, next to get it running in sage: I installed it for the sage-python by
sage -python setup.py install.

Now when I run a python script that works in standalone python,
I get an import error -- undefined symbol.

  Traceback (most recent call last):
    File "example2.py", line 4, in <module>
      from pycsdp import _csdp
  ImportError: 
/data/local/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/pycsdp/_csdp.so:
 
  undefined symbol: dnrm2_

I also found that the undefined symbol dnrm2_ is defined by the Csdp 
library, that I'd like to use. However, the setup.py script has the address 
of the library in it and it puts it where needed when installed by the 
"normal" python.

What should I do differently, to get this to work in sage? Could the ATLAS 
library I used to build Csdp be interfering with some standard sage 
libraries? (lapack etc.) 

Is there some different way to call python programs from sage, that 
wouldn't need to go through this?

Any ideas are appreciated, thanks for reading this,

                                               Robert Samal


P.S. I'm using
Sage Version 4.8, Release Date: 2012-01-20
with Debian/Wheezy


-- 
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

Reply via email to