-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError .. aka 'terminal encoding problem problem ' #1
Comments
Thanks your for that! You actually answered an issue that I was having in a PR that I had in |
no problem ...
i looked a little but did not find any obvious method .. |
I am not aware of how this can be done with shebangs. But this might work. Could you try adding this to the script? Sadly I can't reproduce this error but if it works I will add it to the script
|
thanks! https://stackoverflow.com/questions/30479607/explain-the-effects-of-export-lang-lc-ctype-lc-all i encountered the problem runing python-package-init.py with nix 2.1.2 unfortunatly now i can't reproduce the error in a new terminal =/ |
not rebooted yet but i can now produce the above error -#! nix-shell -i python3 -p python3 python36Packages.jinja2 python36Packages.setuptools
+#! nix-shell -i python3 -p python3 python36Packages.jinja2 python36Packages.setuptools --pure
- stdout = subprocess.check_output(['nix-prefetch-url', '--unpack', url], stderr=subprocess.STDOUT)
+ stdout = subprocess.check_output([[os.environ["HOME"]+'/.nix-profile/bin/nix-prefetch-url', '--unpack', url], stderr=subprocess.STDOUT) however now do not appear to make any diffrence 0.o i also tried adding '--argstr "LC_CTYPE" "en_US.UTF-8" ' to nix shell perhaps relevent? |
just ftr
adding the
export LC_CTYPE=en_US.UTF-8
sloution from : https://stackoverflow.com/a/49127686 ;]
to my env
fixes this "UnicodeDecodeError" !
The text was updated successfully, but these errors were encountered: