Bug 646035
Summary: | [abrt] phatch-cli-0.2.7-2.fc14: api.py:780:apply_actions_to_photo:AttributeError: 'NoneType' object has no attribute 'close' | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | dinyar.rabady+spam | ||||
Component: | phatch | Assignee: | Narasimhan <lakshminaras2002> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 14 | CC: | cristian.ciupitu, dalp, fcrulesf, jguerdat, leandro, misieck, sprintserwis | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | abrt_hash:eefed90b | ||||||
Fixed In Version: | phatch-0.2.7-2.fc13 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-05-25 02:38:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
dinyar.rabady+spam
2010-10-23 22:16:20 UTC
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. |