abrt version: 1.1.13 architecture: x86_64 cmdline: /usr/bin/python /usr/bin/phatch component: phatch executable: /usr/bin/phatch kernel: 2.6.35.6-43.fc14.x86_64 package: phatch-cli-0.2.7-2.fc14 reason: api.py:780:apply_actions_to_photo:AttributeError: 'NoneType' object has no attribute 'close' release: Fedora release 14 (Laughlin) time: 1287847955 uid: 500 backtrace ----- api.py:780:apply_actions_to_photo:AttributeError: 'NoneType' object has no attribute 'close' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/phatch/pyWx/gui.py", line 701, in on_menu_tools_execute self._execute(actionlist) File "/usr/lib/python2.7/site-packages/phatch/pyWx/gui.py", line 300, in _execute update=self._send_update_event, **keyw) File "/usr/lib/python2.7/site-packages/phatch/core/api.py", line 729, in apply_actions_to_photos is_done, image_index, repeat) File "/usr/lib/python2.7/site-packages/phatch/core/api.py", line 780, in apply_actions_to_photo photo.close() AttributeError: 'NoneType' object has no attribute 'close' Local variables in innermost frame: repeat: 1 image_index: 0 photo: None cache: {} is_done: <bound method Action.is_done of <actions.save_metadata.Action object at 0x268e390>> actions: [<actions.geotag.Action object at 0x3b90350>, <actions.save_metadata.Action object at 0x268e390>] image_info: {'index': 0, 'subfolder': u'', 'type': u'jpg', 'folderindex': 0, 'filename': u'1279035540280', 'foldername': u'HEPHY@CERN', 'path': u'/home/dinyar/Pictures/HEPHY@CERN/1279035540280.jpg', 'folder': u'/home/dinyar/Pictures/HEPHY@CERN', 'desktop': '/home/dinyar/Desktop', 'root': u'/home/dinyar/Pictures'} info_not_file: <lib.metadata.InfoExtract instance at 0x3ed69e0> result: {'answer': u'skip', 'skip': True, 'abort': False, 'stop_for_errors': True, 'last_answer': u'skip'} read_only_settings: <lib.odict.ReadOnlyDict instance at 0x3ed6b00> report: [] skip_existing_images: False How to reproduce ----- 1. Tried to geotag some jpegs 2. 3.
Created attachment 455294 [details] File: backtrace
Package: phatch-cli-0.2.7-3.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Open software 2. Use Delete Tags method 3. Process pictures Comment ----- I tried to remove metatags from pictures.
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1.Added actions (crop and save) 2.Tried to execute 3.
This was reported 2 months ago and no comment/action?
Hi, I'm sorry for the delay ... but I have to admit that I don't really know what to do. Like other bugs on phatch, this one seems to appear because of the incompatibility between phatch an pyexiv2. The bug is reported upstream : https://bugs.launchpad.net/phatch/+bug/585169
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. create an action 2. drop some images on Phatch and click 'batch' 3. the program stops and does nothing
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Le traitement d'une image pose problème et l'erreur survient lorsque je clique sur "Skip to next image".
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1.? 2. 3.
Package: phatch-cli-0.2.7-3.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. I was trying to scale (down) some JPG images. Comment ----- There were some AVI files as well in that directory.
If I abort the log shows me: Error 0:Unable to open file: /home/ciupicri/work/kineto/.../DSCF0957.jpg: 'module' object has no attribute 'Image' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/phatch/core/api.py", line 493, in get_photo photo = pil.Photo(info_file, info_not_file) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 457, in __init__ layer.image) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 183, in __init__ self.pyexiv2 = pyexiv2.Image(path) AttributeError: 'module' object has no attribute 'Image' * I have pyexiv2-0.2.2-2.fc14.x86_64.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Error 0:Unable to open file: /home/ciupicri/work/kineto/.../DSCF0957.jpg: 'module' object has no attribute 'Image' This is another issue being tracked by this bug https://bugs.launchpad.net/phatch/+bug/585169
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Tried to add text on some pics and it crashes. 2. 3.
FC_rules, Thanks for confirming. I will mark 657774 as a duplicate of this bug.
*** Bug 657774 has been marked as a duplicate of this bug. ***
Package: phatch-cli-0.2.7-3.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. ? 2. 3.
I was able to fix the crash problem and also this issue Error 0:Unable to open file: <abc>.jpg: 'module' object has no attribute 'Image' After this fix, jpg files can be processed without any issues. Will create an update.
*** Bug 629078 has been marked as a duplicate of this bug. ***
phatch-0.2.7-4.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/phatch-0.2.7-4.fc14
phatch-0.2.7-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/phatch-0.2.7-5.fc15
The above updates fix only the crash issue. I am still working on fixing the processing of jpg files. Will contact the author with my patch and get his comments.
bug 704703 tracks the issues with processing jpg files in phatch.
phatch-0.2.7-2.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/phatch-0.2.7-2.fc13
Package phatch-0.2.7-2.fc13: * should fix your issue, * was pushed to the Fedora 13 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing phatch-0.2.7-2.fc13' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/phatch-0.2.7-2.fc13 then log in and leave karma (feedback).
Changed the above yum update to phatch-0.2.7.4.fc14 and updated. No crash but as noted earlier, it only fixes the crash issue: Error 0:Unable to open file: /home/jguerdat/Desktop/100EOS5D/IMG_0986.JPG: 'module' object has no attribute 'Image' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/phatch/core/api.py", line 493, in get_photo photo = pil.Photo(info_file, info_not_file) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 457, in __init__ layer.image) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 183, in __init__ self.pyexiv2 = pyexiv2.Image(path) AttributeError: 'module' object has no attribute 'Image' *
Hello , Thanks for testing. >Error 0:Unable to open file: /home/jguerdat/Desktop/100EOS5D/IMG_0986.JPG: >'module' object has no attribute 'Image' This is a api compatibility issue between phatch and pyexiv2. I am working on creating a patch and sending it to the author. In between , I will work on integrating the patch and testing it locally. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=704703 for tracking the above issue.
phatch-0.2.7-5.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Maybe I misunderstand but installing on F14 still gives me: Error 0:Unable to open file: /home/jguerdat/Desktop/Ashlyn/IMG_1171.JPG: 'module' object has no attribute 'Image' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/phatch/core/api.py", line 493, in get_photo photo = pil.Photo(info_file, info_not_file) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 457, in __init__ layer.image) File "/usr/lib/python2.7/site-packages/phatch/core/pil.py", line 183, in __init__ self.pyexiv2 = pyexiv2.Image(path) AttributeError: 'module' object has no attribute 'Image' * I thought this version implied a complete fix?
Hi Jeff, No, this update does not completely fix the issue. Only the crash problem reported by abrt. This issue 'module' object has no attribute 'Image' occurs due to incompatibility between phatch and pyexiv2. bug 704703 tracks the above issue.
phatch-0.2.7-4.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
phatch-0.2.7-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
A fix has been identified for bug 704703 . I have patched phatch to be compatible with the new api of pyexiv2. I will submit an update.
An update has been submitted for bug 704703 . Please test and provide karma. https://admin.fedoraproject.org/updates/phatch-0.2.7-5.fc14?_csrf_token=0ca76e1d40f5fa710239440e16e1b16bb9ee1a05 https://admin.fedoraproject.org/updates/phatch-0.2.7-6.fc15?_csrf_token=0ca76e1d40f5fa710239440e16e1b16bb9ee1a05
phatch-0.2.7-6.fc15 works fine for my limited test.
Thanks Jeff. Just updated 704703 with new builds. This update also takes care of missing exif tags, comments and thumbnail issues. If you have time, please test the new update.