Skip to content
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

Issue with decoding/non-English terminal #34

Closed
tomaszgarbus opened this issue Apr 18, 2015 · 4 comments
Closed

Issue with decoding/non-English terminal #34

tomaszgarbus opened this issue Apr 18, 2015 · 4 comments

Comments

@tomaszgarbus
Copy link

I'll just leave it here

Traceback (most recent call last):
File "/usr/local/bin/thefuck", line 9, in
load_entry_point('thefuck==1.9', 'console_scripts', 'thefuck')()
File "/usr/local/lib/python2.7/dist-packages/thefuck/main.py", line 93, in main
matched_rule = get_matched_rule(command, rules, settings)
File "/usr/local/lib/python2.7/dist-packages/thefuck/main.py", line 69, in get_matched_rule
if rule.match(command, settings):
File "/usr/local/lib/python2.7/dist-packages/thefuck/utils.py", line 41, in wrapper
return fn(command, settings)
File "/usr/local/lib/python2.7/dist-packages/thefuck/rules/no_command.py", line 19, in match
output = _get_output(command, settings)
File "/usr/local/lib/python2.7/dist-packages/thefuck/rules/no_command.py", line 13, in _get_output
return result.stderr.read().decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 24: ordinal not in range(128)

@nvbn
Copy link
Owner

nvbn commented Apr 18, 2015

Is it repeats in 1.11+?

Probably fixed in #20.

@Sekhmet
Copy link

Sekhmet commented Apr 19, 2015

Just upgrade thefuck to newest version.
sudo pip install thefuck --upgrade

@marcusklaas
Copy link

The upgrade worked, but only after installing the python-dev package. I am on Ubuntu 14.04.

@nvbn
Copy link
Owner

nvbn commented Apr 21, 2015

Cool, info about python-dev already in readme.

@nvbn nvbn closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants