Hello,

I added this step to my charm:

subprocess.check_call(['pip', 'install', 'rainbowstream'])

But it fails with: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2
in position 393: ordinal not in range(128)
http://paste.ubuntu.com/23510046/

My guess is that the locale is not set to utf-8. But I've tried things like
these and it still fails:

subprocess.check_call('export LANG=en_US.UTF-8', shell=True)
subprocess.check_call('export LANGUAGE=en_US.UTF-8', shell=True)
subprocess.check_call('export LC_ALL=en_US.UTF-8', shell=True)
subprocess.check_call(['locale-gen', 'en_US.UTF-8'])
subprocess.check_call(['dpkg-reconfigure', 'locales'])

any idea what I'm missing?

thank you.
-- 
¡paz y baile!
http://www.ubuntu.com
-- 
Juju mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to