Description of problem: [andrey@henneberg-nb postcard]$ /usr/bin/pisa **************************************************** IMPORT ERROR! Reportlab Version 2.1+ is needed! **************************************************** The following Python packages are required for PISA: - Reportlab Toolkit >= 2.2 <http://www.reportlab.org/> - HTML5lib >= 0.11.1 <http://code.google.com/p/html5lib/> Optional packages: - pyPDF <http://pybrary.net/pyPdf/> - PIL <http://www.pythonware.com/products/pil/> No handlers could be found for logger "xhtml2pdf" Traceback (most recent call last): File "/usr/bin/pisa", line 9, in <module> load_entry_point('xhtml2pdf==0.0.5', 'console_scripts', 'pisa')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 357, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2394, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2108, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.7/site-packages/xhtml2pdf/__init__.py", line 41, in <module> from xhtml2pdf.util import REPORTLAB22 File "/usr/lib/python2.7/site-packages/xhtml2pdf/util.py", line 39, in <module> raise ImportError("Reportlab Version 2.1+ is needed!") ImportError: Reportlab Version 2.1+ is needed! [andrey@henneberg-nb postcard]$ rpm -q python-reportlab python-reportlab-3.1.8-1.fc20.i686 Version-Release number of selected component: python-xhtml2pdf-0.0.5-1.fc20 Additional info: reporter: libreport-2.2.3 cmdline: /usr/bin/python /usr/bin/pisa dso_list: python-setuptools-1.4.2-1.fc20.noarch executable: /usr/bin/pisa kernel: 3.15.6-200.fc20.i686+PAE runlevel: N 5 type: Python uid: 1000 Truncated backtrace: #1 <module> in /usr/lib/python2.7/site-packages/xhtml2pdf/util.py:39 #2 <module> in /usr/lib/python2.7/site-packages/xhtml2pdf/__init__.py:41 #3 load in /usr/lib/python2.7/site-packages/pkg_resources.py:2108 #4 load_entry_point in /usr/lib/python2.7/site-packages/pkg_resources.py:2394 #5 load_entry_point in /usr/lib/python2.7/site-packages/pkg_resources.py:357 #6 <module> in /usr/bin/pisa:9
Created attachment 921474 [details] File: backtrace
Created attachment 921475 [details] File: environ
This is caused because there is python-reportlab-3.1.8-4.fc21.x86_64 available in Fedora 21, while refuses to work with other version than 2.x >= 2.2. I have tried to comment out the checks: xhtml2pdf/util.py:38:39 if not (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"): raise ImportError("Reportlab Version 2.1+ is needed!") xhtml2pdf/__init__.py line:43:44 if not REPORTLAB22: raise ImportError, "Reportlab Toolkit Version 2.2 or higher needed" and it seems to work fine. So you may probably just update the conditions to allow reportlab-3.x.
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Please reopen. Reproduced with Fedora 22. [mrozowsk@cnu420dqzs ~]$ xhtml2pdf **************************************************** IMPORT ERROR! Reportlab Version 2.1+ is needed! **************************************************** The following Python packages are required for PISA: - Reportlab Toolkit >= 2.2 <http://www.reportlab.org/> - HTML5lib >= 0.11.1 <http://code.google.com/p/html5lib/> Optional packages: - pyPDF <http://pybrary.net/pyPdf/> - PIL <http://www.pythonware.com/products/pil/> No handlers could be found for logger "xhtml2pdf" Traceback (most recent call last): File "/usr/bin/xhtml2pdf", line 9, in <module> load_entry_point('xhtml2pdf==0.0.5', 'console_scripts', 'xhtml2pdf')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load return self.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/site-packages/xhtml2pdf/__init__.py", line 41, in <module> from xhtml2pdf.util import REPORTLAB22 File "/usr/lib/python2.7/site-packages/xhtml2pdf/util.py", line 39, in <module> raise ImportError("Reportlab Version 2.1+ is needed!") ImportError: Reportlab Version 2.1+ is needed! [mrozowsk@cnu420dqzs Documentation]$ rpm -q python-reportlab python-reportlab-3.1.8-4.fc22.x86_64
This project seems to be dead upstream (more or less). Unfortunately, I don't have the time to fix it. Latest upstream requires reportlab version 2.5 (no other). Reportlab is currently in version 3.1.8 in fedora 22.