New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPI error #8447
Comments
Can you provide a minimal example that triggers this error? |
Yes, this error occours whan I try to open the .exe file previously created using the following file .spec:
The .exe file seems to be correctly generated in the "dist" folder but once I try to open it the above error occours.
|
I meant a minimal code example, so I can try reproducing the error. Because the basic And so does the basic |
ah ok sorry for the misunderstanding. Here a minimal example of the code, that gives the same error:
and the error:
|
Turns out I could not reproduce the error because I was using In the same directory as you have the .spec file, create a directory called # extra-hooks/hook-mpi4py.py
from PyInstaller.utils.hooks import get_installer, logger
binaries = []
if get_installer('mpi4py') == 'conda':
from PyInstaller.utils.hooks import conda
# conda-forge builds of `mpi4py` depend on `impi_rt`, from which we need to collect dynamically-loaded
# `Library/bin/libfabric/libfabric.dll`. The main conda channel builds depend on `msmpi`, which does not seem to
# require any extra collection steps.
try:
impi_rt_files = conda.files('impi_rt')
except ImportError:
pass
for impi_rt_file in impi_rt_files:
if impi_rt_file.name != 'libfabric.dll':
continue
impi_rt_file = impi_rt_file.locate()
logger.info("hook-mpi4py: collecting %r", str(impi_rt_file))
binaries += [(str(impi_rt_file), '.')] In spec file, add the (relative) path to this
And try to rebuild using the modified spec file (preferably with added After the rebuild, you should see |
wow, it seems to be working correctly on a quick test. Thank you very much!!!!! |
I have created a very complex application in python using many libraries. Now, I am trying to freeze it with pyinstaller but I get two errors. The first with gdal, but I don't think is too important, while the second with MPI makes all the process abort, when I try to open my .exe file. The error are the following:
"Microsoft Windows [Versione 10.0.18362.959]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.
C:\Users\miche>cd C:\Users\miche\PycharmProjects\pythonProjectMichele\dist\SOLO_GIS
C:\Users\miche\PycharmProjects\pythonProjectMichele\dist\SOLO_GIS>SOLO_GIS.exe
pyogrio\core.py:23: RuntimeWarning: Could not detect GDAL data files. Set GDAL_DATA environment variable to the correct path.
Abort(1090191) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init_thread: Unknown error class, error stack:
MPIR_Init_thread(189)........:
MPID_Init(1561)..............:
MPIDI_OFI_mpi_init_hook(1546):
(unknown)(): Unknown error class
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1090191
:
system msg for write_line failure : No error
Abort(1090191) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init_thread: Unknown error class, error stack:
MPIR_Init_thread(189)........:
MPID_Init(1561)..............:
MPIDI_OFI_mpi_init_hook(1546):
(unknown)(): Unknown error class
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1090191
:
system msg for write_line failure : No error"
I just want to add some information, I think this error is due to anuga library and the mpi sub library. Anuga is a hydraulic library who uses the mpi multiptocessing capability in order to speed up the computational burden.
Thank you very much in advance for any kind of help and support. Best regards, Michele Zucchelli.
The text was updated successfully, but these errors were encountered: