abrt version: 2.0.3 architecture: x86_64 cmdline: comment: Just ran recoll. component: recoll executable: /usr/share/recoll/filters/rclkar kernel: 2.6.40.6-0.fc15.x86_64 os_release: Fedora release 15 (Lovelock) package: recoll-1.15.8-2.fc15 reason: rclexecm.py:122:processmessage:UnboundLocalError: local variable 'eof' referenced before assignment time: Thu Oct 20 09:42:24 2011 uid: 500 username: doug backtrace: :rclexecm.py:122:processmessage:UnboundLocalError: local variable 'eof' referenced before assignment : :Traceback (most recent call last): : File "/usr/share/recoll/filters/rclkar", line 322, in <module> : rclexecm.main(proto, extract) : File "/usr/share/recoll/filters/rclexecm.py", line 154, in main : proto.mainloop(extract) : File "/usr/share/recoll/filters/rclexecm.py", line 147, in mainloop : self.processmessage(processor, params) : File "/usr/share/recoll/filters/rclexecm.py", line 122, in processmessage : self.answer("", "", eof, RclExecM.fileerror) :UnboundLocalError: local variable 'eof' referenced before assignment : :Local variables in innermost frame: :ipath: '' :self: <rclexecm.RclExecM instance at 0xb4a050> :params: {'mimetype:': 'audio/x-karaoke', 'dflincs:': 'UTF-8', 'filename:': '/home/doug/Music/music-videos/premade-midi-files/moonlight_sonata.mid'} :processor: <__main__.KarTextExtractor instance at 0xb34d88> :err: AttributeError("'NoneType' object has no attribute 'lower'",)
Thanks for your report. Could you please the updated recoll package recoll-1.16.1 available in updates-testing? Test update is here: https://admin.fedoraproject.org/updates/FEDORA-2011-14534
I enabled updates-testing and installed the latest recoll. It caused the same abrt report as previously reported. Incidentally, the 'About' dialog reports the version as 1.16.0, but yum reports: "Package recoll-1.16.1-1.fc15.x86_64 already installed and latest version".
Looking at rclexecm.py, the offending statement (line 122) is the self.answer() call in the exception handler in the following code fragment: try: if params.has_key("ipath:") and len(params["ipath:"]): ok, data, ipath, eof = processor.getipath(params) else: ok, data, ipath, eof = processor.getnext(params) except Exception, err: self.answer("", "", eof, RclExecM.fileerror) return I am not a python expert, but it looks possible that the if/else block might cause the variables 'ok, data, ipath, eof' to spring into existence because of the assignment. If that conclusion is right, then it follows that they would NOT have been created at the time the exception handler is called. Would the solution be to declare a variable 'eof' and assign it a value, before entering the try/except block? I know in C that variables must be predeclared, but I am not sure about python: perhaps I am completely wrong "8-)
recoll-1.16.1-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/FEDORA-2011-14568
recoll-1.16.1-2.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/FEDORA-2011-14550
recoll-1.16.1-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/FEDORA-2011-14534
Package recoll-1.16.1-2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing recoll-1.16.1-2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14568 then log in and leave karma (feedback).
Will the FC16 version work OK with my FC15 system?
Might be, however why not use the FC15 version? Versions for FC14 and FC15 will be pushed soon. Or get packages directly from koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=270466
recoll-1.16.1-2.fc15 has solved the problem. Thank you for your help.
recoll-1.16.1-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
recoll-1.16.1-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
recoll-1.16.1-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.