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.

[BUG]: PILLOW_VERSION

See original GitHub issue

Thank you for helping us improve solaris!

Summary of the bug

There appears to be an issue with PIL version

Steps to reproduce the bug

By following the installation instructions you get the following error:

  conda env create -n solaris -f environment-gpu.yml
  conda activate solaris
  pip install .
  solaris_run_ml --help

...
ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (anaconda3/envs/solaris/lib/python3.7/site-packages/PIL/__init__.py)

Installing Pillow 6.1 appears to resolve the issue:

pip install Pillow==6.1
solaris_run_ml --help

usage: solaris_run_ml [-h] --config CONFIG

Run a Solaris ML pipeline based on a config YAML

optional arguments:
  -h, --help            show this help message and exit
  --config CONFIG, -c CONFIG
                        Full path to a YAML-formatted config file specifying
                        parameters for model training and/or inference.

Same behavior occurred in master and v0.2.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hugovkcommented, Jan 16, 2020

torchvision v0.5.0 has been released with the fix:

  1. Require torchvision>=0.5.0
  2. If Pillow was temporarily pinned, remove the pin
1reaction
nrweircommented, Jan 9, 2020

Thanks for the heads up @hugovk. In this case I’ll probably let users manage it themselves rather than explicitly pin in the repo since it’ll be fixed in a few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Pillow (PIL Fork) 9.3.0 documentation
Pillow is released quarterly on January 2nd, April 1st, July 1st and October 15th. Patch releases are created if the latest release contains...
Read more >
Issues · python-pillow/Pillow - GitHub
Contribute to python-pillow/Pillow development by creating an account on GitHub. ... Issues: python-pillow/Pillow. Release Pillow 9.4.0 on January 2, 2023.
Read more >
pillow package : Ubuntu - Launchpad Bugs
pillow (Ubuntu) 12. Undecided. New. #1638183 package python-imaging 2.9.0-1 failed to install/upgrade: package is in a very bad inconsistent state; ...
Read more >
Pillow 2.2.1 - PyPI
Pillow 2.0.0 added Python 3 support and includes many bug fixes from many contributors. ... Pillow has been tested with version 0.1.3, which...
Read more >
Wierd pillow version conflict ( Python 3.7.9 ) - Stack Overflow
I had the same problem with a fresh environment, with all packages at their newest version. It might be a bug. A quick...
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