Traceback (most recent call last):
File "/home/ciro/bin/adb-sync", line 774, in <module>
main(*sys.argv)
File "/home/ciro/bin/adb-sync", line 695, in main
localpatterns = [x.encode(args_encoding) for x in args.source]
TypeError: encode() argument 1 must be string, not None
This happens because locale.getdefaultlocale()[1] is None.
Workaround: patch it with:
args_encoding = locale.getdefaultlocale()[1] or 'utf-8'
but I'm not sure this is correct. But it worked for me.
outcome:
This happens because
locale.getdefaultlocale()[1]
isNone
.Workaround: patch it with:
but I'm not sure this is correct. But it worked for me.
Same also happens on a minimal
test.py
:env is: