607011/flippy

Linux installation

Wikinaut opened this issue · 4 comments

I suggest you add under Linux a section for Debian, or modify the existing section:

sudo apt-get install python-pip
sudo pip install Pillow fpdf moviepy

to make installation easier for the Linux users.

On my system, I had to use sudo as in

sudo pip install Pillow fpdf moviepy

to avoid

error: could not create '/usr/local/lib/python2.7/dist-packages/fpdf': Permission denied

when installing as a user, but this is perhaps a matter of /usr/local/lib permissions. I don't know.

The project now uses Python 3 and Pipenv. So it's no longer necessary the install the required modules manually.

I installed pipenv and had this https://github.com/pypa/pipenv/issues/3827 locking issue. After clearing the python cache I now got this error with your code:

./flippy.py
usage: flippy.py [-h] [--out OUT] [--height HEIGHT] [--paper {a5,a4,a3,letter,legal}] [--offset OFFSET] [--phena] [--dpi DPI] [--fps FPS] [-v [V]] video
flippy.py: error: the following arguments are required: video

and with the video file as input parameter I got

./flippy.py 1.mp4
Traceback (most recent call last):
  File "./flippy.py", line 277, in <module>
    main()
  File "./flippy.py", line 265, in main
    flippy = FlipbookCreator(
  File "./flippy.py", line 107, in __init__
    self.clip = VideoFileClip(self.input_file_name)
NameError: name 'VideoFileClip' is not defined

NameError: name 'VideoFileClip' is not defined

Line 14 must be changed from
# from moviepy.editor import *
to
from moviepy.video.io.VideoFileClip import VideoFileClip