Package: rst2pdf
Version: 0.16-2
Severity: normal

--use-floating-images was introduced recently and this issue was reported and 
presumably fixed:

https://code.google.com/p/rst2pdf/issues/detail?id=186

but seems to still occur.  I have a snippet:

    .. image:: logo_300dpi.png
       :alt: logo
       :align: right
       :width: 1000px

    To blah blah

and building using

  rst2pdf --inline-footnotes --use-floating-images $<

and it leads to

/usr/bin/rst2pdf:5: UserWarning: Module paste was already imported from None, 
but /usr/lib/python2.7/dist-packages is being added to sys.path
  from pkg_resources import load_entry_point
Traceback (most recent call last):
  File "/usr/bin/rst2pdf", line 9, in <module>
    load_entry_point('rst2pdf==0.16', 'console_scripts', 'rst2pdf')()
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 1456, in main
    compressed=options.compressed)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 666, in 
createPdf
    pdfdoc.multiBuild(elements)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", 
line 960, in multiBuild
    self.build(tempStory, **buildKwds)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", 
line 880, in build
    self.handle_flowable(flowables)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 774, in 
handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File "/usr/lib/pymodules/python2.7/rst2pdf/flowables.py", line 555, in add
    return Frame.add(self, flowable, canv, trySplit)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py", line 
159, in _add
    w, h = flowable.wrap(aW, h)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 
563, in wrap
    W,H = _listWrapOn(self._content,aW,self.canv,dims=dims)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 
503, in _listWrapOn
    w,h = f.wrapOn(canv,availWidth,0xfffffff)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 
119, in wrapOn
    w, h = self.wrap(aW,aH)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 
1055, in wrap
    wI, hI = I._restrictSize(availWidth,availHeight)
AttributeError: MyImage instance has no attribute '_restrictSize'
make: *** [research_statement.pdf] Error 1


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rst2pdf depends on:
ii  python                2.7.2-9   
ii  python-docutils       0.7-4     
ii  python-pdfrw          0+svn136-3
ii  python-pkg-resources  0.6.16-1  
ii  python-pygments       1.4+dfsg-2
ii  python-reportlab      2.5-1.1   
ii  python-setuptools     0.6.16-1  
ii  python-simplejson     2.1.6-1   
ii  python-support        1.0.14    

rst2pdf recommends no packages.

Versions of packages rst2pdf suggests:
ii  python-aafigure      <none>      
ii  python-imaging       1.1.7-4     
ii  python-matplotlib    1.1.0-1     
ii  python-sphinx        1.0.8+dfsg-2
ii  python-uniconvertor  1.1.4-1+b2  

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to