On Thursday, 27th of November 2014 I will be presenting my talk “RegEx in practice” in a public lecture at our university. The talk is going to be organized by BIS studies representatives for computer science.
I guess this bug is bugging every ubuntu user of
impressive. Impressive is a presentation tool with eye candy. After installing impressive from the debian repositories, you immediately get a broken installation:
% impressive Welcome to Impressive version 0.10.3 Oops! Cannot load necessary modules: No module named TiffImagePlugin To use Impressive, you need to install the following Python modules: - PyOpenGL [python-opengl] http://pyopengl.sourceforge.net/ - PyGame [python-pygame] http://www.pygame.org/ - PIL [python-imaging] http://www.pythonware.com/products/pil/ - PyWin32 (OPTIONAL, Win32) http://starship.python.net/crew/mhammond/win32/ Additionally, please be sure to have pdftoppm or GhostScript installed if you intend to use PDF input.
Can we fix that? Be sure that the mentioned dependencies are already installed which is required in any way.
sudo apt-get install python-opengl python-pygame python-imaging ghostscript
I fixed the script by modifying an import statement in the source code. First I looked up the source python file:
% which impressive /usr/bin/impressive % sudo vim /usr/bin/impressive
I modified the line which imports the TiffImagePlugin because as the error message says this is our problem. I replaced the line
import TiffImagePlugin, BmpImagePlugin, JpegImagePlugin, PngImagePlugin, PpmImagePlugin
from PIL import TiffImagePlugin, BmpImagePlugin, JpegImagePlugin, PngImagePlugin, PpmImagePlugin
And now my impressive installation works:
Welcome to Impressive version 0.10.3 A nice presentation tool. Usage: impressive [OPTION...] <INPUT(S)...> You may either play a PDF file, a directory containing image files or individual image files. Input options: -r, --rotate <n> rotate pages clockwise in 90-degree steps --scale scale images to fit screen (not used in PDF mode) --supersample use supersampling (only used in PDF mode) -s --supersample …