Closed ghost closed 3 years ago
It seems the issue came from some changes to Python (Source: https://bugs.python.org/issue32236). What I did was downgrade to Python 3.7.9 first, reinstall mps-youtube and its dependencies, and the issue went away. It was replaced by this issue though (https://github.com/mps-youtube/mps-youtube/issues/1113). Fortunately, the fix was also discussed there, which is essentially downgrading from MPV v0.32 to MPV v0.31. After doing these steps, mps-youtube was now working. I don't know if the Python downgrade had any to do with the second issue I encountered, but I put it out here just in case you run into the same issues that I did. Hope this helps.
Can't we just remove the buffering attribute ? As said in the source you've sended : «In binary mode, setting buffering to 1 is silently ignored and equivalent to using default buffer size.» in the previous versions. The only difference is that now it throw a warning. If we let the default value (removing buffering=1) it should work as usually.
Confirmed by changing the two instances of "bufsize=1" in player.py to "bufsize=0" as a quick hack that the error goes away and songs play through to the end instead of getting cut off too soon.
It effectively works for me.
Maybe gonna do a pull request, since it seems that a lot of people have this issue.
Issue
When launching a song I get this error :
I already applied patch for other bug like in #1128 and in #1086 and have a personal API key.
Environment
My
mpsyt --version
output:As the bug doesn't prevent me from using the application (the functions I use are not broken) mpsy is usable, but I don't know if it can be annoying on a longer term or for others.