question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[1.46] UnicodeDecodeError on Windows 7

See original GitHub issue

See the stacktrace:

[~] cd Work/friends/simon                                                                   
cd:cd:13: no such file or directory: Work/friends/simon
[~] fuck  
Traceback (most recent call last):
  File "C:\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\thefuck.exe\__main__.py", line 9, in <module>
  File "C:\python27\lib\site-packages\thefuck\main.py", line 129, in main
    command = get_command(settings, sys.argv)
  File "C:\python27\lib\site-packages\thefuck\main.py", line 86, in get_command
    result.stderr.read().decode('utf-8'))
  File "C:\python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8a in position 15: invalid start byte

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
scorphuscommented, May 31, 2016

Hi, I’ll try and reproduce this error as soon as I get the chance. Thanks for reporting it. Em 31/05/2016 00:20, “Wensheng Tang” notifications@github.com escreveu:

I’ve also encounter this issue. The first time running this command will freeze forever.

P.S. Using latest Git for Windows 2.8.3

$ fuck Traceback (most recent call last): File “d:\python27\lib\runpy.py”, line 162, in run_module_as_main “main”, fname, loader, pkg_name) File “d:\python27\lib\runpy.py”, line 72, in run_code exec code in run_globals File "D:\Python27\Scripts\thefuck.exe__main.py", line 9, in <module> File “d:\python27\lib\site-packages\thefuck\main.py”, line 80, in main fix_command() File “d:\python27\lib\site-packages\thefuck\main.py”, line 26, in fix_command command = types.Command.from_raw_script(sys.argv[1:]) File “d:\python27\lib\site-packages\thefuck\types.py”, line 120, in from_raw_script stderr = result.stderr.read().decode(‘utf-8’) File “d:\python27\lib\encodings\utf_8.py”, line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xb2 in position 9: invalid start byte

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nvbn/thefuck/issues/254#issuecomment-222584108, or mute the thread https://github.com/notifications/unsubscribe/ACA8uRTitMDR4Q9VEsaa8zFzMTeViNMrks5qG6j0gaJpZM4FBQUu .

0reactions
scorphuscommented, Jul 29, 2021

Fixed in c2df71caed917ea659a72a393b105881ec0709df

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnicodeDecodeError in pickle.load - Stack Overflow
I'm using windows 7 and Python 3.5.1 64 bit. The pkl file was downloaded from here. This is my code: import pickle #...
Read more >
'utf-8' codec can't decode byte 0x89 in position 6: invalid start ...
UnicodeDecodeError : 'utf-8' codec can't decode byte 0x89 in position 6: invalid start byte ... (c) 2019 Microsoft Corporation。保留所有权利。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found