Description of problem: /usr/bin/xhtml2pdf-2.7 Traceback (most recent call last): File "/usr/bin/xhtml2pdf-2.7", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3095, in <module> @_call_aside File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in _build_master ws.require(__requires__) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 888, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pyPdf2' distribution was not found and is required by xhtml2pdf and after install pyDF2: Traceback (most recent call last): File "/usr/bin/xhtml2pdf-2.7", line 11, in <module> load_entry_point('xhtml2pdf==0.1a2', 'console_scripts', 'xhtml2pdf')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 476, 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 2700, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2318, in load return self.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2324, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/site-packages/xhtml2pdf/pisa.py", line 19, in <module> from xhtml2pdf.document import pisaDocument File "/usr/lib/python2.7/site-packages/xhtml2pdf/document.py", line 4, in <module> from xhtml2pdf.context import pisaContext File "/usr/lib/python2.7/site-packages/xhtml2pdf/context.py", line 30, in <module> import xhtml2pdf.parser File "/usr/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 17, in <module> from html5lib import treebuilders, inputstream ImportError: cannot import name inputstream Version-Release number of selected component (if applicable): python2-xhtml2pdf-0.1a2-8.fc28 python3-xhtml2pdf-0.1a2-8.fc28 Additional info: There seem to be newer releases at https://github.com/xhtml2pdf/xhtml2pdf Also the symlink /usr/bin/xhtml2pdf (in python3-xhtml2pdf) is broken, it points to ./xhtml2pdf-2 which does not exist.
Thanks, Till! I'm looking at this today.
It looks like this problem is fixed in upstream versions >= 0.2.1, but that requires python-html5lib >= 1.0.1. The latest version of python-html5lib in rawhide is 0.999999999-6.fc29. I'll open a bug with the maintainer of python-html5lib to see if we can get that package updated.
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. 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 '28'. 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 28 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 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 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.