ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

ModuleNotFoundError: No module named 'past'

Open jmmartinezbr opened this issue 5 years ago • 2 comments

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')

jmmartinezbr avatar Jun 29 '19 20:06 jmmartinezbr

Any fix?

ChristopherBanas avatar Apr 06 '24 17:04 ChristopherBanas

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

mattia-lecci avatar Apr 08 '24 06:04 mattia-lecci