Skip to content
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

fixed ffmpeg error reporting on Python 3 #565

Merged
merged 1 commit into from
May 25, 2017

Conversation

narfdotpl
Copy link
Contributor

I got the following error:

/usr/local/lib/python3.5/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py:91: in write_frames
    + "\n\n"+ffmpeg_error))
E   TypeError: Can't convert 'bytes' object to str implicitly

To fix it, I wrapped ffmpeg_error in str() in ffmpeg_audiowriter.py. I also did the same in ffmpeg_writer.py but I didn't test the latter.

I got the following error:

    /usr/local/lib/python3.5/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py:91: in write_frames
        + "\n\n"+ffmpeg_error))
    E   TypeError: Can't convert 'bytes' object to str implicitly

To fix it, I wrapped `ffmpeg_error` in `str()` in `ffmpeg_audiowriter.py`.  I also did the same in `ffmpeg_writer.py` but I didn't test the latter.
@coveralls
Copy link

coveralls commented May 16, 2017

Coverage Status

Coverage remained the same at 54.081% when pulling 6a9af8c on narfdotpl:error-reporting into f63a985 on Zulko:master.

@tburrows13
Copy link
Collaborator

Thanks for your contribution!
Can you confirm that this wasn't working before with the latest version of moviepy and you didn't just have a old version?

@tburrows13 tburrows13 added the bug-fix For PRs and issues solving bugs. label May 16, 2017
@narfdotpl
Copy link
Contributor Author

Yes. I got this error on moviepy 0.2.3.2 and Python 3.5.2.

@mbeacom mbeacom merged commit 99bfee2 into Zulko:master May 25, 2017
@mbeacom mbeacom added this to the Release v0.2.3.3 milestone May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix For PRs and issues solving bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants