
On 09/05/2017 12:13 PM, Abhilash Raj wrote:
I did just a quick search and read about issues related to Click and init scripts. See below.
Thank you Abhilash. I had started looking through the click docs, but hadn't found the relevant stuff yet.
...
The biggest source of frustration is that Click scripts invoked by init systems (sysvinit, upstart, systemd, etc.), deployment tools (salt, puppet), or cron jobs (cron) will refuse to work unless a Unicode locale is exported.
(Thank you!)*10. All it needed was the addition of
export LANG=en_US.UTF-8
to the init.d script. It now works.
It does mention that an error trace will show up when there are locale problems with Python 3, but I guess you don't see any of that. Maybe it is suppressed somewhere?
I never saw it and I just grepped all the logs, and it's not there.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan