Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43861 - [hplip] Command line scanning with hp-scan throw AssertionError

Attached to Project: Arch Linux
Opened by Stephan Windmüller (windy) - Tuesday, 17 February 2015, 19:18 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 19 February 2015, 20:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgrading hplip to the current version
(which required me to install python-pillow and
python-reportlab) I am getting this error when
trying to use hp-scan:

[...]
Closing device.
Traceback (most recent call last):
File "/usr/bin/hp-scan", line 1029, in <module>
c.drawInlineImage(image, (tlx/0.3528), (tly/0.3528), ((brx-tlx)/0.3528),((bry-tly)/0.3528))
File "/usr/lib/python3.4/site-packages/reportlab/pdfgen/canvas.py", line 826, in drawInlineImage
img_obj = PDFImage(image, x,y, width, height)
File "/usr/lib/python3.4/site-packages/reportlab/pdfgen/pdfimages.py", line 40, in __init__
self.getImageData()
File "/usr/lib/python3.4/site-packages/reportlab/pdfgen/pdfimages.py", line 165, in getImageData
imagedata, imgwidth, imgheight = self.PIL_imagedata()
File "/usr/lib/python3.4/site-packages/reportlab/pdfgen/pdfimages.py", line 127, in PIL_imagedata
assert len(raw) == rowstride*imgheight, "Wrong amount of data for image"
AssertionError: Wrong amount of data for image


Additional info:
* hplip 3.15.2-3

Steps to reproduce:

% hp-scan --size=a4 -s pdf -o file.pdf
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 19 February 2015, 20:19 GMT
Reason for closing:  None
Comment by Andreas Radke (AndyRTR) - Wednesday, 18 February 2015, 20:33 GMT
Make sure you have all proper python v3 optional dependencies installed. Some more have been replaced from python2 to python3 variants.
Comment by Stephan Windmüller (windy) - Wednesday, 18 February 2015, 20:49 GMT
Yesterday I installed all optional dependencies but it did not work. Trying the same today, no more error.

Was one of the python packages updated? However, bug may be closed. Thanks!

Loading...