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.

Jupyter doesn't run due to change in Pillow

See original GitHub issue

from deoldify.visualize import * plt.style.use('dark_background') import warnings warnings.filterwarnings("ignore", category=UserWarning, message=".*?Your .*? set is empty.*?")

Throw

ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/home/ubuntu/miniconda3/envs/deoldify/lib/python3.7/site-packages/PIL/__init__.py)

And from that location

# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION was removed in Pillow 9.0.0.
# Use __version__ instead.
__version__ = _version.__version__
del _version

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
janticcommented, Jun 21, 2022

Hey everyone-

I’ve got fixes in for this and a bunch of other stuff (like supporting the latest GPUs with the latest version of PyTorch). Hopefully you guys should be good to go now.

1reaction
enessolcommented, May 14, 2022

@prettydeep Thanks a lot it works! I had almost given up on installing DeOldify before you helped me out. I do appreciate your assistance 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading image using Pillow fails in Jupyter notebook
The problem was related to another import: I was importing Tensorflow before PIL, which caused the problem. Same issue ...
Read more >
Installed package won't import in notebook #2359 - GitHub
I'm using the notebook from a conda env, and have the environment set up with all of my required packages installed.
Read more >
Installing Python Packages from a Jupyter Notebook
I installed package X and now I can't import it in the notebook. ... installs the package in the currently-running Jupyter kernel (thanks...
Read more >
Trying to understand which environment is active when ...
According to the docs, when I start a Jupyter notebook from the terminal it should start in the virtual environment (venv).
Read more >
3 Ways to Add Images to Your Jupyter Notebook - Essi Alizadeh
Approach 1: Add an image from a local file · The local or absolute path provided may not work well on another system....
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