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.

Pillow version problem

See original GitHub issue
python -m scripts.run_probe --method infonce-stdim --env-name Pong-v0

Traceback (most recent call last): File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/runpy.py”, line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/runpy.py”, line 109, in _get_module_details import(pkg_name) File “/home/duane/PycharmProjects/atari-representation-learning/scripts/init.py”, line 1, in <module> from .run_contrastive import train_encoder File “/home/duane/PycharmProjects/atari-representation-learning/scripts/run_contrastive.py”, line 8, in <module> from atariari.methods.dim_baseline import DIMTrainer File “/home/duane/PycharmProjects/atari-representation-learning/atariari/methods/dim_baseline.py”, line 13, in <module> from torchvision import transforms File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/init.py”, line 4, in <module> from torchvision import datasets File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/datasets/init.py”, line 9, in <module> from .fakedata import FakeData File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/datasets/fakedata.py”, line 3, in <module> from … import transforms File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/transforms/init.py”, line 1, in <module> from .transforms import * File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/transforms/transforms.py”, line 17, in <module> from . import functional as F File “/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/torchvision/transforms/functional.py”, line 5, in <module> from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’ (/home/duane/anaconda3/envs/atari-representation-learning/lib/python3.7/site-packages/PIL/init.py)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ankeshanandcommented, Jan 16, 2020

torchvision 0.5 is now released which fixes this. https://github.com/pytorch/vision/releases

1reaction
ankeshanandcommented, Jan 12, 2020

Thanks for double-checking the issue.

We haven’t felt the need to have CI support just yet, but that might change in the future. It would also warrant writing tests and having a GPU to run the tests. So I suggest we revisit this thread if there are more use-cases for having CI in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'PILLOW_VERSION' from 'PIL ...
I received ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' . When I specify the version pip install Pillow==6.1 , the problem is ...
Read more >
Could not import PILLOW_VERSION from PIL - Stack Overflow
Pillow 7.0.0 removed PILLOW_VERSION , you should use __version__ in your ... Currently using torchvision==0.4.2 and this solved my problem.
Read more >
Problems with using pillow – IDEs Support (IntelliJ Platform)
I have PyCharm 2022 and python 3.9 and pillow was preinstalled and listed under python interpreter as version 2.9. In the text box......
Read more >
How to Install Pillow on MacOS? - GeeksforGeeks
Step 2: Check if pip3 and python3 are correctly installed. python3 --version pip3 --version. checking python and pip version in macos. Step 3: ......
Read more >
Pillow 2.2.2 - PyPI
Pillow has been tested with version 0.1.3, which does not read transparent webp files. ... + Fixed problem with incremental parsing of PNG...
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