Bug 1267446

Summary: Missing Requires: on pillow
Product: [Fedora] Fedora Reporter: Ben Boeckel <fedora>
Component: python-reportlabAssignee: William Moreno <williamjmorenor>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: fri8k, i, kevin, lenz, mgautier, peter, sanjay.ankur, sascha.zantis, sergio.pasra, yamato
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-reportlab-3.3.0-1.fc23 python-reportlab-3.3.0-1.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-24 05:21:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ben Boeckel 2015-09-30 05:02:57 UTC
Traceback (most recent call last):
  File "/usr/bin/rst2pdf", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pillow==2.0.0,>=2.4.0' distribution was not found and is required by reportlab

Comment 1 Ben Boeckel 2015-09-30 05:04:00 UTC
Hrm. I do have python-pillow installed:

python-pillow-2.9.0-2.fc24.x86_64

Comment 2 Fedora Admin XMLRPC Client 2015-10-25 09:18:50 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2015-10-26 08:56:15 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Peter Gordon 2015-10-28 16:04:34 UTC
This looks more likely to be a problem with RST2PDF; reassigning there.

Unfortunately, I'm not able to reproduce this -- if I simply run 'rst2pdf' with no parameters, it outputs an empty PDF source. Also, rst2pdf has a direct dependency on python-reportlab which in turn requires python-pillow; so at a glance it appears that this should always be satisfied...

Comment 5 Sascha Zantis 2015-11-07 16:34:10 UTC
I installed it today, and it doesn't work. Simply runnng 'rst2pdf' creates the following output:

Traceback (most recent call last):
  File "/usr/bin/rst2pdf", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pillow==2.0.0,>=2.4.0' distribution was not found and is required by reportlab


python-pillow and python3-pillow are installed.

Fedora 23 here.

Regards, 
Sascha

Comment 6 Masatake YAMATO 2015-11-08 20:16:55 UTC
I don't know well about python. However, following patch allows me to run rst2pdf.


--- usr/lib64/python2.7/site-packages/reportlab-3.1.8-py2.7.egg-info/requires.txt	2015-06-19 05:44:23.000000000 +0900
+++ /usr/lib64/python2.7/site-packages/reportlab-3.1.8-py2.7.egg-info/requires.txt	2015-11-09 05:02:43.253475135 +0900
@@ -1,3 +1,3 @@
-pillow ==2.0.0, >=2.4.0
+pillow>=2.4.0
 pip>=1.4.1
 setuptools>=2.2

...
I inspected the upstream hg repository and I found the same fix.

https://bitbucket.org/rptlab/reportlab/commits/4df3c1696c1beee18f8233ce1dfe39f1f7c03391

Comment 7 Peter Gordon 2015-11-09 04:51:51 UTC
Oh, I see. It cannot possibly have a version both equal to 2.0.0 and "at least 2.4.0" simultaneously. Good catch, I'll add that fix into Fedora's package after I finish this Topology homework. :)

Thanks and regards.

Comment 8 Peter Gordon 2015-11-30 07:18:57 UTC
*** Bug 1277162 has been marked as a duplicate of this bug. ***

Comment 9 Lenz Grimmer 2016-01-05 17:35:48 UTC
Any news on this one? I just stumbled over this bug myself and fixed it manually by applying the diff referenced in comment#6 above, but it would be nice to have it fixed in the upstream Fedora RPM as well :)

Could you please either apply this patch on top of the 3.1.8 RPM, or update python-reportlab to version 3.2.0 for FC32 as well?

Comment 10 Kevin Cousin 2016-01-26 17:48:42 UTC
I add this bug too. Workaround on comment#6 works well for me.

Comment 11 Jan Kurik 2016-02-24 13:48:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 12 Fedora Admin XMLRPC Client 2016-02-27 20:58:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 13 Fedora Update System 2016-04-11 15:13:42 UTC
python-reportlab-3.3.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-62bb566860

Comment 14 Fedora Update System 2016-04-11 15:14:16 UTC
python-reportlab-3.3.0-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e8237eeb5d

Comment 15 Fedora Update System 2016-04-12 10:52:52 UTC
python-reportlab-3.3.0-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e8237eeb5d

Comment 16 Fedora Update System 2016-04-13 09:27:22 UTC
python-reportlab-3.3.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-62bb566860

Comment 17 Dridi Boukelmoune 2016-04-17 21:09:38 UTC
*** Bug 1303121 has been marked as a duplicate of this bug. ***

Comment 18 Fedora Update System 2016-04-24 05:21:07 UTC
python-reportlab-3.3.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2016-05-07 12:10:37 UTC
python-reportlab-3.3.0-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.