Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310137 - dev-python/rst2pdf-0.12.3 incompatible with dev-python/reportlab-2.4
Summary: dev-python/rst2pdf-0.12.3 incompatible with dev-python/reportlab-2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ben de Groot (RETIRED)
URL: http://code.google.com/p/rst2pdf/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 21:21 UTC by Jamie Learmonth
Modified: 2010-03-21 15:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
rst2pdf-0.13.1.ebuild (rst2pdf-0.13.1.ebuild,1.43 KB, text/plain)
2010-03-18 21:23 UTC, Jamie Learmonth
Details
rst2pdf-0.12.3.ebuild (rst2pdf-0.12.3.ebuild,1.43 KB, text/plain)
2010-03-18 21:24 UTC, Jamie Learmonth
Details
rst2pdf-0.12.3.ebuild.patch (rst2pdf-0.12.3.ebuild.patch,613 bytes, text/plain)
2010-03-18 21:29 UTC, Jamie Learmonth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie Learmonth 2010-03-18 21:21:00 UTC
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
Comment 1 Jamie Learmonth 2010-03-18 21:23:04 UTC
Created attachment 224189 [details]
rst2pdf-0.13.1.ebuild

Version bump to dev-python/rst2pdf-0.13.1.tar.gz
Comment 2 Jamie Learmonth 2010-03-18 21:24:14 UTC
Created attachment 224191 [details]
rst2pdf-0.12.3.ebuild

Mask dev-python/reportlab-2.4 for existing version
Comment 3 Jamie Learmonth 2010-03-18 21:29:23 UTC
Created attachment 224193 [details]
rst2pdf-0.12.3.ebuild.patch

Patch file, if sticking with current version (version bump looks good though)
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2010-03-21 15:49:51 UTC
Thanks! Strangely enough it worked for me. But I have bumped the version and applied your changes in light of the upstream bug report.