-
Notifications
You must be signed in to change notification settings - Fork 119
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 in python-mpd2 (on Windows 10) #93
Comments
Do you have the same problem when using master instead of 0.5.5? |
You can also test 1.0.0 instead, that was added some days ago. |
Is the bug similar to what you have been discovered before for files? #49 |
Yes. After i pip install --upgrade python-mpd2==1.0.0 The problem remain :( |
I will try to learn wireshark tool usage. Thank you. |
I guess it might be the same issue. |
New found: After i move away a folder(which contains 825 files) from music_directory to a place outside, the above problem disappeared. So it should be caused by some special characters/encoding in the artist meta info. |
I also report this issue to MPD repo. |
@handsomegui you should provide MPD more specific information, what files causes an error. |
@Mic92 Thanks for the hint. I have a lot of files under the music_directory. I try to print out the unable decoded string It shows the error decoded artist info as below:_
Could someone help me to find out the file which caused the error? |
You can track this down using: def decode_str(s):
try:
return s.decode("utf-8")
except Exception as e:
import pdb; pdb.set_trace() then you can print |
@Mic92 Thank you very much. Here below is what i got:
Any useful info for debug? |
|
Sorry for my poor knowledge on this. Here is what i get:
|
Can you print the following? print([ c for c in s]) And post the result also upstream. |
Maybe also share the file with upstream. |
Thanks @Mic92 Here is the output:
Sorry. I still have no clue to find out the specific file :( |
Unfortunately, the upstream admin closed my issue report. |
well, just install wireshark. |
FYI. I finally picked out the file which caused the UTF-8 decoding error: https://www.dropbox.com/s/f72ti62v7op6biu/KPSU.mp3?dl=0 I've reported this to MPD issues list also. |
Hi, i found a strange problem, here below is the info:
OS: Windows 10 Pro
MPD: 0.20.16 https://www.musicpd.org/download/win32/0.20.16/mpd.exe
python: 2.7.14 64bit
python-mpd2: 0.5.5
Any help is warmly appreciated.
The text was updated successfully, but these errors were encountered: