#5 DaemonRunner.py fails on python 3.x systems (unbuffered text i/o)
Closed: Duplicate by bignose. Opened by ryanhunt.

Installed 2.12 python-daemon on both MacOS (using pip3 install) for python 3.6.0 as well as on Linux (also using pip3 install) for 3.4.2

Both systems fail when trying to write to stderr with this error:

Traceback (most recent call last): File "pdaemon-sample.py", line 143, in <module> daemon_runner = MyDaemonRunner(app) File "pdaemon-sample.py", line 60, in __init__ runner.DaemonRunner.__init__(self, app) File "/usr/local/lib/python3.4/dist-packages/daemon/runner.py", line 120, in __init__ app.stderr_path, 'w+t', buffering=0) ValueError: can't have unbuffered text I/O

It seems others have solved this in the forked version of this library diff required to fix here.

I don't understand why it hasn't been fixed in this version.


Thanks for the report. I see that there is a test case to reproduce this in issue #8, "ValueError: can't have unbuffered text I/O" in Python 3.6.

I will close this report to continue the discussion over at issue #8.

Metadata Update from @bignose:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

Metadata