Cannot process images

Bug #1365989 reported by Neculai Dan Ciprian
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Phatch
New
Undecided
Unassigned

Bug Description

I believe it's a bug due to an update or something, I used phatch on ubuntu for some years now.

This is what I get when I try to process images:

Error 0:Unable to open file: /media/Work/alex /IMG_6794.JPG:
'NoneType' object has no attribute 'mode'

Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 493, in get_photo
    photo = pil.Photo(info_file, info_not_file)
  File "/usr/share/phatch/phatch/core/pil.py", line 471, in __init__
    layer.image)
  File "/usr/share/phatch/phatch/core/pil.py", line 175, in __init__
    if image == None:
  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 576, in __eq__
    a = (self.mode == other.mode)
AttributeError: 'NoneType' object has no attribute 'mode'

Revision history for this message
Nuno Dias (nuno-dias) wrote :

I can confirm this, I have the same problem in Fedora

Revision history for this message
Pierantonio (pborga) wrote :

For me too:

'NoneType' object has no attribute 'mode'

Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 493, in get_photo
    photo = pil.Photo(info_file, info_not_file)
  File "/usr/share/phatch/phatch/core/pil.py", line 471, in __init__
    layer.image)
  File "/usr/share/phatch/phatch/core/pil.py", line 175, in __init__
    if image == None:
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 576, in __eq__
    a = (self.mode == other.mode)
AttributeError: 'NoneType' object has no attribute 'mode'

Revision history for this message
Silviu Stahie (silviu-stahie-f) wrote :

This happened right after the update to the latest Ubuntu 14.10 Beta 2

Revision history for this message
Silviu Stahie (silviu-stahie-f) wrote :

I can corfirm this has been fixed with the latest Python update.

Revision history for this message
Neculai Dan Ciprian (enkumber) wrote :

hey Silviu, I just upgraded python (sudo apt-get upgrade python) and the error still occurs ...
any ideea ?

Revision history for this message
Silviu Stahie (silviu-stahie-f) wrote :

Should have provided some context.

Upgraded from Ubuntu 14.04 to Ubuntu 14.10 Beta. Phatch stopped working. A few days later, during a dist-upgrade, new python-imaging and python-pil packages arrived and Phatch now works again (these are the packages that usually ruin Phatch with every new Ubuntu).

Revision history for this message
Neculai Dan Ciprian (enkumber) wrote :

Oh, I'm still on 14.04 so ... no luck for me

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.