An always-on task that's been running continuously for 3+ years has been dead for the last day.
When I check the logfile, I see endless:
Jan 18 07:43:19 Could not find platform independent libraries <prefix>
Jan 18 07:43:19 Could not find platform dependent libraries <exec_prefix>
Jan 18 07:43:19 Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Jan 18 07:43:19 Fatal Python error: Py_Initialize: Unable to get the locale encoding
Jan 18 07:43:19 ModuleNotFoundError: No module named 'encodings'
Jan 18 07:43:19 Current thread 0x00007fa8b539e740 (most recent call first):
Jan 18 07:43:19 bash: line 1: 7 Aborted (core dumped) bash -l -c '/home/straits/.virtualenvs/modern2019/bin/python /home/straits/sgth_bot/sbot.py'
When I try to launch sbot.py from console, I get similar error:
/home/straits/.virtualenvs/modern2019/bin/python /home/straits/strength_bot/sbot.py
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f1bc2e6e740 (most recent call first):
Aborted