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
import h5py spits out OpenMPI messages to stderr #1433
Comments
I don't think we can do anything about that message. h5py does not have any direct dependency on OpenFabrics and to my knowledge we don't provide wheels that are linked against it. I don't think h5py is directly triggering anything related to MPI based on that code path (the only place we import If we did capture and suppress warning messages from the underlying libraries, I suspect we would get a slew of bug reports complaining that we did so and hence hid critical debugging messages from them. Sorry to give you the run-around, but I think this has to go back to debian unless you can reproduce this in a clean enviroment using the wheels we publish to pypi. I suspect that you will have to talk to the packagers of libhdf5 and/or openib. I am inclined to close this with no action, but will wait for additional input. Related, if we change the format of the version string is that going to cause problems for you? |
Ok, thank you for confirming that. Do you have suggestions on how we can confirm where the issue is coming from? But to be clear, are you sure that it doesn't have anything to do with how h5py is using libhdf5?
Yes, I agree it's tricky. But it sounds like it's really an issue with libhdf5, so it should be dealt with there.
Are you asking about problems with the debian packaging? I think it depends on how crazy you make it. Semantic versioning is certainly the easiest to deal with. |
I missed one other mpi4py import in The more I think about this, the more I think that this is fundamentally a packaging problem and debian should not be packaging h5py with MPI enabled by default.
I am not an openMPI expert so can not be completely sure, but given that we do not have any code that actively does any mpi setup, I am reasonably confident that there is nothing we can easily do from the h5py side of things. I mean are you parsing the output of |
Hrm ok. How is the enabling of MPI controlled in h5py? I would like to bring a concrete suggestion of how to change the packaging to the debian package maintainers.
No, I only included the output of that command because this gitlab issue tracker asked for it, and it happened to also illustrate the problem ;) |
https://h5py.readthedocs.io/en/stable/mpi.html is the canonical docs on h5py + mpi4py . In short, it requires explicitly asking for the parallel versions at compile time. |
Closing as there's nothing for h5py to fix. We can reopen this if we figure out there is something, but for now I agree with @tacaswell - this is coming from some other code, and it's not a good idea for us to try to redirect |
The latest version of h5py is very annoying spitting out messages to stderr on import:
It's really not ok for python libraries to be writing to stderr or stdout on import, other than for deprecation warnings. This definitely disrupts it's usage in command line utilities.
It looks like something coming from somewhere below the python layer, but either way it should not be exposed to the users of the python layer. The message also does not really explain how to get rid of it.
This is on Debian unstable, and the issue has been reported to the debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944192
Thanks!
The text was updated successfully, but these errors were encountered: