You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to fix it
As far as I understand, the only purpose of THE line is to prevent intro pygame information to be printed in the stdout. If so, changing the environment variable 'PYGAME_HIDE_SUPPORT_PROMPT' to "hide" might be enough.
The text was updated successfully, but these errors were encountered:
dioraman
added a commit
to dioraman/smd
that referenced
this issue
Jul 8, 2020
I was about to post this very issue, after debugging and crawling backwards through the codebase for about an hour or two. It'll have been a year in two weeks from now since this issue was posted, yet no fix. Seems to be a well built project, yet they've ignored this. I'm on debian 10, buster, and I wonder if this has just not been a common issue for others. I've corrected it in my local version. I doubt we'll see any updates to the original repo as it's been a good two years since the last commit (disregarding the README commit). Hope they fix this, seems like a lot of people have tried and failed to use this due to the error.
Hi all!
TL;DR
sys.stdout
set toNone
prevents ffmpeg download and causes a lot of troubles, e.g. here #3 #8 #13 #17 #23 #40 #49 #62 #66 .Longform
This line (later referred as THE line):
smd/youtube.py
Line 15 in dba1b59
sets
sys.stdout
toNone
, raising conflicts withmoviepy
/imageio
.imageio
indeed usesstdout
for the downloading progress. Indeed, anAttributeError
is raised here:https://github.com/imageio/imageio/blob/23cdcf5e62aceb1a32ee37e529eb731612b98298/imageio/core/fetching.py#L168
as follows (
imageio/core/util.py, line 407, in _start
):AttributeError: 'NoneType' object has no attribute 'write'
User cannot read the error since this:
https://github.com/imageio/imageio/blob/23cdcf5e62aceb1a32ee37e529eb731612b98298/imageio/core/fetching.py#L176
always assumes an
IOError
as suggested here:https://github.com/imageio/imageio/blob/23cdcf5e62aceb1a32ee37e529eb731612b98298/imageio/core/fetching.py#L184
. In the end, user is misled as shown in .
How to fix it
As far as I understand, the only purpose of THE line is to prevent intro
pygame
information to be printed in thestdout
. If so, changing the environment variable 'PYGAME_HIDE_SUPPORT_PROMPT' to "hide" might be enough.The text was updated successfully, but these errors were encountered: