AECgeeks / ifc-pipeline

Processing queue and front-end for visualizing BIM models with IfcOpenShell, Docker Compose and Flask
MIT License
155 stars 44 forks source link

Add missing libjpeg-dev to Dockerfile #11

Closed devwwb closed 3 years ago

devwwb commented 3 years ago

Pillow module needs libjpeg-dev when compiling from source

aothms commented 3 years ago

But we do a pip install Pillow right, can you explain?

devwwb commented 3 years ago

Running docker-compose up i get this error:

  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

After adding libjpeg-dev to Dockerfile Pillow builds ok.

aothms commented 3 years ago

Ok, thanks, never experienced that. Seems like it could be related to pip version if I do a quick search https://github.com/python-pillow/Pillow/issues/4242 Maybe we should pin some more versions to be safe.

But if this fixes the issue than that's also fine.

Thanks!