Bug#613836: Unable to run pkpgcounter on Squeeze
On Thu, Feb 17, 2011 at 05:10:13PM +0100, Sébastien ERMACORE wrote: > Package: pkpgcounter > Version: 3.50-7 > Severity: important > > > When running the following command : pkpgcounter --colorspace=cmy > --resolution=300 file.pdf > console returns : > > Traceback (most recent call last): > File "/usr/bin/pkpgcounter", line 109, in > analyzer.main() > File "/usr/lib/pymodules/python2.6/pkpgpdls/analyzer.py", line 235, in main > (cspace, pages) = parser.getInkCoverage() > File "/usr/lib/pymodules/python2.6/pkpgpdls/analyzer.py", line 88, > in getInkCoverage > result = inkcoverage.getInkCoverage(filename, cspace) > File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line > 124, in getInkCoverage > result.append(computation(image, nbpixels)) > File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line > 93, in getPercentCMY > result = getPercentRGB(img, nbpix) > File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line > 89, in getPercentRGB > return getPercent(img, nbpix) > File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line > 41, in getPercent > bands = img.split() > File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1497, in split > if self.im.bands == 1: > AttributeError: 'NoneType' object has no attribute 'bands' I can confirm the problem. To me it looks like a bug in the Python Imaging Library, unless its API has changed. I'll look into this ASAP. bye Jerome Alet -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#613836: Unable to run pkpgcounter on Squeeze
Package: pkpgcounter Version: 3.50-7 Severity: important When running the following command : pkpgcounter --colorspace=cmy --resolution=300 file.pdf console returns : Traceback (most recent call last): File "/usr/bin/pkpgcounter", line 109, in analyzer.main() File "/usr/lib/pymodules/python2.6/pkpgpdls/analyzer.py", line 235, in main (cspace, pages) = parser.getInkCoverage() File "/usr/lib/pymodules/python2.6/pkpgpdls/analyzer.py", line 88, in getInkCoverage result = inkcoverage.getInkCoverage(filename, cspace) File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line 124, in getInkCoverage result.append(computation(image, nbpixels)) File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line 93, in getPercentCMY result = getPercentRGB(img, nbpix) File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line 89, in getPercentRGB return getPercent(img, nbpix) File "/usr/lib/pymodules/python2.6/pkpgpdls/inkcoverage.py", line 41, in getPercent bands = img.split() File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1497, in split if self.im.bands == 1: AttributeError: 'NoneType' object has no attribute 'bands' NB : this exact command works well on a lenny updated distribution, with the same arguments and the same targetted file -- System Information: Debian Release: 6.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pkpgcounter depends on: ii ghostscript 8.71~dfsg2-9 The GPL Ghostscript PostScript/PDF ii python 2.6.6-3+squeeze5 interactive high-level object-orie ii python-imaging 1.1.7-2 Python Imaging Library ii python-support 1.0.10 automated rebuilding support for P Versions of packages pkpgcounter recommends: ii imagemagick 8:6.6.0.4-3 image manipulation programs ii python-psyco 1.6-2 Python specializing compiler ii texlive-latex-base 2009-11 TeX Live: Basic LaTeX packages ii xauth1:1.0.4-1 X authentication utility ii xvfb 2:1.7.7-11 Virtual Framebuffer 'fake' X serve Versions of packages pkpgcounter suggests: pn abiword(no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org