MPI.File.Open error (src/mpi4py.MPI.c:89639)

140 views
Skip to first unread message

MPI4py_Learner

unread,
Sep 6, 2013, 1:46:49 AM9/6/13
to mpi...@googlegroups.com
Hello,

I am currently learning MPI programmming with mpi4py Python package. I was trying to write simple script that involves file opening, reading, and writing. As a starter, I implemented MPI.File.Open() Method to read a file with the following codes: 

------------------------------------------------------------------------
from mpi4py import MPI

comm = MPI.COMM_WORLD
file = '/path/usr/test.txt'
myfile=MPI.File.Open(comm,file,amode=MPI.MODE_RDONLY)

myfile.Close()
------------------------------------------------------------------------------------------------------------


When running the code with with mpiexec , the following error messages was displayed: 

------------------------------------------------------------------------
 mpi_file_read=MPI.File.Open(comm,file,amode=MPI.MODE_RDONLY)
  File "File.pyx", line 67, in mpi4py.MPI.File.Open (src/mpi4py.MPI.c:89639)
mpi4py.MPI.Exception: MPI_ERR_OTHER: known error not in list
------------------------------------------------------------------------

Can anyone help me figure out what was the issue ? 


Thank you very much. 

Aron Ahmadia

unread,
Sep 6, 2013, 10:28:38 AM9/6/13
to mpi...@googlegroups.com
Almost certainly either a path or a permissions issue.  Are you sure the file exists and you have permission to open it?

A


--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpi4py+un...@googlegroups.com.
To post to this group, send email to mpi...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpi4py.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/719d58b9-e5a8-4157-b6de-59e4b9a783a8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages