rm-hull / luma.oled

Python module to drive a SSD1306 / SSD1309 / SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SH1106 OLED
https://luma-oled.readthedocs.io
MIT License
805 stars 161 forks source link

Installation problem on RPi3 #175

Closed Jaeger87 closed 6 years ago

Jaeger87 commented 6 years ago

RPi3

Linux Kernel version

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Hi, i tried to install the library by following the guide on: https://luma-oled.readthedocs.io/en/latest/install.html

I tried by simply copying all the lines but installation fails cause sudo: pip: is not more a recognized command.

I tried the installation without the third line (the one that purge pip) but than i got this error:

Collecting luma.oled Downloading luma.oled-2.2.12-py2.py3-none-any.whl Collecting luma.core>=1.0.3 (from luma.oled) Downloading luma.core-1.0.3-py2.py3-none-any.whl (49kB) 100% |################################| 51kB 737kB/s Collecting pillow>=4.0.0 (from luma.core>=1.0.3->luma.oled) Using cached Pillow-4.3.0.tar.gz Collecting monotonic; python_version < "3.3" (from luma.core>=1.0.3->luma.oled) Downloading monotonic-1.3-py2.py3-none-any.whl Requirement already up-to-date: smbus2 in /usr/local/lib/python2.7/dist-packages (from luma.core>=1.0.3->luma.oled) Requirement already up-to-date: RPI.GPIO; platform_system == "Linux" in /usr/lib/python2.7/dist-packages (from luma.core>=1.0.3->luma.oled) Collecting spidev; platform_system == "Linux" (from luma.core>=1.0.3->luma.oled) Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run wb.build(autobuilding=True) File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build self.requirement_set.prepare_files(self.finder) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 809, in unpack_url unpack_file_url(link, location, download_dir, hashes=hashes) File "/usr/lib/python2.7/dist-packages/pip/download.py", line 715, in unpack_file_url unpack_file(from_path, location, content_type, link) File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 617, in unpack_file flatten=not filename.endswith('.whl') File "/usr/lib/python2.7/dist-packages/pip/utils/__init__.py", line 502, in unzip_file zip = zipfile.ZipFile(zipfp, allowZip64=True) File "/usr/lib/python2.7/zipfile.py", line 770, in __init__ self._RealGetContents() File "/usr/lib/python2.7/zipfile.py", line 813, in _RealGetContents raise BadZipfile, "File is not a zip file" BadZipfile: File is not a zip file

Thank you!

rm-hull commented 6 years ago

Can you confirm the version of pip you have installed please, as per below:

$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

If it isn't 9.0.1, then this is possibly what the issue is. Make sure pip is upgraded by running:

$ sudo -i pip install --upgrade pip setuptools

And then check the version again before proceeding.


Alternatively, if you already are on pip 9.0.1, then it could be that a file got corrupted when you downloaded it, so try:

$ sudo pip install -IU --no-cache-dir luma.oled
Jaeger87 commented 6 years ago

Pip was already updated but it seeems that the file was corrupted like you seggested. However i got a new error when the setup.py for pillow is running:

`sudo pip install -IU --no-cache-dir luma.oled Collecting luma.oled Downloading luma.oled-2.2.12-py2.py3-none-any.whl Collecting luma.core>=1.0.3 (from luma.oled) Downloading luma.core-1.1.0-py2.py3-none-any.whl (51kB) 100% |################################| 51kB 1.1MB/s Collecting pillow>=4.0.0 (from luma.core>=1.0.3->luma.oled) Downloading Pillow-4.3.0.tar.gz (13.9MB) 100% |################################| 13.9MB 3.4MB/s Collecting monotonic; python_version < "3.3" (from luma.core>=1.0.3->luma.oled) Downloading monotonic-1.3-py2.py3-none-any.whl Collecting smbus2 (from luma.core>=1.0.3->luma.oled) Downloading smbus2-0.2.0.tar.gz Collecting RPI.GPIO; platform_system == "Linux" (from luma.core>=1.0.3->luma.oled) Downloading RPi.GPIO-0.6.3.tar.gz Collecting spidev; platform_system == "Linux" (from luma.core>=1.0.3->luma.oled) Downloading spidev-3.2.tar.gz Collecting olefile (from pillow>=4.0.0->luma.core>=1.0.3->luma.oled) Downloading olefile-0.44.zip (74kB) 100% |################################| 81kB 8.3MB/s Installing collected packages: olefile, pillow, monotonic, smbus2, RPI.GPIO, spidev, luma.core, luma.oled Running setup.py install for olefile ... done Running setup.py install for pillow ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-ujgjAV/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-XZn2ZM-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/PIL copying PIL/PaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ExifTags.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageQt.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/SunImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageMode.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImagePath.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageStat.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ContainerIO.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/CurImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PSDraw.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/Image.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageGrab.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageChops.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/WalImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageEnhance.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageSequence.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageShow.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/init.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageTransform.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/FliImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/features.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageColor.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageMorph.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GimpGradientFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageTk.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageFilter.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageOps.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageFont.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PyAccess.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/_tkinter_finder.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PcfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/OleFileIO.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageCms.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/MspImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/TarIO.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/version.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/_binary.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/FontFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GifImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/TiffTags.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/MicImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageWin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/GdImageFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/PngImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImagePalette.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageDraw.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageMath.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/BdfFontFile.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/_util.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/JpegPresets.py -> build/lib.linux-armv7l-2.7/PIL copying PIL/ImageDraw2.py -> build/lib.linux-armv7l-2.7/PIL running egg_info writing requirements to Pillow.egg-info/requires.txt writing Pillow.egg-info/PKG-INFO writing top-level names to Pillow.egg-info/top_level.txt writing dependency_links to Pillow.egg-info/dependency_links.txt reading manifest file 'Pillow.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.sh' no previously-included directories found matching 'docs/_static' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching '.travis' warning: no previously-included files found matching '.travis/' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'build_children.sh' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files matching '.git' found anywhere in distribution warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'Pillow.egg-info/SOURCES.txt' running build_ext building 'PIL._imaging' extension creating build/temp.linux-armv7l-2.7/libImaging Building using 4 processes arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c _imaging.c -o build/temp.linux-armv7l-2.7/_imaging.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c outline.c -o build/temp.linux-armv7l-2.7/outline.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Bands.c -o build/temp.linux-armv7l-2.7/libImaging/Bands.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Convert.c -o build/temp.linux-armv7l-2.7/libImaging/Convert.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c path.c -o build/temp.linux-armv7l-2.7/path.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/BcnDecode.c -o build/temp.linux-armv7l-2.7/libImaging/BcnDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Access.c -o build/temp.linux-armv7l-2.7/libImaging/Access.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/AlphaComposite.c -o build/temp.linux-armv7l-2.7/libImaging/AlphaComposite.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/ConvertYCbCr.c -o build/temp.linux-armv7l-2.7/libImaging/ConvertYCbCr.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Resample.c -o build/temp.linux-armv7l-2.7/libImaging/Resample.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/BitDecode.c -o build/temp.linux-armv7l-2.7/libImaging/BitDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Copy.c -o build/temp.linux-armv7l-2.7/libImaging/Copy.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Blend.c -o build/temp.linux-armv7l-2.7/libImaging/Blend.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Crc32.c -o build/temp.linux-armv7l-2.7/libImaging/Crc32.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Chops.c -o build/temp.linux-armv7l-2.7/libImaging/Chops.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Crop.c -o build/temp.linux-armv7l-2.7/libImaging/Crop.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Dib.c -o build/temp.linux-armv7l-2.7/libImaging/Dib.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c decode.c -o build/temp.linux-armv7l-2.7/decode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Fill.c -o build/temp.linux-armv7l-2.7/libImaging/Fill.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Draw.c -o build/temp.linux-armv7l-2.7/libImaging/Draw.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/GifDecode.c -o build/temp.linux-armv7l-2.7/libImaging/GifDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Filter.c -o build/temp.linux-armv7l-2.7/libImaging/Filter.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/GifEncode.c -o build/temp.linux-armv7l-2.7/libImaging/GifEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c encode.c -o build/temp.linux-armv7l-2.7/encode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/HexDecode.c -o build/temp.linux-armv7l-2.7/libImaging/HexDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c map.c -o build/temp.linux-armv7l-2.7/map.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Histo.c -o build/temp.linux-armv7l-2.7/libImaging/Histo.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Effects.c -o build/temp.linux-armv7l-2.7/libImaging/Effects.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c display.c -o build/temp.linux-armv7l-2.7/display.o libImaging/Histo.c: In function 'ImagingGetHistogram': libImaging/Histo.c:169:1: internal compiler error: Errore di segmentazione } ^ Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-6/README.Bugs for instructions. arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/JpegEncode.c -o build/temp.linux-armv7l-2.7/libImaging/JpegEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Offset.c -o build/temp.linux-armv7l-2.7/libImaging/Offset.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/EpsEncode.c -o build/temp.linux-armv7l-2.7/libImaging/EpsEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Pack.c -o build/temp.linux-armv7l-2.7/libImaging/Pack.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/LzwDecode.c -o build/temp.linux-armv7l-2.7/libImaging/LzwDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/File.c -o build/temp.linux-armv7l-2.7/libImaging/File.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/FliDecode.c -o build/temp.linux-armv7l-2.7/libImaging/FliDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Matrix.c -o build/temp.linux-armv7l-2.7/libImaging/Matrix.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Quant.c -o build/temp.linux-armv7l-2.7/libImaging/Quant.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Geometry.c -o build/temp.linux-armv7l-2.7/libImaging/Geometry.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/PackDecode.c -o build/temp.linux-armv7l-2.7/libImaging/PackDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/ModeFilter.c -o build/temp.linux-armv7l-2.7/libImaging/ModeFilter.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Palette.c -o build/temp.linux-armv7l-2.7/libImaging/Palette.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Negative.c -o build/temp.linux-armv7l-2.7/libImaging/Negative.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/PcxDecode.c -o build/temp.linux-armv7l-2.7/libImaging/PcxDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Paste.c -o build/temp.linux-armv7l-2.7/libImaging/Paste.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/PcxEncode.c -o build/temp.linux-armv7l-2.7/libImaging/PcxEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Point.c -o build/temp.linux-armv7l-2.7/libImaging/Point.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/QuantOctree.c -o build/temp.linux-armv7l-2.7/libImaging/QuantOctree.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/RawEncode.c -o build/temp.linux-armv7l-2.7/libImaging/RawEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/RankFilter.c -o build/temp.linux-armv7l-2.7/libImaging/RankFilter.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/QuantHash.c -o build/temp.linux-armv7l-2.7/libImaging/QuantHash.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Storage.c -o build/temp.linux-armv7l-2.7/libImaging/Storage.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/RawDecode.c -o build/temp.linux-armv7l-2.7/libImaging/RawDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/GetBBox.c -o build/temp.linux-armv7l-2.7/libImaging/GetBBox.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/QuantHeap.c -o build/temp.linux-armv7l-2.7/libImaging/QuantHeap.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Unpack.c -o build/temp.linux-armv7l-2.7/libImaging/Unpack.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/PcdDecode.c -o build/temp.linux-armv7l-2.7/libImaging/PcdDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/SgiRleDecode.c -o build/temp.linux-armv7l-2.7/libImaging/SgiRleDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/ZipDecode.c -o build/temp.linux-armv7l-2.7/libImaging/ZipDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/BoxBlur.c -o build/temp.linux-armv7l-2.7/libImaging/BoxBlur.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/SunRleDecode.c -o build/temp.linux-armv7l-2.7/libImaging/SunRleDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/TgaRleDecode.c -o build/temp.linux-armv7l-2.7/libImaging/TgaRleDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/ZipEncode.c -o build/temp.linux-armv7l-2.7/libImaging/ZipEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/QuantPngQuant.c -o build/temp.linux-armv7l-2.7/libImaging/QuantPngQuant.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/codec_fd.c -o build/temp.linux-armv7l-2.7/libImaging/codec_fd.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/TiffDecode.c -o build/temp.linux-armv7l-2.7/libImaging/TiffDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Jpeg2KDecode.c -o build/temp.linux-armv7l-2.7/libImaging/Jpeg2KDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/Jpeg2KEncode.c -o build/temp.linux-armv7l-2.7/libImaging/Jpeg2KEncode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/UnpackYCC.c -o build/temp.linux-armv7l-2.7/libImaging/UnpackYCC.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/UnsharpMask.c -o build/temp.linux-armv7l-2.7/libImaging/UnsharpMask.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/XbmDecode.c -o build/temp.linux-armv7l-2.7/libImaging/XbmDecode.o arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION="4.3.0" -I/usr/include/freetype2 -I/tmp/pip-build-ujgjAV/pillow/libImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/arm-linux-gnueabihf -c libImaging/XbmEncode.c -o build/temp.linux-armv7l-2.7/libImaging/XbmEncode.o arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-9xgeTe/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/_imaging.o build/temp.linux-armv7l-2.7/decode.o build/temp.linux-armv7l-2.7/encode.o build/temp.linux-armv7l-2.7/map.o build/temp.linux-armv7l-2.7/display.o build/temp.linux-armv7l-2.7/outline.o build/temp.linux-armv7l-2.7/path.o build/temp.linux-armv7l-2.7/libImaging/Access.o build/temp.linux-armv7l-2.7/libImaging/AlphaComposite.o build/temp.linux-armv7l-2.7/libImaging/Resample.o build/temp.linux-armv7l-2.7/libImaging/Bands.o build/temp.linux-armv7l-2.7/libImaging/BcnDecode.o build/temp.linux-armv7l-2.7/libImaging/BitDecode.o build/temp.linux-armv7l-2.7/libImaging/Blend.o build/temp.linux-armv7l-2.7/libImaging/Chops.o build/temp.linux-armv7l-2.7/libImaging/Convert.o build/temp.linux-armv7l-2.7/libImaging/ConvertYCbCr.o build/temp.linux-armv7l-2.7/libImaging/Copy.o build/temp.linux-armv7l-2.7/libImaging/Crc32.o build/temp.linux-armv7l-2.7/libImaging/Crop.o build/temp.linux-armv7l-2.7/libImaging/Dib.o build/temp.linux-armv7l-2.7/libImaging/Draw.o build/temp.linux-armv7l-2.7/libImaging/Effects.o build/temp.linux-armv7l-2.7/libImaging/EpsEncode.o build/temp.linux-armv7l-2.7/libImaging/File.o build/temp.linux-armv7l-2.7/libImaging/Fill.o build/temp.linux-armv7l-2.7/libImaging/Filter.o build/temp.linux-armv7l-2.7/libImaging/FliDecode.o build/temp.linux-armv7l-2.7/libImaging/Geometry.o build/temp.linux-armv7l-2.7/libImaging/GetBBox.o build/temp.linux-armv7l-2.7/libImaging/GifDecode.o build/temp.linux-armv7l-2.7/libImaging/GifEncode.o build/temp.linux-armv7l-2.7/libImaging/HexDecode.o build/temp.linux-armv7l-2.7/libImaging/Histo.o build/temp.linux-armv7l-2.7/libImaging/JpegDecode.o build/temp.linux-armv7l-2.7/libImaging/JpegEncode.o build/temp.linux-armv7l-2.7/libImaging/LzwDecode.o build/temp.linux-armv7l-2.7/libImaging/Matrix.o build/temp.linux-armv7l-2.7/libImaging/ModeFilter.o build/temp.linux-armv7l-2.7/libImaging/Negative.o build/temp.linux-armv7l-2.7/libImaging/Offset.o build/temp.linux-armv7l-2.7/libImaging/Pack.o build/temp.linux-armv7l-2.7/libImaging/PackDecode.o build/temp.linux-armv7l-2.7/libImaging/Palette.o build/temp.linux-armv7l-2.7/libImaging/Paste.o build/temp.linux-armv7l-2.7/libImaging/Quant.o build/temp.linux-armv7l-2.7/libImaging/QuantOctree.o build/temp.linux-armv7l-2.7/libImaging/QuantHash.o build/temp.linux-armv7l-2.7/libImaging/QuantHeap.o build/temp.linux-armv7l-2.7/libImaging/PcdDecode.o build/temp.linux-armv7l-2.7/libImaging/PcxDecode.o build/temp.linux-armv7l-2.7/libImaging/PcxEncode.o build/temp.linux-armv7l-2.7/libImaging/Point.o build/temp.linux-armv7l-2.7/libImaging/RankFilter.o build/temp.linux-armv7l-2.7/libImaging/RawDecode.o build/temp.linux-armv7l-2.7/libImaging/RawEncode.o build/temp.linux-armv7l-2.7/libImaging/Storage.o build/temp.linux-armv7l-2.7/libImaging/SgiRleDecode.o build/temp.linux-armv7l-2.7/libImaging/SunRleDecode.o build/temp.linux-armv7l-2.7/libImaging/TgaRleDecode.o build/temp.linux-armv7l-2.7/libImaging/Unpack.o build/temp.linux-armv7l-2.7/libImaging/UnpackYCC.o build/temp.linux-armv7l-2.7/libImaging/UnsharpMask.o build/temp.linux-armv7l-2.7/libImaging/XbmDecode.o build/temp.linux-armv7l-2.7/libImaging/XbmEncode.o build/temp.linux-armv7l-2.7/libImaging/ZipDecode.o build/temp.linux-armv7l-2.7/libImaging/ZipEncode.o build/temp.linux-armv7l-2.7/libImaging/TiffDecode.o build/temp.linux-armv7l-2.7/libImaging/Jpeg2KDecode.o build/temp.linux-armv7l-2.7/libImaging/Jpeg2KEncode.o build/temp.linux-armv7l-2.7/libImaging/BoxBlur.o build/temp.linux-armv7l-2.7/libImaging/QuantPngQuant.o build/temp.linux-armv7l-2.7/libImaging/codec_fd.o -L/usr/local/lib -L/usr/lib/arm-linux-gnueabihf -ljpeg -lz -o build/lib.linux-armv7l-2.7/PIL/_imaging.so arm-linux-gnueabihf-gcc: error: build/temp.linux-armv7l-2.7/libImaging/Histo.o: File o directory non esistente arm-linux-gnueabihf-gcc: error: build/temp.linux-armv7l-2.7/libImaging/JpegDecode.o: File o directory non esistente error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-ujgjAV/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-XZn2ZM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ujgjAV/pillow/ `

In this thread it seems that someone got the same error and he was a dependency issue: https://github.com/python-pillow/Pillow/issues/2163

I don't know what dependencies miss in my case, any suggestion?

rm-hull commented 6 years ago

I think the linked issue is possibly not the root cause. Looking at the output,

libImaging/Histo.c: In function 'ImagingGetHistogram':
libImaging/Histo.c:169:1: internal compiler error: Errore di segmentazione
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-6/README.Bugs for instructions.

I am assuming that "Errore di segmentazione" is a segmentation fault that occurred in the compiler. I would try updating your RPi to the latest set of packages (apt update), power it off and on again, and then try installing pillow first:

$ sudo pip install -IU --no-cache-dir pillow

If that works, then (noting the omitted flags):

$ sudo pip install -U luma.oled
thijstriemstra commented 6 years ago

If it ends with:

arm-linux-gnueabihf-gcc: error: build/temp.linux-armv7l-2.7/libImaging/JpegDecode.o: File o directory non esistente

the jpeg library is missing. And it's a Pillow requirement so I'm contemplating adding the Pillow dependencies to the installation docs as well.

Anyway, @Jaeger87 can you follow these instructions first and then try luma.oled installation again: http://pillow.readthedocs.io/en/4.3.x/installation.html#building-on-linux

Jaeger87 commented 6 years ago

It seems that the solution from rm-hull worked, i run the command:

sudo pip install -IU --no-cache-dir pillow

and than:

sudo pip install -IU --no-cache-dir luma.oled

and finally

Successfully installed RPI.GPIO-0.6.3 luma.core-1.1.0 luma.oled-2.3.0 monotonic-1.3 olefile-0.44 pillow-4.3.0 smbus2-0.2.0 spidev-3.2

I tried one example with emulator for test but it didn't start :(

This is the command:

python clock.py --display pygame

And this is the respond

usage: clock.py [-h] [--config CONFIG] [--display] [--width WIDTH] [--height HEIGHT] [--rotate] [--interface] [--i2c-port I2C_PORT] [--i2c-address I2C_ADDRESS] [--spi-port SPI_PORT] [--spi-device SPI_DEVICE] [--spi-bus-speed SPI_BUS_SPEED] [--gpio GPIO] [--gpio-data-command GPIO_DATA_COMMAND] [--gpio-reset GPIO_RESET] [--gpio-backlight GPIO_BACKLIGHT] [--block-orientation] [--mode] [--framebuffer] [--bgr] [--h-offset H_OFFSET] [--v-offset V_OFFSET] [--backlight-active] clock.py: error: argument --display/-d: invalid choice: 'pygame' (choose from 'ssd1306', 'ssd1322', 'ssd1325', 'ssd1331', 'ssd1351', 'sh1106')

It can be cause by the installation?

thijstriemstra commented 6 years ago

did you install the luma.emulator package?

sudo pip install -IU --no-cache-dir luma.emulator
Jaeger87 commented 6 years ago

It worked!

Thank you rm-hull and thijstriemstra, you are very kind and professional, i will put yours name and the library link in my blog when i finish this project, thank you again!

You can close this thread!

rm-hull commented 6 years ago

@Jaeger87 good stuff! Drop a link to your blog in the comments 👍

Jaeger87 commented 6 years ago

www.jaegerbox.net The project is a smartchalkboard controllable by telegram, i hope to finish it in this month and publish code and other stuff in early 2018.