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

TextClip.list('font') raises TypeError in Python 3 #117

Closed
mncharity opened this issue Jan 30, 2015 · 2 comments
Closed

TextClip.list('font') raises TypeError in Python 3 #117

mncharity opened this issue Jan 30, 2015 · 2 comments
Labels
python-version Compatibility issues, behaviour changes,... between different Python versions.

Comments

@mncharity
Copy link

TextClip.list('font') raises "TypeError: startswith first arg must be bytes or a tuple of bytes, not str" under moviepy-0.2.2.04, Python 3.4.0, linux x64.

TextClip.search('Courier','font') calls TextClip.list('font'), so it also fails.

In VideoClip.py, TextClip.list uses Popen.communicate, which in Python 3 apparently returns bytes, not strings. So also in TextClip.list, l.startswith(" Font:") would not be str.startswith, but bytes.startswidth, which doesn't accept a str arg.

@mbeacom mbeacom added the python-version Compatibility issues, behaviour changes,... between different Python versions. label Feb 16, 2017
@tburrows13
Copy link
Collaborator

Related to #371

@ghost
Copy link

ghost commented Feb 22, 2017

this seems to be fixed with the current repo. Please reopen if you have the issue again.

@ghost ghost closed this as completed Feb 22, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python-version Compatibility issues, behaviour changes,... between different Python versions.
Projects
None yet
Development

No branches or pull requests

3 participants