Bug 1295265 - Missing library: libQt5Sensors.so.5
Summary: Missing library: libQt5Sensors.so.5
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 23
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-04 03:42 UTC by Martín Cigorraga
Modified: 2016-01-04 21:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-04 20:39:37 UTC
Type: Bug


Attachments (Terms of Use)

Description Martín Cigorraga 2016-01-04 03:42:43 UTC
Description of problem:
Hi,

$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 20, in <module>
    sys.exit(calibre())
  File "/usr/lib64/calibre/calibre/gui_launch.py", line 62, in calibre
    main(args)
  File "/usr/lib64/calibre/calibre/gui2/main.py", line 522, in main
    gui_debug=gui_debug)
  File "/usr/lib64/calibre/calibre/gui2/main.py", line 368, in run_gui
    from calibre.gui2.ui import Main
  File "/usr/lib64/calibre/calibre/gui2/ui.py", line 40, in <module>
    from calibre.gui2.init import LibraryViewMixin, LayoutMixin
  File "/usr/lib64/calibre/calibre/gui2/init.py", line 18, in <module>
    from calibre.gui2.library.views import BooksView, DeviceBooksView
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 17, in <module>
    from calibre.gui2.library.delegates import (RatingDelegate, PubDateDelegate,
  File "/usr/lib64/calibre/calibre/gui2/library/delegates.py", line 22, in <module>
    from calibre.gui2.dialogs.comments_dialog import CommentsDialog
  File "/usr/lib64/calibre/calibre/gui2/dialogs/comments_dialog.py", line 8, in <module>
    from calibre.gui2.dialogs.comments_dialog_ui import Ui_CommentsDialog
  File "/usr/lib64/calibre/calibre/gui2/dialogs/comments_dialog_ui.py", line 41, in <module>
    from calibre.gui2.comments_editor import Editor
  File "/usr/lib64/calibre/calibre/gui2/comments_editor.py", line 17, in <module>
    from PyQt5.QtWebKitWidgets import QWebView, QWebPage
ImportError: libQt5Sensors.so.5: cannot open shared object file: No such file or directory

Version-Release number of selected component (if applicable):
Calibre 2.42.0R1.fc23

How reproducible:
Always.

Steps to Reproduce:
1. Install Calibre
2. Launch Calibre
3.

Actual results:
ImportError: libQt5Sensors.so.5: cannot open shared object file: No such file or directory

Expected results:

Additional info:

Comment 1 Kevin Fenzi 2016-01-04 15:22:50 UTC
You likely have some poorly packaged 3rd party application that claims to provide this library, but actually doesn't. 

What does: 

rpm -q --whatprovides 'libQt5Sensors.so.5()(64bit)'

output? 

Do you have hipchat or viber installed?

Comment 2 Helio Chissini de Castro 2016-01-04 15:55:23 UTC
Is actually our package fault.

Calibre is python, and don't do proper builddeps automatic, so we need to add explicit dependency.

I will look to fix it.

To fix for now, you can install the package qt5-qtsensors

[]'s

Comment 3 Kevin Fenzi 2016-01-04 16:05:56 UTC
I don't think you are correct. :) 

calibre requires python-qt5. 

python-qt5 in turn requires 'libQt5Sensors.so.5()(64bit)' which is provided by qt5-qtsensors.

So, its an indirect dep, but it works fine and has since we moved calibre to qt5.

Comment 4 Helio Chissini de Castro 2016-01-04 16:10:29 UTC
Yes, i know.

But for some reason, as qtsvg too, it not pulling directly.
I submitted both f23 and rawhide and update f23 on the way.

[]'s

Comment 5 Kevin Fenzi 2016-01-04 16:13:58 UTC
In every other case of these sorts of bug reports the issue is not our dep, but 3rd party rpms that claim to provide these libraries, but don't (viber/hipchat). 

So, this change will not help at all in this case.

Comment 6 Martín Cigorraga 2016-01-04 16:33:12 UTC
Hi all,

@Kevin, indeed: hipchat-2.2.1388-1.x86_64

I should have checked with "rpm -q --whatprovides 'libQt5Sensors.so.5()(64bit)'" before opening the ticket, lesson learned.
After installing qt5-qtsensors as instructed by @Helio now Calibre works fine.

I will try to contact HipChat packagers and let they know about this issue with their package.

Many thanks!

Comment 7 Kevin Fenzi 2016-01-04 20:39:37 UTC
Good luck, the Fedora qt maintainer filed a bug a while back with them, sadly so far as I know with no answer. ;(

Comment 8 Martín Cigorraga 2016-01-04 20:57:59 UTC
Dang!

I'm not fully familiarized with the Fedora packaging policy but could it help to add a note to this issue or possibly a link to the (Calibre) package page explaining what's happening and how to solve it?

I acknowledge that the portion of users hit but this issue (be it HC or Viber) may not be big enough but something like that could help automate the resolution of it.

Just a silly thought...

Comment 9 Kevin Fenzi 2016-01-04 21:13:42 UTC
Well, it's in the Fedora 22 common bugs: 

https://fedoraproject.org/wiki/Common_F22_bugs#Some_third-party_application_rpms_bundle_Qt5_erroneously_.28hipchat.2C_viber.29

I suppose we could add a release note or something, but I don't think that will reach too many more people. ;( 

We could conflict with those packages, but that makes it so you can't have them both installed which might upset people.


Note You need to log in before you can comment on or make changes to this bug.