I've been having the same problem with crontab, the nub being:
File "<string>", line 356, in main
File "<string>", line 192, in prints
TypeError: encode() argument 1 must be string, not None
If after:
enc = getattr(f, 'encoding', 'utf-8')
I add:
if enc == None:
enc = "utf-8"
then all is well.
Presumeably this means that the stdout/stdout.buffer is defining an 'encoding' attribute, but it's set to None?
|