Missing python-imaging

Chuck Forsberg WA7KGX N2469R caf at omen.com
Tue Mar 19 19:49:23 UTC 2013


On 03/18/2013 02:33 PM, Sandro Mani wrote:
>
> On 18.03.2013 22:22, Chuck Forsberg WA7KGX N2469R wrote:
>> On 03/18/2013 09:23 AM, Michael Cronenworth wrote:
>>> On 03/18/2013 11:18 AM, Chuck Forsberg WA7KGX N2469R wrote:
>>>> Python-imaging seems to be missing from Fedora 19 and rawhide.
>>>>
>>>> Pillow is installed but WSPR won't run because it can't import
>>>> the stuff that used to be in python-imaging.
>>> Chuck,
>>>
>>> You will find it helpful to read the FeatureList wiki page[1] when you
>>> are testing Fedora N+1 or Rawhide releases. The relevant page regarding
>>> your issue is here:
>>>
>>> http://fedoraproject.org/wiki/Features/Pillow
>>>
>>> Michael
>>>
>>> [1] http://fedoraproject.org/wiki/FeatureList
>> The referred document suggests Pillow is a drop-in for python-imaging
>> except for the "from PIL" import bit.   But unfortunately this not 
>> the case.
>> Adding "from PIL" to the import line allows wspr to start and run, but
>> the data does not display.  Exception in Tkinter callback
>> Traceback (most recent call last):
>>   File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1410, in __call__
>>     return self.func(*args)
>>   File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 495, in callit
>>     func(*args)
>>   File "wspr.py", line 1228, in update
>>     draw.text((x,148),tw[i],fill=253)        #Insert time label
>>   File "/usr/lib64/python2.7/site-packages/PIL/ImageDraw.py", line 
>> 256, in text
>>     ink, fill = self._getink(fill)
>>   File "/usr/lib64/python2.7/site-packages/PIL/ImageDraw.py", line 
>> 144, in _getink
>>     if self.palette and not Image.isNumberType(ink):
>> AttributeError: 'module' object has no attribute 'isNumberType'
>>
>> Not exactly a drop-in replacement.
>>
> Well, file a bug then. And hey, bugs happen, even if people try hard 
> to avoid them. Anyhow, this is fixed upstream (see [1]), I'm working 
> on updating the packages to the latest pillow 2.0, it's taking me a 
> bit longer than I expected since I had to figure out why one of the 
> tests did not complete (which turned out to be a gcc4.8 regression).
>
> [1] 
> https://github.com/python-imaging/Pillow/commit/1f41e25b4feec620ad32e8b3a9b28466f63b3afe
>
Today's Pillow seems to work as advertised.  Good work.

-- 
      Chuck Forsberg WA7KGX   caf at omen.com   www.omen.com
Developer of Industrial ZMODEM(Tm) for Embedded Applications
   Omen Technology Inc      "The High Reliability Software"
10255 NW Old Cornelius Pass Portland OR 97231   503-614-0430



More information about the test mailing list