You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARMI has an import statement for mpi4py inside of a try statement in the context.py file. See code snippet below. If pytest is run with something that imports ARMI (directly or indirectly) and the user doesn't have ms-mpi installed then pytest outputs a huge wall of windows exception error text. See example below. The try statement functions correctly in that pytest test collection continues fine despite the dump of errors. An ipython call to the same import statement results in the ImportError that the try statement is handling and doesn't result in the same wall of error messages. Is it possible to suppress the pytest wall of errors by either adding something to the pytest call or by adding something to this line in ARMI? Or is the solution to just shut up and install ms-mpi?
but at some point, recently, on Windows, it has started spraying the STDERR messages hundreds of times into STDOUT.
The code doesn't halt, so it's not technically a "bug". But that's certainly hideous and unwanted.
For now, Alex, I would say "install MPI" is a solution. But, long term, we will need to find a Python way to catch that STDERR message if it exists, and suppress it.
ARMI has an import statement for
mpi4py
inside of a try statement in thecontext.py
file. See code snippet below. Ifpytest
is run with something that imports ARMI (directly or indirectly) and the user doesn't have ms-mpi installed then pytest outputs a huge wall of windows exception error text. See example below. The try statement functions correctly in that pytest test collection continues fine despite the dump of errors. Anipython
call to the same import statement results in theImportError
that the try statement is handling and doesn't result in the same wall of error messages. Is it possible to suppress the pytest wall of errors by either adding something to the pytest call or by adding something to this line in ARMI? Or is the solution to just shut up and install ms-mpi?Lines of code affected:
armi/armi/context.py
Lines 111 to 129 in 827d223
Example wall of text:
Example ipython import:
The text was updated successfully, but these errors were encountered: