Closed NAnand-TUD closed 1 year ago
Hi Nitish,
I suspect you might be encountering something similar to what has been discussed here. One of the dependencies imports mpi4py
and that might be causing issues in your environment. Do you experience this issue any time you use Popen
or specifically when you call mpirun
?
Hi Marco,
Thanks for your swift response. I made some checks and indeed the issue was with mpi.
Unfortunately the option PYOPTSPARSE_REQUIRE_MPI=NO
did not work for me. I have no clue why. However, I explicitly installed mpi4py and now pyoptsparse works with Popen, though it shows a small waning.
I can use Pyoptsparse now and can continue with my optimization.
Thanks again for your help.
Cheers, Nitish
Good to know you found a workaround @NAnand-TUD! Do you mind sharing the warning here for future reference?
Definitely, that is the least I can do for your help.
UserWarning: mpi4py could not be imported. mpi4py is required to use the parallel gradient analysis and parallel objective analysis for non-gradient based optimizers. Continuing using a dummy MPI module from pyOptSparse.
Description
I installed pyoptsparse using the build_pyoptsparse repo on openMDAO git page. The import and everything is working fine, however, it seems that pyoptsparse has some interference with the subprocess package.
Steps to reproduce issue
So Running
I get the SU2 running.
However with the one below,
Perhaps anyone in the community has faced a similar problem? Or has knowledge of possible interference?
Thanks Nitish