Bug 1197311 - [abrt] calibre: comments_editor.py:17:<module>:ImportError: libQt5Sensors.so.5: cannot open shared object file: No such file or directory
Summary: [abrt] calibre: comments_editor.py:17:<module>:ImportError: libQt5Sensors.so....
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:4ced19bfbe4bf13e099c03f1e3f...
: 1198876 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-28 09:38 UTC by akshay vyas
Modified: 2015-11-09 17:14 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-03 01:17:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (8.86 KB, text/plain)
2015-02-28 09:38 UTC, akshay vyas
no flags Details
File: environ (996 bytes, text/plain)
2015-02-28 09:38 UTC, akshay vyas
no flags Details

Description akshay vyas 2015-02-28 09:38:11 UTC
Version-Release number of selected component:
calibre-2.15.0-2.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        python2 /usr/bin/calibre --detach /home/techie/Downloads/ebooks_and_mags/PrivateCloud-GeekGuide.epub
executable:     /usr/bin/calibre
kernel:         3.18.7-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
#1 <module> in /usr/lib64/calibre/calibre/gui2/comments_editor.py:17
#2 <module> in /usr/lib64/calibre/calibre/gui2/dialogs/comments_dialog_ui.py:41
#3 <module> in /usr/lib64/calibre/calibre/gui2/dialogs/comments_dialog.py:8
#4 <module> in /usr/lib64/calibre/calibre/gui2/library/delegates.py:22
#5 <module> in /usr/lib64/calibre/calibre/gui2/library/views.py:17
#6 <module> in /usr/lib64/calibre/calibre/gui2/init.py:17
#7 <module> in /usr/lib64/calibre/calibre/gui2/ui.py:40
#8 run_gui in /usr/lib64/calibre/calibre/gui2/main.py:335
#9 main in /usr/lib64/calibre/calibre/gui2/main.py:489
#10 calibre in /usr/lib64/calibre/calibre/gui_launch.py:47

Comment 1 akshay vyas 2015-02-28 09:38:16 UTC
Created attachment 996394 [details]
File: backtrace

Comment 2 akshay vyas 2015-02-28 09:38:18 UTC
Created attachment 996395 [details]
File: environ

Comment 3 Kevin Fenzi 2015-02-28 18:35:44 UTC
What does: 

rpm -q qt5-qtsensors

and

rpm -qV qt5-qtsensors

return?

Comment 4 akshay vyas 2015-02-28 18:57:33 UTC
[root@workstation techie]# rpm -q qt5-qtsensors
package qt5-qtsensors is not installed
[root@workstation techie]# rpm -qV qt5-qtsensors
package qt5-qtsensors is not installed


qt5-qtsensors is not installed, i manually installed the package but still it doesnt seem to be working fine.

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 47, in calibre
    main(args)
  File "/usr/lib64/calibre/calibre/gui2/main.py", line 489, in main
    gui_debug=gui_debug)
  File "/usr/lib64/calibre/calibre/gui2/main.py", line 335, 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 17, 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: libQt5Positioning.so.5: cannot open shared object file: No such file or directory

Comment 5 Kevin Fenzi 2015-02-28 23:36:32 UTC
Odd. Adding Rex here for comment, perhaps something has changed in the qt5 stack of late?

Comment 6 Rex Dieter 2015-03-03 00:36:09 UTC
Reporter, what does this say?

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

Comment 7 akshay vyas 2015-03-03 00:46:49 UTC
Hi Rex

[root@workstation techie]# rpm -q --whatprovides 'libQt5Sensors.so.5()(64bit)'
hipchat-2.2.1328-1.x86_64
qt5-qtsensors-5.4.0-2.fc21.x86_64
[root@workstation techie]# 

I guess the issue is with libQt5Sensors.so.5 of hipchat

Comment 8 Rex Dieter 2015-03-03 01:17:38 UTC
Yes, please report it to whoever provides hipchat that their rpm is broken:
it falsely claims to provide libQt5Sensors

Comment 9 Rex Dieter 2015-06-02 17:22:45 UTC
*** Bug 1198876 has been marked as a duplicate of this bug. ***

Comment 10 Valent Turkovic 2015-11-09 15:00:35 UTC
$ sudo dnf info qt5-qtsensors
Last metadata expiration check performed 1:38:32 ago on Mon Nov  9 14:20:28 2015.
Installed Packages
Name        : qt5-qtsensors
Arch        : x86_64
Epoch       : 0
Version     : 5.5.0
Release     : 3.fc22
Size        : 754 k
Repo        : @System
From repo   : updates
Summary     : Qt5 - Sensors component
URL         : http://www.qt.io/
License     : LGPLv2 with exceptions or GPLv3 with exceptions
Description : The Qt Sensors API provides access to sensor hardware via QML and C++
            : interfaces.  The Qt Sensors API also provides a motion gesture recognition
            : API for devices.


And I still have calibre crash on my Fedora 22 system:

$ 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 61, in calibre
    from calibre.gui2.main import main
  File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 8, in <module>
    from PyQt5.Qt import (
ImportError: cannot import name QStyle


So it looks like this bug is still present on Fedora 22:

$ rpm -q python-qt5
python-qt5-5.5-1.fc22.x86_64

$ rpm -V python-qt5
$


$ rpm -q --whatprovides 'libQt5Sensors.so.5()(64bit)'
qt5-qtsensors-5.5.0-3.fc22.x86_64

Comment 11 Rex Dieter 2015-11-09 15:04:01 UTC
ImportError: cannot import name QStyle

is a different error than this bug (I'd recommend you open a new one)

Comment 12 Valent Turkovic 2015-11-09 15:11:49 UTC
After installing calibre 2.42 from updates-testing repo now I get other error.

$ 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 61, in calibre
    from calibre.gui2.main import main
  File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 8, in <module>
    from PyQt5.QtWidgets import QStyle  # Gives a nicer error message than import from Qt
ImportError: libQt5Widgets.so.5: cannot open shared object file: No such file or directory


Here is dnf install log:

$ sudo dnf update calibre --enablerepo=updates-testing
Last metadata expiration check performed 0:01:05 ago on Mon Nov  9 16:06:48 2015.
Dependencies resolved.
=====================================================================================================================================================================================================================
 Package                                                Arch                                        Version                                               Repository                                            Size
=====================================================================================================================================================================================================================
Installing:
 qt5-qtenginio                                          x86_64                                      5.5.0-1.fc22                                          updates                                              162 k
Upgrading:
 calibre                                                x86_64                                      2.42.0-1.fc22                                         updates-testing                                       29 M
 python-qt5                                             x86_64                                      5.5.1-2.fc22                                          updates-testing                                      3.7 M
 qt5-qtbase                                             x86_64                                      5.5.1-4.fc22                                          updates-testing                                      3.1 M
 qt5-qtbase-common                                      noarch                                      5.5.1-4.fc22                                          updates-testing                                       22 k
 qt5-qtdeclarative                                      x86_64                                      5.5.1-3.fc22                                          updates-testing                                      2.9 M
 qt5-qtlocation                                         x86_64                                      5.5.1-2.fc22                                          updates-testing                                      660 k
 qt5-qtmultimedia                                       x86_64                                      5.5.1-4.fc22                                          updates-testing                                      729 k
 qt5-qtsensors                                          x86_64                                      5.5.1-2.fc22                                          updates-testing                                      192 k
 qt5-qtserialport                                       x86_64                                      5.5.1-2.fc22                                          updates-testing                                       65 k
 qt5-qtsvg                                              x86_64                                      5.5.1-2.fc22                                          updates-testing                                      155 k
 qt5-qtwebchannel                                       x86_64                                      5.5.1-2.fc22                                          updates-testing                                       81 k
 qt5-qtwebkit                                           x86_64                                      5.5.1-4.fc22                                          updates-testing                                       11 M
 qt5-qtx11extras                                        x86_64                                      5.5.1-2.fc22                                          updates-testing                                       27 k

Transaction Summary
=====================================================================================================================================================================================================================
Install   1 Package
Upgrade  13 Packages

Comment 13 Valent Turkovic 2015-11-09 15:12:52 UTC
Ok, I'll open new bug for calibre. But it is obvious that something is badly broken in calibre package and it's dependencies...

Comment 14 Valent Turkovic 2015-11-09 15:14:44 UTC
(In reply to Rex Dieter from comment #11)
> ImportError: cannot import name QStyle
> 
> is a different error than this bug (I'd recommend you open a new one)

There already was bug open for "ImportError: cannot import name QStyle" and it was closed as a duplicate of this one:
https://bugzilla.redhat.com/show_bug.cgi?id=1198876

So should we reopen that closed duplicate one?

Comment 15 Rex Dieter 2015-11-09 15:20:24 UTC
Same drill as before,

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

Comment 16 Valent Turkovic 2015-11-09 17:13:28 UTC
(In reply to Rex Dieter from comment #15)
> Same drill as before,
> 
> rpm -q --whatprovides 'libQt5Widgets.so.5()(64bit)'

Thanks, Viber is at fault here...

Comment 17 Valent Turkovic 2015-11-09 17:14:13 UTC
$ rpm -q --whatprovides 'libQt5Widgets.so.5()(64bit)'
viber-4.2.2.6-2.x86_64

Comment 18 Rex Dieter 2015-11-09 17:14:39 UTC
Yay viber, please share your displeasure with them :)


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