Closed amoskyler closed 7 years ago
As per PEP 0263 we should have an # -*- coding: utf-8 -*-
at the top of each python file to enforce UTF-8. Would you mind trying that first (and removing your fix)?
This is actully missing from upstream, and was an oversight on my part altho I'm not seeing this issue in my local builds.
You are absolutely correct - per my test (I only tested daemon.py
) removing the explicit encoding parameter and replacing it with a file comment at the top allowed the daemon to started correctly from systemctl
.
Thanks 😄
After googling around a bit it seems the errors I've experienced relate to the python library reading some invalid characters - manually specifying the encoding of the file in the daemon.py alleviates the issue - I'm not sure what specifically about running it in a service caused it to break.