Question about MPI in SAGE

53 views
Skip to first unread message

Juan Grados

unread,
Oct 2, 2011, 1:21:00 AM10/2/11
to sage-s...@googlegroups.com
Hi everyone, 

I want use MPI, but when I put this line 

from mpi4py import MPI

I get this error


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_5.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("ZnJvbSBtcGk0cHkgaW1wb3J0IE1QSQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpaiSWnQ/___code___.py", line 2, in <module>
    exec compile(u'from mpi4py import MPI
  File "", line 1, in <module>
    
ImportError: /home/juaninf/Programas/sage/local/lib/python2.6/site-packages/mpi4py/MPI.so: undefined symbol: lt_dlexit


whats means lt_dlexit, Why this?
--
---------------------------------------------------------------------
Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica 
Tel: +55 24 2233-6260
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------

Volker Braun

unread,
Oct 2, 2011, 6:12:01 AM10/2/11
to sage-s...@googlegroups.com
I'd guess lt_dlexit is a symbol that libtool defines that has something to do with getting out of a dynamic library. Seems like the mpi4py package misses some linker flags. You should post some info about your setup (which mpi, os, versions...)

Juan Grados

unread,
Oct 2, 2011, 10:25:54 AM10/2/11
to sage-s...@googlegroups.com
My MPI version is 0.6, 
Ubuntu version Ubuntu 11.04
Sage version  4.7.1

2011/10/2 Volker Braun <vbrau...@gmail.com>
I'd guess lt_dlexit is a symbol that libtool defines that has something to do with getting out of a dynamic library. Seems like the mpi4py package misses some linker flags. You should post some info about your setup (which mpi, os, versions...)

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

Volker Braun

unread,
Oct 2, 2011, 12:08:23 PM10/2/11
to sage-s...@googlegroups.com
On Sunday, October 2, 2011 4:25:54 PM UTC+2, juaninf wrote:
My MPI version is 0.6, 

I guess thats not OpenMPI, then?


Juan Grados

unread,
Oct 2, 2011, 1:37:43 PM10/2/11
to sage-s...@googlegroups.com
My openmpi 

openmpi 1.4.1-3

2011/10/2 Volker Braun <vbrau...@gmail.com>
On Sunday, October 2, 2011 4:25:54 PM UTC+2, juaninf wrote:
My MPI version is 0.6, 

I guess thats not OpenMPI, then?

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

Juan Grados

unread,
Oct 3, 2011, 10:45:46 AM10/3/11
to sage-s...@googlegroups.com
...

2011/10/2 Juan Grados <jua...@gmail.com>

Juan Grados

unread,
Oct 5, 2011, 4:48:49 PM10/5/11
to sage-s...@googlegroups.com
I maked this thread  http://groups.google.com/group/mpi4py/browse_thread/thread/2e08c06f271c3069
now I get this error


ImportError: /home/juaninf/Escritorio/juaninf/Programas/sage/local/lib/python2.6/site-packages/mpi4py/MPI.so: undefined symbol: _PyByteArray_empty_string

2011/10/3 Juan Grados <jua...@gmail.com>

Juan Grados

unread,
Oct 10, 2011, 3:33:55 PM10/10/11
to sage-s...@googlegroups.com

please dont forget

2011/10/5 Juan Grados <jua...@gmail.com>

Maarten Derickx

unread,
Oct 16, 2011, 5:37:16 AM10/16/11
to sage-s...@googlegroups.com
Dear Juan Grados,

I don't think people have forgotten it, but merely not answering since you are asking in the wrong place. This is the sage mailinglist not the mpi4py one and the problems you are experiencing are problems with getting mpi4py working and not sage. 

Also your large amount of messages to this list lately might have started to annoy people here, at least it started to annoy me. A lot of the other questions you asked seemed quite trivial and might be answered by yourself if you just took the time to do a decent python tutorial and an additional sage tutorial. We are not here to solve all your every day problems and you should ask yourself two questions before you post to a mailing list. 1) Is the mailing list you mail to the right one 2) Did I really try and think hard enough to solve the problem myself.

Also when you show in your question in wich ways you already tried to solve the problem yourself people might be more inclined to help you since they see you already put a lot of effort in it.

Juan Grados

unread,
Oct 17, 2011, 12:18:33 PM10/17/11
to sage-s...@googlegroups.com
Dear Maarten
 
sorry

2011/10/16 Maarten Derickx <m.derick...@gmail.com>

--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to sage-support...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Reply all
Reply to author
Forward
0 new messages