Does not work with Python 3
Created by: autumnjolitz
Perhaps one should add a Python 2 restrictor on the setup.py? Or make use of six
for supporting both? Or port to Python 3?
(cpython36) benjolitz-laptop:~/software$ python
Python 3.6.0 (default, Dec 24 2016, 08:01:42)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ffmpeg
>>> i = ffmpeg.input('/Users/BenJolitz/Downloads/b195bd7c-aa7b-44c4-83a5-2c12e77a8784.mov')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/BenJolitz/.virtualenvs/cpython36/lib/python3.6/site-packages/ffmpeg/_ffmpeg.py", line 15, in input
return InputNode(input.__name__, filename=filename)
File "/Users/BenJolitz/.virtualenvs/cpython36/lib/python3.6/site-packages/ffmpeg/nodes.py", line 35, in __init__
super(InputNode, self).__init__(parents=[], name=name, *args, **kwargs)
File "/Users/BenJolitz/.virtualenvs/cpython36/lib/python3.6/site-packages/ffmpeg/nodes.py", line 14, in __init__
self._update_hash()
File "/Users/BenJolitz/.virtualenvs/cpython36/lib/python3.6/site-packages/ffmpeg/nodes.py", line 26, in _update_hash
my_hash = hashlib.md5(json.dumps(props, sort_keys=True)).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
>>>