The current version of rst2pdf in the tree is not compatible with the recently stabilised dev-python/reportlab-2.4 . This issue was fixed upstream[1] and will require a version bump to 0.13.1 (~x86 ebuild attached) or will need to depend on dev-python/reportlab-2.3 . [1] dev-python/rst2pdf-0.12.3 incompatible with dev-python/reportlab-2.4 Reproducible: Always Steps to Reproduce: 1.Install dev-python/rst2pdf and dev-python/reportlab-2.4 gets pulled in as dependancy 2.Try to run rst2pdf on an existing .rst file 3. Actual Results: Traceback (most recent call last): File "/usr/bin/rst2pdf", line 9, in <module> load_entry_point('rst2pdf==0.12.3', 'console_scripts', 'rst2pdf')() File "/usr/lib/python2.6/site-packages/rst2pdf/createpdf.py", line 2447, in main compressed=options.compressed) File "/usr/lib/python2.6/site-packages/rst2pdf/createpdf.py", line 1850, in createPdf pdfdoc.multiBuild(elements) File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 955, in multiBuild self.build(tempStory, **buildKwds) File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 877, in build self.handle_flowable(flowables) File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 753, in handle_flowable self.handle_pageBreak() File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 586, in handle_pageBreak self.handle_pageEnd() File "/usr/lib/python2.6/site-packages/reportlab/platypus/doctemplate.py", line 566, in handle_pageEnd self.pageTemplate.afterDrawPage(self.canv, self) File "/usr/lib/python2.6/site-packages/rst2pdf/createpdf.py", line 2161, in afterDrawPage container.drawOn(canv, hx, self.hy) File "/usr/lib/python2.6/site-packages/reportlab/platypus/flowables.py", line 739, in drawOn x = self._hAlignAdjust(x,_sW*scale) AttributeError: _Container instance has no attribute '_hAlignAdjust' Expected Results: Conversion of .rst -> .pdf
Created attachment 224189 [details] rst2pdf-0.13.1.ebuild Version bump to dev-python/rst2pdf-0.13.1.tar.gz
Created attachment 224191 [details] rst2pdf-0.12.3.ebuild Mask dev-python/reportlab-2.4 for existing version
Created attachment 224193 [details] rst2pdf-0.12.3.ebuild.patch Patch file, if sticking with current version (version bump looks good though)
Thanks! Strangely enough it worked for me. But I have bumped the version and applied your changes in light of the upstream bug report.