[Python-apps-team] Bug#613836: Unable to run pkpgcounter on Squeeze

alet at librelogiciel.com alet at librelogiciel.com
Thu Feb 17 20:12:10 UTC 2011


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





More information about the Python-apps-team mailing list