<div dir="ltr"><br><br>On Wed, Sep 5, 2018 at 10:43 AM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>><br>> Hi,<br>><br>> AFAIK Python buffers (i.e. effectively delays)  stderr output which is<br>> unhelpful in the GRASS GIS context.<br>><br>> Searching for a solution, I found this reference: sys.stdout.flush()<br>> e.g.<br><div>> <a href="https://stackoverflow.com/questions/10019456/usage-of-sys-stdout-flush-method">https://stackoverflow.com/questions/10019456/usage-of-sys-stdout-flush-method</a></div><div><br></div><div>That should be</div><div>sys.stderr.flush()</div><div>right?</div><div><br></div>Regarding python's multiprocessing, it makes sense that stderr is suppressed because you would not know which process process produced which stderr (or stdout) message. There must be a method in python to redirect stderr and stdout for each process to a unique file, otherwise it would not be possible to find out why some process failed.<br><div><br></div><div>Such a method would need to be implemented in each module usings python's multiprocessing.</div><div><br></div><div>Markus M</div><br></div>