question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not sure if this is a bug in OCR-D, maybe someone with more pip kungfu can enlighten us?

#!/bin/sh                                                                                                               
cd `mktemp -d`                                                                                                          
                                                                                                                        
virtualenv -p /usr/bin/python3 venv                                                                                     
. venv/bin/activate                                                                                                     
                                                                                                                        
pip install ocrd ocrd_utils | grep -i pillow       

yields:

% sh pillow-error.sh
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/tmp.XKB4hlZZVe/venv/bin/python3
Also creating executable in /tmp/tmp.XKB4hlZZVe/venv/bin/python
Installing setuptools, pip, wheel...done.
Collecting Pillow>=5.3.0 (from ocrd)
  Using cached https://files.pythonhosted.org/packages/a4/da/2bd281c875686230eabc13d20ab590ea617563b0e746abfb0698c4d5b645/Pillow-6.1.0-cp37-cp37m-manylinux1_x86_64.whl
ERROR: ocrd-utils 1.0.0b19 has requirement Pillow==5.4.1, but you'll have pillow 6.1.0 which is incompatible.
Installing collected packages: lxml, Pillow, bagit, urllib3, certifi, chardet, idna, requests, numpy, opencv-python, MarkupSafe, Jinja2, click, Werkzeug, itsdangerous, Flask, pyyaml, wrapt, Deprecated, six, pyrsistent, attrs, jsonschema, bagit-profile, ocrd, ocrd-utils
Successfully installed Deprecated-1.2.0 Flask-1.1.1 Jinja2-2.10.1 MarkupSafe-1.1.1 Pillow-6.1.0 Werkzeug-0.16.0 attrs-19.1.0 bagit-1.7.0 bagit-profile-1.3.0 certifi-2019.9.11 chardet-3.0.4 click-7.0 idna-2.8 itsdangerous-1.1.0 jsonschema-3.0.2 lxml-4.4.1 numpy-1.17.2 ocrd-0.15.2 ocrd-utils-1.0.0b19 opencv-python-4.1.1.26 pyrsistent-0.15.4 pyyaml-5.1.2 requests-2.22.0 six-1.12.0 urllib3-1.25.6 wrapt-1.11.2

So what pip does here is

  1. Installing Pillow 6.1.0 because of ocrd’s dependency on Pillow>=5.3.0
  2. Complaining about Pillow 6.1.0 because of ocrd-utils’ (!) dependency on Pillow 5.4.1

😖

Motivation for this bug report is that i get a red error message on every install:

ERROR: ocrd-utils 1.0.0b19 has requirement Pillow==5.4.1, but you'll have pillow 6.1.0 which is incompatible.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bertskycommented, Oct 1, 2019

@mikegerber The problem does affect Pillow 6.1, see here.

0reactions
kbacommented, Oct 24, 2019

Please have a look at #336

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - Pillow (PIL Fork) 9.3.0 documentation
The following instructions will install Pillow with support for most common image formats. See External Libraries for a full list of external libraries ......
Read more >
Pillow - PyPI
Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. As...
Read more >
pip, PIL and Pillow - Stack Overflow
This is entirely correct. Pillow is a fork, alternative re-packaging of PIL. From the PyPI page for Pillow: The fork author's goal is...
Read more >
PIP Install PIL/Pillow – A Helpful Illustrated Guide - Finxter
PIL is an abbreviation of Python Imaging Library and it adds image processing to Python. In 2011, PIL has been discontinued—its unofficial successor ......
Read more >
Python: Pillow (a fork of PIL) - GeeksforGeeks
It incorporates lightweight image processing tools that aids in editing, creating and saving images. Support for Python Imaging Library got ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found