pip install fails in Ubuntu #24

Closed
opened 2021-04-25 19:57:43 +00:00 by josch · 0 comments
Owner

By nemobis on 2015-10-08T19:26:34.922Z

The installation instructions work fine in fedora 21. Not so in Ubuntu.

Linux 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux```

First I run into https://github.com/python-pillow/Pillow/issues/1457#issuecomment-144983030 , fixed by installing `libjpeg-dev`. Now I have:

    $ sudo pip install img2pdf
    The directory '/home/nemobis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    The directory '/home/nemobis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    Collecting img2pdf
    Downloading img2pdf-0.1.5.tar.gz
    Collecting Pillow (from img2pdf)
    Downloading Pillow-3.0.0.tar.gz (9.6MB)
        100% |████████████████████████████████| 9.6MB 50kB/s 
    Installing collected packages: Pillow, img2pdf
    Running setup.py install for Pillow
        Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_65uy_i/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5dgpnp57-record/install-record.txt --single-version-externally-managed --compile:
        running install
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-3.4
        creating build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageTk.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ExifTags.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/WalImageFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PaletteFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageOps.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageMath.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/TarIO.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/_util.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/JpegPresets.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageDraw.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/Image.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageMode.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ContainerIO.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageChops.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/__init__.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageSequence.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PyAccess.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/_binary.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/FontFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GdImageFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/features.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/OleFileIO.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageGrab.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImagePalette.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageFilter.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageWin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageColor.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageMorph.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImagePath.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageStat.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageCms.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/TiffTags.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageFont.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageTransform.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageQt.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageShow.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/ImageFile.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
        copying PIL/PSDraw.py -> build/lib.linux-x86_64-3.4/PIL
        running egg_info
        writing top-level names to Pillow.egg-info/top_level.txt
        writing dependency_links to Pillow.egg-info/dependency_links.txt
        writing Pillow.egg-info/PKG-INFO
        warning: manifest_maker: standard file '-c' not found
        
        reading manifest file 'Pillow.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'Pillow.egg-info/SOURCES.txt'
        copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-3.4/PIL
        running build_ext
        building 'PIL._imaging' extension
        creating build/temp.linux-x86_64-3.4/libImaging
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c _imaging.c -o build/temp.linux-x86_64-3.4/_imaging.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c outline.c -o build/temp.linux-x86_64-3.4/outline.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Bands.c -o build/temp.linux-x86_64-3.4/libImaging/Bands.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/ConvertYCbCr.c -o build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o
        outline.c:20:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/Bands.c:19:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/ConvertYCbCr.c:15:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        _imaging.c:76:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Draw.c -o build/temp.linux-x86_64-3.4/libImaging/Draw.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Filter.c -o build/temp.linux-x86_64-3.4/libImaging/Filter.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/GifEncode.c -o build/temp.linux-x86_64-3.4/libImaging/GifEncode.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/LzwDecode.c -o build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/Draw.c:35:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/Filter.c:27:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/LzwDecode.c:31:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/GifEncode.c:20:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Offset.c -o build/temp.linux-x86_64-3.4/libImaging/Offset.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Quant.c -o build/temp.linux-x86_64-3.4/libImaging/Quant.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/PcxDecode.c -o build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/RawEncode.c -o build/temp.linux-x86_64-3.4/libImaging/RawEncode.o
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/Offset.c:18:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/Quant.c:21:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/PcxDecode.c:17:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/RawEncode.c:21:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/UnpackYCC.c -o build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/ZipEncode.c -o build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o
        x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/BoxBlur.c -o build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/UnpackYCC.c:17:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        libImaging/BoxBlur.c:1:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        In file included from libImaging/Imaging.h:14:0,
                        from libImaging/ZipEncode.c:18:
        libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory
        #include "Python.h"
                            ^
        compilation terminated.
        Building using 4 processes
        x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/_imaging.o build/temp.linux-x86_64-3.4/decode.o build/temp.linux-x86_64-3.4/encode.o build/temp.linux-x86_64-3.4/map.o build/temp.linux-x86_64-3.4/display.o build/temp.linux-x86_64-3.4/outline.o build/temp.linux-x86_64-3.4/path.o build/temp.linux-x86_64-3.4/libImaging/Access.o build/temp.linux-x86_64-3.4/libImaging/AlphaComposite.o build/temp.linux-x86_64-3.4/libImaging/Resample.o build/temp.linux-x86_64-3.4/libImaging/Bands.o build/temp.linux-x86_64-3.4/libImaging/BitDecode.o build/temp.linux-x86_64-3.4/libImaging/Blend.o build/temp.linux-x86_64-3.4/libImaging/Chops.o build/temp.linux-x86_64-3.4/libImaging/Convert.o build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o build/temp.linux-x86_64-3.4/libImaging/Copy.o build/temp.linux-x86_64-3.4/libImaging/Crc32.o build/temp.linux-x86_64-3.4/libImaging/Crop.o build/temp.linux-x86_64-3.4/libImaging/Dib.o build/temp.linux-x86_64-3.4/libImaging/Draw.o build/temp.linux-x86_64-3.4/libImaging/Effects.o build/temp.linux-x86_64-3.4/libImaging/EpsEncode.o build/temp.linux-x86_64-3.4/libImaging/File.o build/temp.linux-x86_64-3.4/libImaging/Fill.o build/temp.linux-x86_64-3.4/libImaging/Filter.o build/temp.linux-x86_64-3.4/libImaging/FliDecode.o build/temp.linux-x86_64-3.4/libImaging/Geometry.o build/temp.linux-x86_64-3.4/libImaging/GetBBox.o build/temp.linux-x86_64-3.4/libImaging/GifDecode.o build/temp.linux-x86_64-3.4/libImaging/GifEncode.o build/temp.linux-x86_64-3.4/libImaging/HexDecode.o build/temp.linux-x86_64-3.4/libImaging/Histo.o build/temp.linux-x86_64-3.4/libImaging/JpegDecode.o build/temp.linux-x86_64-3.4/libImaging/JpegEncode.o build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o build/temp.linux-x86_64-3.4/libImaging/Matrix.o build/temp.linux-x86_64-3.4/libImaging/ModeFilter.o build/temp.linux-x86_64-3.4/libImaging/MspDecode.o build/temp.linux-x86_64-3.4/libImaging/Negative.o build/temp.linux-x86_64-3.4/libImaging/Offset.o build/temp.linux-x86_64-3.4/libImaging/Pack.o build/temp.linux-x86_64-3.4/libImaging/PackDecode.o build/temp.linux-x86_64-3.4/libImaging/Palette.o build/temp.linux-x86_64-3.4/libImaging/Paste.o build/temp.linux-x86_64-3.4/libImaging/Quant.o build/temp.linux-x86_64-3.4/libImaging/QuantOctree.o build/temp.linux-x86_64-3.4/libImaging/QuantHash.o build/temp.linux-x86_64-3.4/libImaging/QuantHeap.o build/temp.linux-x86_64-3.4/libImaging/PcdDecode.o build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o build/temp.linux-x86_64-3.4/libImaging/PcxEncode.o build/temp.linux-x86_64-3.4/libImaging/Point.o build/temp.linux-x86_64-3.4/libImaging/RankFilter.o build/temp.linux-x86_64-3.4/libImaging/RawDecode.o build/temp.linux-x86_64-3.4/libImaging/RawEncode.o build/temp.linux-x86_64-3.4/libImaging/Storage.o build/temp.linux-x86_64-3.4/libImaging/SunRleDecode.o build/temp.linux-x86_64-3.4/libImaging/TgaRleDecode.o build/temp.linux-x86_64-3.4/libImaging/Unpack.o build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o build/temp.linux-x86_64-3.4/libImaging/UnsharpMask.o build/temp.linux-x86_64-3.4/libImaging/XbmDecode.o build/temp.linux-x86_64-3.4/libImaging/XbmEncode.o build/temp.linux-x86_64-3.4/libImaging/ZipDecode.o build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o build/temp.linux-x86_64-3.4/libImaging/TiffDecode.o build/temp.linux-x86_64-3.4/libImaging/Incremental.o build/temp.linux-x86_64-3.4/libImaging/Jpeg2KDecode.o build/temp.linux-x86_64-3.4/libImaging/Jpeg2KEncode.o build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o -L/usr/local/lib -ljpeg -lz -o build/lib.linux-x86_64-3.4/PIL/_imaging.cpython-34m.so
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/_imaging.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/decode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/encode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/map.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/display.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/outline.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/path.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Access.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/AlphaComposite.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Resample.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Bands.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/BitDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Blend.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Chops.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Convert.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Copy.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Crc32.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Crop.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Dib.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Draw.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Effects.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/EpsEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/File.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Fill.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Filter.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/FliDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Geometry.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GetBBox.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GifDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GifEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/HexDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Histo.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/JpegDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/JpegEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Matrix.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ModeFilter.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/MspDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Negative.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Offset.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Pack.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PackDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Palette.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Paste.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Quant.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantOctree.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantHash.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantHeap.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcdDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcxEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Point.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RankFilter.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RawDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RawEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Storage.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/SunRleDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/TgaRleDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Unpack.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/UnsharpMask.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/XbmDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/XbmEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ZipDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/TiffDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Incremental.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Jpeg2KDecode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Jpeg2KEncode.o: No such file or directory
        x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o: No such file or directory
        error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

        ----------------------------------------
    Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_65uy_i/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5dgpnp57-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-x_65uy_i/Pillow



---

*By josch on 2015-10-09T05:43:06.879Z*

---

Why do you try to build PIL yourself? Ubuntu already has a Debian package for it which you can just apt-get install yourself.



---

*By nemobis on 2015-10-09T06:43:28.754Z*

---


I'm not trying anything, that's merely what happens when following instructions. PIL is installed:
$ dpkg -l | grep python-pil
ii  python-pil                                2.3.0-1ubuntu3            amd64        Python Imaging Library (Pillow fork) 



---

*By josch on 2015-10-09T06:55:10.413Z*

---

aha, interesting.

Can you try if you experience the same problem if you change the string `Pillow` in `setup.py` under `install_requires=(...` to something else like `PIL` or `pil`?



---

*By josch on 2015-10-09T07:00:35.131Z*

---

aha got it!

The problem is, that from your error output above I read that you are installing img2pdf for python3. In that case you need the package python3-pil as written in `README.md`. Can you verify if this was the problem?



---

*By nemobis on 2015-10-09T07:06:34.347Z*

---

You are right, that fixed it! I'm not sure why pip does so though, the default `python` is still 2.7 on this machine.

Preparing to unpack .../python3-pil_2.3.0-1ubuntu3_amd64.deb ...
Unpacking python3-pil (2.3.0-1ubuntu3) ...
Setting up python3-pil (2.3.0-1ubuntu3) ...
$ sudo pip install img2pdf
The directory '/home/nemobis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nemobis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting img2pdf
Downloading img2pdf-0.1.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python3/dist-packages (from img2pdf)
Installing collected packages: img2pdf
Running setup.py install for img2pdf
Successfully installed img2pdf-0.1.5




---

*By nemobis on 2015-10-09T13:32:13.905Z*

---

I'm not sure the installation really succeeded though...

$ img2pdf -v -o 00050.tif.bw.pdf 00050.tif.bw.tif
D: Reading 00050.tif.bw.tif
D: input dpi = 400 x 400
D: input colorspace = 1
D: width x height = 5816 x 5064
D: imgformat = TIFF
D: Converting colorspace 1 to L
Traceback (most recent call last):
File "/usr/local/bin/img2pdf", line 9, in
load_entry_point('img2pdf==0.1.5', 'console_scripts', 'img2pdf')()
File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 402, in main
args.verbose))
File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 313, in convert
imgdata.close()
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 528, in getattr
raise AttributeError(name)
AttributeError: close


The same command on the same file succeeds in fedora 21 and `pip show img2pdf` says it's img2pdf 0.1.5 in both cases but on fedora it's python 2.7 with python-pillow-2.6.2-2 while on Ubuntu it's 3.4 wiith python-pil 2.3.0. :[



---

*By josch on 2015-10-09T14:53:22.374Z*

---

this is because the ubuntu version of pip is an older one than the one i was testing with at the time on Debian and did not have the close() attribute. This is fixed in git though. I'll close this bug when I release the next version.



---

*By josch on 2017-01-21T07:54:08.369Z*

---

Status changed to closed

*By nemobis on 2015-10-08T19:26:34.922Z* The installation instructions work fine in fedora 21. Not so in Ubuntu. ```$ uname -a Linux 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux``` First I run into https://github.com/python-pillow/Pillow/issues/1457#issuecomment-144983030 , fixed by installing `libjpeg-dev`. Now I have: $ sudo pip install img2pdf The directory '/home/nemobis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/nemobis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting img2pdf Downloading img2pdf-0.1.5.tar.gz Collecting Pillow (from img2pdf) Downloading Pillow-3.0.0.tar.gz (9.6MB) 100% |████████████████████████████████| 9.6MB 50kB/s Installing collected packages: Pillow, img2pdf Running setup.py install for Pillow Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_65uy_i/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5dgpnp57-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.4 creating build/lib.linux-x86_64-3.4/PIL copying PIL/ImageTk.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ExifTags.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/WalImageFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PaletteFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageOps.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageMath.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/TarIO.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/_util.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/JpegPresets.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageDraw.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/Image.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageMode.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ContainerIO.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageChops.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/__init__.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageSequence.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PyAccess.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/_binary.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/FontFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GdImageFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/features.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/OleFileIO.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageGrab.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImagePalette.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageFilter.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageWin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageColor.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageMorph.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImagePath.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageStat.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageCms.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/TiffTags.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageFont.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageTransform.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageQt.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageShow.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/ImageFile.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL copying PIL/PSDraw.py -> build/lib.linux-x86_64-3.4/PIL running egg_info writing top-level names to Pillow.egg-info/top_level.txt writing dependency_links to Pillow.egg-info/dependency_links.txt writing Pillow.egg-info/PKG-INFO warning: manifest_maker: standard file '-c' not found reading manifest file 'Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'Pillow.egg-info/SOURCES.txt' copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-3.4/PIL running build_ext building 'PIL._imaging' extension creating build/temp.linux-x86_64-3.4/libImaging x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c _imaging.c -o build/temp.linux-x86_64-3.4/_imaging.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c outline.c -o build/temp.linux-x86_64-3.4/outline.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Bands.c -o build/temp.linux-x86_64-3.4/libImaging/Bands.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/ConvertYCbCr.c -o build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o outline.c:20:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/Bands.c:19: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/ConvertYCbCr.c:15: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. _imaging.c:76:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Draw.c -o build/temp.linux-x86_64-3.4/libImaging/Draw.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Filter.c -o build/temp.linux-x86_64-3.4/libImaging/Filter.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/GifEncode.c -o build/temp.linux-x86_64-3.4/libImaging/GifEncode.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/LzwDecode.c -o build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o In file included from libImaging/Imaging.h:14:0, from libImaging/Draw.c:35: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/Filter.c:27: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/LzwDecode.c:31: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/GifEncode.c:20: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Offset.c -o build/temp.linux-x86_64-3.4/libImaging/Offset.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/Quant.c -o build/temp.linux-x86_64-3.4/libImaging/Quant.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/PcxDecode.c -o build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/RawEncode.c -o build/temp.linux-x86_64-3.4/libImaging/RawEncode.o In file included from libImaging/Imaging.h:14:0, from libImaging/Offset.c:18: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/Quant.c:21: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/PcxDecode.c:17: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/RawEncode.c:21: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/UnpackYCC.c -o build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/ZipEncode.c -o build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/tmp/pip-build-x_65uy_i/Pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python3.4m -I/usr/include/x86_64-linux-gnu -c libImaging/BoxBlur.c -o build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o In file included from libImaging/Imaging.h:14:0, from libImaging/UnpackYCC.c:17: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. libImaging/BoxBlur.c:1:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. In file included from libImaging/Imaging.h:14:0, from libImaging/ZipEncode.c:18: libImaging/ImPlatform.h:10:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. Building using 4 processes x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/_imaging.o build/temp.linux-x86_64-3.4/decode.o build/temp.linux-x86_64-3.4/encode.o build/temp.linux-x86_64-3.4/map.o build/temp.linux-x86_64-3.4/display.o build/temp.linux-x86_64-3.4/outline.o build/temp.linux-x86_64-3.4/path.o build/temp.linux-x86_64-3.4/libImaging/Access.o build/temp.linux-x86_64-3.4/libImaging/AlphaComposite.o build/temp.linux-x86_64-3.4/libImaging/Resample.o build/temp.linux-x86_64-3.4/libImaging/Bands.o build/temp.linux-x86_64-3.4/libImaging/BitDecode.o build/temp.linux-x86_64-3.4/libImaging/Blend.o build/temp.linux-x86_64-3.4/libImaging/Chops.o build/temp.linux-x86_64-3.4/libImaging/Convert.o build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o build/temp.linux-x86_64-3.4/libImaging/Copy.o build/temp.linux-x86_64-3.4/libImaging/Crc32.o build/temp.linux-x86_64-3.4/libImaging/Crop.o build/temp.linux-x86_64-3.4/libImaging/Dib.o build/temp.linux-x86_64-3.4/libImaging/Draw.o build/temp.linux-x86_64-3.4/libImaging/Effects.o build/temp.linux-x86_64-3.4/libImaging/EpsEncode.o build/temp.linux-x86_64-3.4/libImaging/File.o build/temp.linux-x86_64-3.4/libImaging/Fill.o build/temp.linux-x86_64-3.4/libImaging/Filter.o build/temp.linux-x86_64-3.4/libImaging/FliDecode.o build/temp.linux-x86_64-3.4/libImaging/Geometry.o build/temp.linux-x86_64-3.4/libImaging/GetBBox.o build/temp.linux-x86_64-3.4/libImaging/GifDecode.o build/temp.linux-x86_64-3.4/libImaging/GifEncode.o build/temp.linux-x86_64-3.4/libImaging/HexDecode.o build/temp.linux-x86_64-3.4/libImaging/Histo.o build/temp.linux-x86_64-3.4/libImaging/JpegDecode.o build/temp.linux-x86_64-3.4/libImaging/JpegEncode.o build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o build/temp.linux-x86_64-3.4/libImaging/Matrix.o build/temp.linux-x86_64-3.4/libImaging/ModeFilter.o build/temp.linux-x86_64-3.4/libImaging/MspDecode.o build/temp.linux-x86_64-3.4/libImaging/Negative.o build/temp.linux-x86_64-3.4/libImaging/Offset.o build/temp.linux-x86_64-3.4/libImaging/Pack.o build/temp.linux-x86_64-3.4/libImaging/PackDecode.o build/temp.linux-x86_64-3.4/libImaging/Palette.o build/temp.linux-x86_64-3.4/libImaging/Paste.o build/temp.linux-x86_64-3.4/libImaging/Quant.o build/temp.linux-x86_64-3.4/libImaging/QuantOctree.o build/temp.linux-x86_64-3.4/libImaging/QuantHash.o build/temp.linux-x86_64-3.4/libImaging/QuantHeap.o build/temp.linux-x86_64-3.4/libImaging/PcdDecode.o build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o build/temp.linux-x86_64-3.4/libImaging/PcxEncode.o build/temp.linux-x86_64-3.4/libImaging/Point.o build/temp.linux-x86_64-3.4/libImaging/RankFilter.o build/temp.linux-x86_64-3.4/libImaging/RawDecode.o build/temp.linux-x86_64-3.4/libImaging/RawEncode.o build/temp.linux-x86_64-3.4/libImaging/Storage.o build/temp.linux-x86_64-3.4/libImaging/SunRleDecode.o build/temp.linux-x86_64-3.4/libImaging/TgaRleDecode.o build/temp.linux-x86_64-3.4/libImaging/Unpack.o build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o build/temp.linux-x86_64-3.4/libImaging/UnsharpMask.o build/temp.linux-x86_64-3.4/libImaging/XbmDecode.o build/temp.linux-x86_64-3.4/libImaging/XbmEncode.o build/temp.linux-x86_64-3.4/libImaging/ZipDecode.o build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o build/temp.linux-x86_64-3.4/libImaging/TiffDecode.o build/temp.linux-x86_64-3.4/libImaging/Incremental.o build/temp.linux-x86_64-3.4/libImaging/Jpeg2KDecode.o build/temp.linux-x86_64-3.4/libImaging/Jpeg2KEncode.o build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o -L/usr/local/lib -ljpeg -lz -o build/lib.linux-x86_64-3.4/PIL/_imaging.cpython-34m.so x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/_imaging.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/decode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/encode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/map.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/display.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/outline.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/path.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Access.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/AlphaComposite.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Resample.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Bands.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/BitDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Blend.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Chops.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Convert.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ConvertYCbCr.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Copy.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Crc32.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Crop.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Dib.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Draw.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Effects.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/EpsEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/File.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Fill.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Filter.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/FliDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Geometry.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GetBBox.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GifDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/GifEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/HexDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Histo.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/JpegDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/JpegEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/LzwDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Matrix.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ModeFilter.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/MspDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Negative.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Offset.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Pack.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PackDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Palette.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Paste.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Quant.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantOctree.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantHash.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/QuantHeap.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcdDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcxDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/PcxEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Point.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RankFilter.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RawDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/RawEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Storage.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/SunRleDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/TgaRleDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Unpack.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/UnpackYCC.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/UnsharpMask.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/XbmDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/XbmEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ZipDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/ZipEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/TiffDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Incremental.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Jpeg2KDecode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/Jpeg2KEncode.o: No such file or directory x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-3.4/libImaging/BoxBlur.o: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_65uy_i/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5dgpnp57-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-x_65uy_i/Pillow --- *By josch on 2015-10-09T05:43:06.879Z* --- Why do you try to build PIL yourself? Ubuntu already has a Debian package for it which you can just apt-get install yourself. --- *By nemobis on 2015-10-09T06:43:28.754Z* --- I'm not trying anything, that's merely what happens when following instructions. PIL is installed: $ dpkg -l | grep python-pil ii python-pil 2.3.0-1ubuntu3 amd64 Python Imaging Library (Pillow fork) --- *By josch on 2015-10-09T06:55:10.413Z* --- aha, interesting. Can you try if you experience the same problem if you change the string `Pillow` in `setup.py` under `install_requires=(...` to something else like `PIL` or `pil`? --- *By josch on 2015-10-09T07:00:35.131Z* --- aha got it! The problem is, that from your error output above I read that you are installing img2pdf for python3. In that case you need the package python3-pil as written in `README.md`. Can you verify if this was the problem? --- *By nemobis on 2015-10-09T07:06:34.347Z* --- You are right, that fixed it! I'm not sure why pip does so though, the default `python` is still 2.7 on this machine. ``` Preparing to unpack .../python3-pil_2.3.0-1ubuntu3_amd64.deb ... Unpacking python3-pil (2.3.0-1ubuntu3) ... Setting up python3-pil (2.3.0-1ubuntu3) ... $ sudo pip install img2pdf The directory '/home/nemobis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/nemobis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting img2pdf Downloading img2pdf-0.1.5.tar.gz Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python3/dist-packages (from img2pdf) Installing collected packages: img2pdf Running setup.py install for img2pdf Successfully installed img2pdf-0.1.5 ``` --- *By nemobis on 2015-10-09T13:32:13.905Z* --- I'm not sure the installation really succeeded though... ``` $ img2pdf -v -o 00050.tif.bw.pdf 00050.tif.bw.tif D: Reading 00050.tif.bw.tif D: input dpi = 400 x 400 D: input colorspace = 1 D: width x height = 5816 x 5064 D: imgformat = TIFF D: Converting colorspace 1 to L Traceback (most recent call last): File "/usr/local/bin/img2pdf", line 9, in <module> load_entry_point('img2pdf==0.1.5', 'console_scripts', 'img2pdf')() File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 402, in main args.verbose)) File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 313, in convert imgdata.close() File "/usr/lib/python3/dist-packages/PIL/Image.py", line 528, in __getattr__ raise AttributeError(name) AttributeError: close ``` The same command on the same file succeeds in fedora 21 and `pip show img2pdf` says it's img2pdf 0.1.5 in both cases but on fedora it's python 2.7 with python-pillow-2.6.2-2 while on Ubuntu it's 3.4 wiith python-pil 2.3.0. :[ --- *By josch on 2015-10-09T14:53:22.374Z* --- this is because the ubuntu version of pip is an older one than the one i was testing with at the time on Debian and did not have the close() attribute. This is fixed in git though. I'll close this bug when I release the next version. --- *By josch on 2017-01-21T07:54:08.369Z* --- Status changed to closed
josch closed this issue 2021-04-25 19:57:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#24
No description provided.