Replies: 6 comments 1 reply
-
Interestingly the fragment above only works when both stdout and stderr are redirected.
annoyingly the results becomes:
(and of course using |
Beta Was this translation helpful? Give feedback.
-
A more cleaned up version, including a potential leak prevention caused by dup.
Anyhow, TL;DR dealing with this externally to pybullet is really painful, would be great if we did not have to? |
Beta Was this translation helpful? Give feedback.
-
Thanks, didn't realize anyone cares about the output messages. Some of the printfs go through a common C++ function, so it would be possible to clean up the code (and some people don't like the build time output etc). |
Beta Was this translation helpful? Give feedback.
-
I hope that pybullet can provide a parameter to control the output of these annoying messages as the outputs can be a mess while running with multiprocess. |
Beta Was this translation helpful? Give feedback.
-
@erwincoumans, is there any news about this feature? It is particularly bothering when using PyBullet with Joblib in Python, as the message is displayed for any new thread importing the library. |
Beta Was this translation helpful? Give feedback.
-
I have hacked this out within Kubric.
Please see the redirect magic therein:
google-research/kubric#96
…On Wed, Jun 9, 2021 at 5:23 AM Davide Tateo ***@***.***> wrote:
@erwincoumans <https://github.com/erwincoumans>, is there any news about
this feature? It is particularly bothering when using PyBullet with Joblib
in Python, as the message is displayed for any new thread importing the
library.
It would be nice if an environment variable could suppress this print.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCF4POQCRGQBY25WPUJWHTTR5MN3ANCNFSM46L5Z5AQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Would be great if pybullet would not (unconditionally) pollute the standard streams. Had to resort to this hack to silence the
pybullet build time: Oct 8 2020 00:10:46
that was sent to stdout uponimport pybullet as pb
This was the only solution that worked out of what listed here (with an extra fsync needed):
https://stackoverflow.com/questions/4178614/suppressing-output-of-module-calling-outside-library
https://stackoverflow.com/questions/42952623/stop-python-module-from-printing
https://stackoverflow.com/questions/5081657/how-do-i-prevent-a-c-shared-library-to-print-on-stdout-in-python/14797594#14797594
Would have been much nicer if the library would either
Beta Was this translation helpful? Give feedback.
All reactions