Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install of Pillow on Raspberry Pi 3 #237

Merged
merged 1 commit into from Dec 25, 2019
Merged

Fix install of Pillow on Raspberry Pi 3 #237

merged 1 commit into from Dec 25, 2019

Conversation

@c-w
Copy link
Member

c-w commented Dec 25, 2019

Pillow doesn't have a pre-built wheel for ARM so the pip install fails on Raspberry Pi 3 due to missing compliation dependencies:

$ ./lokole/venv/bin/pip install opwen-email-client==0.5.3
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opwen-email-client
  Downloading https://www.piwheels.org/simple/opwen-email-client/opwen_email_client-0.5.3-py3-none-any.whl (631kB)
     |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 634kB 230kB/s
Requirement already satisfied: celery[sqlalchemy]==4.3.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (4.3.0)
Requirement already satisfied: gunicorn==19.9.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (19.9.0)
Requirement already satisfied: Flask-Caching==1.7.2 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (1.7.2)
Requirement already satisfied: Flask-Security==3.0.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (3.0.0)
Requirement already satisfied: apache-libcloud==2.6.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.6.0)
Requirement already satisfied: mkwvconf==0.1.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.1.1)
Requirement already satisfied: Flask-Testing==0.7.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.7.1)
Requirement already satisfied: cached-property==1.5.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (1.5.1)
Requirement already satisfied: Flask-WTF==0.14.2 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.14.2)
Requirement already satisfied: Flask==1.1.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (1.1.1)
Requirement already satisfied: Werkzeug==0.16.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.16.0)
Requirement already satisfied: Flask-SQLAlchemy==2.4.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.4.1)
Requirement already satisfied: WTForms==2.2.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.2.1)
Requirement already satisfied: watchdog==0.9.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.9.0)
Requirement already satisfied: bcrypt==3.1.7 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (3.1.7)
Requirement already satisfied: Flask-Script==2.0.6 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.0.6)
Requirement already satisfied: xtarfile[zstd]==0.0.2 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.0.2)
Requirement already satisfied: environs==6.1.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (6.1.0)
Collecting Pillow==6.2.1
  Downloading https://files.pythonhosted.org/packages/5b/bb/cdc8086db1f15d0664dd22a62c69613cdc00f1dd430b5b19df1bea83f2a3/Pillow-6.2.1.tar.gz (37.7MB)
     |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 37.7MB 24kB/s
Requirement already satisfied: Flask-Migrate==2.5.2 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.5.2)
Requirement already satisfied: SQLAlchemy==1.3.10 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (1.3.10)
Requirement already satisfied: Babel==2.7.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.7.0)
Requirement already satisfied: passlib==1.7.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (1.7.1)
Requirement already satisfied: typing==3.7.4.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (3.7.4.1)
Requirement already satisfied: requests==2.22.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.22.0)
Requirement already satisfied: beautifulsoup4==4.8.1 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (4.8.1)
Requirement already satisfied: python-crontab==2.4.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.4.0)
Requirement already satisfied: tzlocal==2.0.0 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (2.0.0)
Requirement already satisfied: Flask-BabelEx==0.9.3 in ./lokole/venv/lib/python3.7/site-packages (from opwen-email-client) (0.9.3)
Requirement already satisfied: vine>=1.3.0 in ./lokole/venv/lib/python3.7/site-packages (from celery[sqlalchemy]==4.3.0->opwen-email-client) (1.3.0)
Requirement already satisfied: billiard<4.0,>=3.6.0 in ./lokole/venv/lib/python3.7/site-packages (from celery[sqlalchemy]==4.3.0->opwen-email-client) (3.6.1.0)
Requirement already satisfied: kombu<5.0,>=4.4.0 in ./lokole/venv/lib/python3.7/site-packages (from celery[sqlalchemy]==4.3.0->opwen-email-client) (4.6.7)
Requirement already satisfied: pytz>dev in ./lokole/venv/lib/python3.7/site-packages (from celery[sqlalchemy]==4.3.0->opwen-email-client) (2019.3)
Requirement already satisfied: Flask-Principal>=0.3.3 in ./lokole/venv/lib/python3.7/site-packages (from Flask-Security==3.0.0->opwen-email-client) (0.4.0)
Requirement already satisfied: Flask-Login>=0.3.0 in ./lokole/venv/lib/python3.7/site-packages (from Flask-Security==3.0.0->opwen-email-client) (0.4.1)
Requirement already satisfied: itsdangerous>=0.21 in ./lokole/venv/lib/python3.7/site-packages (from Flask-Security==3.0.0->opwen-email-client) (1.1.0)
Requirement already satisfied: Flask-Mail>=0.7.3 in ./lokole/venv/lib/python3.7/site-packages (from Flask-Security==3.0.0->opwen-email-client) (0.9.1)
Requirement already satisfied: Jinja2>=2.10.1 in ./lokole/venv/lib/python3.7/site-packages (from Flask==1.1.1->opwen-email-client) (2.10.3)
Requirement already satisfied: click>=5.1 in ./lokole/venv/lib/python3.7/site-packages (from Flask==1.1.1->opwen-email-client) (7.0)
Requirement already satisfied: argh>=0.24.1 in ./lokole/venv/lib/python3.7/site-packages (from watchdog==0.9.0->opwen-email-client) (0.26.2)
Requirement already satisfied: pathtools>=0.1.1 in ./lokole/venv/lib/python3.7/site-packages (from watchdog==0.9.0->opwen-email-client) (0.1.2)
Requirement already satisfied: PyYAML>=3.10 in ./lokole/venv/lib/python3.7/site-packages (from watchdog==0.9.0->opwen-email-client) (5.2)
Requirement already satisfied: six>=1.4.1 in ./lokole/venv/lib/python3.7/site-packages (from bcrypt==3.1.7->opwen-email-client) (1.13.0)
Requirement already satisfied: cffi>=1.1 in ./lokole/venv/lib/python3.7/site-packages (from bcrypt==3.1.7->opwen-email-client) (1.13.2)
Requirement already satisfied: zstandard>=0.10.2; extra == "zstd" in ./lokole/venv/lib/python3.7/site-packages (from xtarfile[zstd]==0.0.2->opwen-email-client) (0.12.0)
Requirement already satisfied: marshmallow>=2.7.0 in ./lokole/venv/lib/python3.7/site-packages (from environs==6.1.0->opwen-email-client) (3.3.0)
Requirement already satisfied: python-dotenv in ./lokole/venv/lib/python3.7/site-packages (from environs==6.1.0->opwen-email-client) (0.10.3)
Requirement already satisfied: alembic>=0.7 in ./lokole/venv/lib/python3.7/site-packages (from Flask-Migrate==2.5.2->opwen-email-client) (1.3.2)
Requirement already satisfied: certifi>=2017.4.17 in ./lokole/venv/lib/python3.7/site-packages (from requests==2.22.0->opwen-email-client) (2019.11.28)
Requirement already satisfied: idna<2.9,>=2.5 in ./lokole/venv/lib/python3.7/site-packages (from requests==2.22.0->opwen-email-client) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./lokole/venv/lib/python3.7/site-packages (from requests==2.22.0->opwen-email-client) (1.25.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./lokole/venv/lib/python3.7/site-packages (from requests==2.22.0->opwen-email-client) (3.0.4)
Requirement already satisfied: soupsieve>=1.2 in ./lokole/venv/lib/python3.7/site-packages (from beautifulsoup4==4.8.1->opwen-email-client) (1.9.5)
Requirement already satisfied: python-dateutil in ./lokole/venv/lib/python3.7/site-packages (from python-crontab==2.4.0->opwen-email-client) (2.8.1)
Requirement already satisfied: speaklater>=1.2 in ./lokole/venv/lib/python3.7/site-packages (from Flask-BabelEx==0.9.3->opwen-email-client) (1.3)
Requirement already satisfied: amqp<2.6,>=2.5.2 in ./lokole/venv/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery[sqlalchemy]==4.3.0->opwen-email-client) (2.5.2)
Requirement already satisfied: importlib-metadata>=0.18; python_version < "3.8" in ./lokole/venv/lib/python3.7/site-packages (from kombu<5.0,>=4.4.0->celery[sqlalchemy]==4.3.0->opwen-email-client) (1.3.0)
Requirement already satisfied: blinker in ./lokole/venv/lib/python3.7/site-packages (from Flask-Principal>=0.3.3->Flask-Security==3.0.0->opwen-email-client) (1.4)
Requirement already satisfied: MarkupSafe>=0.23 in ./lokole/venv/lib/python3.7/site-packages (from Jinja2>=2.10.1->Flask==1.1.1->opwen-email-client) (1.1.1)
Requirement already satisfied: pycparser in ./lokole/venv/lib/python3.7/site-packages (from cffi>=1.1->bcrypt==3.1.7->opwen-email-client) (2.19)
Requirement already satisfied: python-editor>=0.3 in ./lokole/venv/lib/python3.7/site-packages (from alembic>=0.7->Flask-Migrate==2.5.2->opwen-email-client) (1.0.4)
Requirement already satisfied: Mako in ./lokole/venv/lib/python3.7/site-packages (from alembic>=0.7->Flask-Migrate==2.5.2->opwen-email-client) (1.1.0)
Requirement already satisfied: zipp>=0.5 in ./lokole/venv/lib/python3.7/site-packages (from importlib-metadata>=0.18; python_version < "3.8"->kombu<5.0,>=4.4.0->celery[sqlalchemy]==4.3.0->opwen-email-client) (0.6.0)
Requirement already satisfied: more-itertools in ./lokole/venv/lib/python3.7/site-packages (from zipp>=0.5->importlib-metadata>=0.18; python_version < "3.8"->kombu<5.0,>=4.4.0->celery[sqlalchemy]==4.3.0->opwen-email-client) (8.0.2)
Building wheels for collected packages: Pillow
  Building wheel for Pillow (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/pi/lokole/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ba8hudv/Pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5ba8hudv/Pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-f_uzzw0_ --python-tag cp37
       cwd: /tmp/pip-install-5ba8hudv/Pillow/
  Complete output (172 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.7
  creating build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/FontFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/_binary.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/__main__.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/_util.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/Image.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/__init__.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/TarIO.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/features.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/_version.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-3.7/PIL
  copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-3.7/PIL
  running egg_info
  writing src/Pillow.egg-info/PKG-INFO
  writing dependency_links to src/Pillow.egg-info/dependency_links.txt
  writing top-level names to src/Pillow.egg-info/top_level.txt
  reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching '*.c'
  warning: no files found matching '*.h'
  warning: no files found matching '*.sh'
  warning: no previously-included files found matching '.appveyor.yml'
  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 '.readthedocs.yml'
  warning: no previously-included files found matching 'azure-pipelines.yml'
  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
  no previously-included directories found matching '.azure-pipelines'
  no previously-included directories found matching '.travis'
  writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
  running build_ext


  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html

  Traceback (most recent call last):
    File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 888, in <module>
      zip_safe=not (debug_build() or PLATFORM_MINGW),
    File "/home/pi/lokole/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/home/pi/lokole/venv/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 687, in build_extensions
      raise RequiredDependencyException(f)
  __main__.RequiredDependencyException: jpeg

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 903, in <module>
      raise RequiredDependencyException(msg)
  __main__.RequiredDependencyException:

  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html


  ----------------------------------------
  ERROR: Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build Pillow
Installing collected packages: Pillow, opwen-email-client
    Running setup.py install for Pillow ... error
    ERROR: Command errored out with exit status 1:
     command: /home/pi/lokole/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ba8hudv/Pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5ba8hudv/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-record-9wau95o_/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/lokole/venv/include/site/python3.7/Pillow
         cwd: /tmp/pip-install-5ba8hudv/Pillow/
    Complete output (174 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/FontFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/_binary.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/__main__.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/_util.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/Image.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/__init__.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/TarIO.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/features.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/_version.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-3.7/PIL
    copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-3.7/PIL
    running egg_info
    writing src/Pillow.egg-info/PKG-INFO
    writing dependency_links to src/Pillow.egg-info/dependency_links.txt
    writing top-level names to src/Pillow.egg-info/top_level.txt
    reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no files found matching '*.h'
    warning: no files found matching '*.sh'
    warning: no previously-included files found matching '.appveyor.yml'
    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 '.readthedocs.yml'
    warning: no previously-included files found matching 'azure-pipelines.yml'
    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
    no previously-included directories found matching '.azure-pipelines'
    no previously-included directories found matching '.travis'
    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
    running build_ext


    The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html

    Traceback (most recent call last):
      File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 888, in <module>
        zip_safe=not (debug_build() or PLATFORM_MINGW),
      File "/home/pi/lokole/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/pi/lokole/venv/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
        self.run_command('build')
      File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 687, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: jpeg

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-5ba8hudv/Pillow/setup.py", line 903, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:

    The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html


    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/pi/lokole/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ba8hudv/Pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5ba8hudv/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-record-9wau95o_/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/lokole/venv/include/site/python3.7/Pillow Check the logs for full command output.

Installing libjpeg-dev on the host system fixes the issue.

@c-w c-w requested a review from sbathgate Dec 25, 2019
@codecov-io

This comment has been minimized.

Copy link

codecov-io commented Dec 25, 2019

Codecov Report

Merging #237 into master will decrease coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #237      +/-   ##
==========================================
- Coverage    67.3%   67.13%   -0.17%     
==========================================
  Files          31       31              
  Lines        1832     1841       +9     
==========================================
+ Hits         1233     1236       +3     
- Misses        599      605       +6
Impacted Files Coverage Δ
opwen_email_client/webapp/jinja.py 25.58% <0%> (+2.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8cdef50...14162c3. Read the comment docs.

@c-w c-w merged commit e288205 into master Dec 25, 2019
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
pyup.io/safety-ci No dependencies with known security vulnerabilities.
Details
@c-w c-w deleted the fix-install branch Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.