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.

'utf-8' codec can't decode byte 0xdd in position 55: invalid continuation byte

See original GitHub issue

Hello,

i try to run but come across error output

❯ miniplayer
Traceback (most recent call last):
  File "/home/ahloi/.local/bin/miniplayer", line 455, in loop
    self.handleKeypress()
  File "/home/ahloi/.local/bin/miniplayer", line 263, in handleKeypress
    if self.checkSongUpdate() == 1:
  File "/home/ahloi/.local/bin/miniplayer", line 220, in checkSongUpdate
    song = self.client.currentsong()
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 435, in mpd_command
    return wrapper(self, name, args, callback)
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 498, in _execute
    return retval()
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 420, in command_callback
    res = function(self, self._read_lines())
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 360, in _parse_object
    objs = list(self._parse_objects(lines))
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 206, in _parse_objects
    for key, value in self._parse_pairs(lines)
:
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 201, in _parse_pairs
    for line in lines:
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 552, in _read_lines
    line = self._read_line()
  File "/usr/lib/python3.9/site-packages/mpd/base.py", line 534, in _read_line
    line = self._rbfile.readline().decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdd in position 55: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ahloi/.local/bin/miniplayer", line 487, in <module>
    player.loop()
  File "/home/ahloi/.local/bin/miniplayer", line 482, in loop
    if error:
UnboundLocalError: local variable 'error' referenced before assignment
~
❯ 

this happened both build install (miniplayer-git on arch repo and PyPi) any help is appreciated, thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ahloiscreamocommented, Jan 31, 2021

Hey it finally works!

finally

Thanks for taking your time and helping out, i appreciate it! THANK YOU !!! i hope the projects reach to many people, i don’t know why mod remove it on reddit.

I will close the issue.

0reactions
ahloiscreamocommented, Jan 31, 2021

i see, ok i’ll be back in a second

Read more comments on GitHub >

github_iconTop Results From Across the Web

'utf-8' codec can't decode byte - Stack Overflow
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 183: invalid continuation byte. So this is how I fixed it.
Read more >
UnicodeDecodeError: 'utf-8' codec can't decode byte in ...
The Python "UnicodeDecodeError: 'utf-8' codec can't decode byte in position: invalid continuation byte" occurs when we specify an incorrect encoding when ...
Read more >
`UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 ...
Encoding error : UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2: invalid continuation byte #976.
Read more >
UnicodeDecodeError: 'utf-8' codec can't decode byte [...] in ...
In this blog post, we're solving UnicodeDecodeError: 'utf-8' codec can't decode byte […] in position […]: invalid continuation byte. Important, ...
Read more >
How to resolve a UnicodeDecodeError for a CSV file
_string_box_utf8() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 1: invalid continuation byte During handling of the above exception, ...
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