607011/flippy

ImportError: No module named fpdf (but fpdf is installed)

Wikinaut opened this issue · 8 comments

pip list gives
...
fpdf (1.7.2)
...

and
python flippy.py gives

File "flippy.py", line 13, in
from fpdf import FPDF
ImportError: No module named fpdf

Operating system? Python version?

fpdf installed with pip of the same Python version?

  • OpenSuse Tumbleweed

python --version
Python 2.7.10

The packages are
/usr/lib/python3.4/site-packages/fpdf/

Strange. How to repair ?

If I however use

python3 flippy.py then your script throws:

File "flippy.py", line 111
print 'Opening {} ...'.format(self.input_file_name)
^
SyntaxError: invalid syntax

Which version of flippy.py are you trying to use? The one described in the corresponding c't article? Get it here!

from github abc672e

@Wikinaut HEAD is an outdated version that does not correspond to the c't article. Again, get the correct version here.

git checkout tags/ct1216
python3 flippy.py --input samples/lemoncat.mp4 --output flipbook-lemoncat.pdf

works for me.