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 <module> > 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