| Summary: | [abrt] calibre-0.8.33-2.fc16: __init__.py:353:__init__:OSError: libunrar.so: cannot open shared object file: No such file or directory | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dario Meloni <mellon85> |
| Component: | calibre | Assignee: | Kevin Fenzi <kevin> |
| Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | chkr, frankly3d, kevin, mbacovsk, nushio |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:9292323ea026f2510b376fd4e945f09c3df6e17a | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-04 15:04:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Dario Meloni
2012-03-04 14:49:45 UTC
unrar support is not provided in Fedora due to legal reasons. You can try installing unrar from rpmfusion... I was thinking of adding a try catch to report and error, instead of leaving the exception generate an abrt report.
--- /usr/lib64/calibre/calibre/libunrar.py.orig 2012-03-04 16:35:26.907478710 +0100
+++ /usr/lib64/calibre/calibre/libunrar.py 2012-03-04 16:57:02.419237450 +0100
@@ -32,7 +32,10 @@
lp = os.path.join(sys.frozen_path, 'lib', 'libunrar.so')
_libunrar = cdll.LoadLibrary(lp)
else:
- _libunrar = load_library(_librar_name, cdll)
+ try:
+ _libunrar = load_library(_librar_name, cdll)
+ except OSError:
+ sys.exit(1);
RAR_OM_LIST = 0
RAR_OM_EXTRACT = 1
Well, it's a bit of a moving target... upstream has no desire for this sort of patch (since they ship libunrar), and the refactor this code from time to time. ;( |