kkroening / ffmpeg-python

Python bindings for FFmpeg - with complex filtering support
Apache License 2.0
9.64k stars 875 forks source link

ModuleNotFoundError: No module named 'past' #228

Open jmmartinezbr opened 5 years ago

jmmartinezbr commented 5 years ago

I have the following issue when the code under it.

I`ve installed using 'pip install ffmpeg' and 'pip install ffmpeg-python' and both present the same error.


"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\python.exe" "C:/Users/Admin/Documents/Midia_flow_ff/Main.py" Traceback (most recent call last): File "C:/Users/Admin/Documents/Midia_flow_ff/Main.py", line 2, in import ffmpeg File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\ffmpeg__init__.py", line 2, in from . import nodes File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\ffmpeg\nodes.py", line 3, in from past.builtins import basestring ModuleNotFoundError: No module named 'past'


import ffmpeg print('Encoding Starded') stream = ffmpeg.input('input.MOV') stream = ffmpeg.hflip(stream) stream = ffmpeg.output(stream, 'output.MOV') ffmpeg.run(stream) print('Encoding Ended')

ChristopherBanas commented 2 months ago

Any fix?

mattia-lecci commented 2 months ago

try pip install future source: https://pypi.org/project/past/