You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a G DATA Antivirus. When I run 'pip install pillow', I get a virus detection popup. Please find a log (translated by me from Polish) attached below:
Time started Type File name Status
2020-10-06 14:47:02 Interactive string_dimension.tiff Ready
File: C:\Users<my user name>\AppData\Local\Temp\pip-install-6wdns6nr\pillow\Tests\images\string_dimension.tiff
Virus: Generic.Exploit.CVE-2017-11255.A (Scanner B)
Scanners: Engine A: AVA 25.27239, Engine B: GD 27.20416
What did you do?
run 'pip install pillow'
What did you expect to happen?
well, install the package
What actually happened?
a virus popup
What are your OS, Python and Pillow versions?
OS: Windows 10 Home
Python: python --version
Python 3.8.2
Pillow: that's the issue
I contacted the GDATA and they need the file to send it to the lab. I could do it myself, but I think your project could benefit from knowing what exactly happened and if it's a false positive, then why. If not, delete this bug report.
This image was added as part of a fix for a security vulnerability (CVE-2019-16865), and is part of the test suite to make sure it remains fixed. It's not used by production code.
Please feel free to send the image to GDATA and link them to here or the following links:
Looking at the Windows wheels (Pillow-7.2.0-cp38-cp38-win*.whl), for some reason it says "it is not compatible with this Python":
Skipping link https://files.pythonhosted.org/packages/9c/f0/00f71c1a52859f8f1b82ed6bc2bf5890321511b642c01242d38df02bb5d0/Pillow-7.2.0-cp38-cp38-win32.whl#sha256=725aa6cfc66ce2857d585f06e9519a1cc0ef6d13f186ff3447ab6dff0a09bc7f (from https://pypi.org/simple/pillow/) (requires-python:>=3.5); it is not compatible with this Python
Skipping link https://files.pythonhosted.org/packages/91/d2/30ecd905746d1fee4004daae3f0051bf4b305bee1fe578bd7d1ea712d571/Pillow-7.2.0-cp38-cp38-win_amd64.whl#sha256=a060cf8aa332052df2158e5a119303965be92c3da6f2d93b6878f0ebca80b2f6 (from https://pypi.org/simple/pillow/) (requires-python:>=3.5); it is not compatible with this Python
Please could you also copy and paste the output of:
Traceback (most recent call last):
File "C:\Users<my user name>PycharmProjects<project name>\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip_internal\cli\base_command.py", line 179, in main
I think updating pip might be all that is needed here.
Activity
wtarnawski commentedon Oct 12, 2020
Here's output
nulano commentedon Oct 12, 2020
Likely related to #4730 / #4929 / #4103
hugovk commentedon Oct 12, 2020
Thanks for the report.
You can find the image here: https://github.com/python-pillow/Pillow/blob/master/Tests/images/string_dimension.tiff
This image was added as part of a fix for a security vulnerability (CVE-2019-16865), and is part of the test suite to make sure it remains fixed. It's not used by production code.
Please feel free to send the image to GDATA and link them to here or the following links:
This is similar to #4730, so we could fix it on our side like #4929.
There's something else going on here. You're trying to install for Python 3.8 on Windows but it's attempting to build from source and failing.
It's usually tricky to build from source on Windows, and that's why we create prebuilt binary wheels, but for some reason it's not picking those up.
If you'd like to debug this, you could post the output of
pip install pillow --verbose --no-cache-dirwtarnawski commentedon Oct 12, 2020
Thank you for a quick response! Yes please, I'd like to debug.
pip install pillow --verbose --no-cache-dir > output.txtoutput.txt
hugovk commentedon Oct 12, 2020
Thanks!
Looking at the Windows wheels (
Pillow-7.2.0-cp38-cp38-win*.whl), for some reason it says "it is not compatible with this Python":Please could you also copy and paste the output of:
nulano commentedon Oct 12, 2020
Looks like it might be 19.0.3:
I think updating pip might be all that is needed here.
hugovk commentedon Oct 12, 2020
That'll be it, for Python 3.8 on Windows, you need pip 19.3 or newer to install the prebuilt binary wheels.
We recommend upgrading pip before installing Pillow:
wtarnawski commentedon Oct 12, 2020
Damn, I missed that I was inside the virtualenv the whole time... Thanks guys :)
Could I ask you one thing more? When I run pip install --upgrade pip --verbose I get this Exception:
output.txt
EDIT: or maybe should I just destroy the old venv and make new one, with upgraded pip?
hugovk commentedon Oct 12, 2020
Searching, looks similar to pypa/pip#7069, you could try the suggestions in there. It might be cleaner to make a fresh venv.
wtarnawski commentedon Oct 13, 2020
OK, I will do it. Can I somehow send you a cookie for help? :)
hugovk commentedon Oct 13, 2020
A 👍 is enough :)
radarhere commentedon Oct 19, 2020
I've created #4993 to resolve this.