Bug 1272727

Summary: Missing file
Product: [Fedora] Fedora Reporter: Stefan Seefeld <stefan>
Component: mpi4pyAssignee: Thomas Spura <tomspur>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dalcinl, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 18:15:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Seefeld 2015-10-18 04:13:15 UTC
I just installed the mpi4py-openmpi package to use mpi4py (using OpenMPI as backend) in Python. It isn't entirely clear how I'm supposed to use that module.
I'd expected to be able to just use 'python -c "import mpi4py"', but that doesn't work as there is no 'mpi4py' module. Rather, the package installs what looks like 'openmpi.mpi4py'. However, 'python -c "import openmpi.mpi4py"' doesn't work either, because the 'openmpi' directory within my Python module tree doesn't contain a __init__.py file. If I add that file (empty), I'm at least able to run 'python -c "import openmpi.mpi4py"', though I still am not sure what to do with it. Shouldn't there be a toplevel 'mpi4py' module that then dispatches to a suitable backend (such as openmpi or mpich2) depending on which of the backends is installed ?

Thanks for your help.

Comment 1 Thomas Spura 2016-04-19 11:39:05 UTC
You need to load the openmpi 'module' first.

Could you try to load e.g. "mpi/openmpi" within the shell, you are using?

Comment 2 Fedora End Of Life 2016-07-19 18:15:39 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.