Bug 19757 - frescobaldi requires pyqt5 but the requirement is not stated in the package
Summary: frescobaldi requires pyqt5 but the requirement is not stated in the package
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2016-11-11 15:34 CET by V P
Modified: 2020-11-15 16:46 CET (History)
3 users (show)

See Also:
Source RPM: frescobaldi-3.0.0-6.mga7, python-qt5-webengine-5.12.1-2.mga7
CVE:
Status comment:


Attachments

Description V P 2016-11-11 15:34:58 CET
Frescobaldi refuses to launch :

$ rpm -qf /usr/lib/python3.5/site-packages/frescobaldi_app/main.py
frescobaldi-2.18.2-2.mga6

$ frescobaldi 
Traceback (most recent call last):
  File "/bin/frescobaldi", line 7, in <module>
    import main
  File "/usr/lib/python3.5/site-packages/frescobaldi_app/main.py", line 34, in <module>
    from PyQt4.QtCore import QSettings, QTimer, QUrl
ImportError: No module named 'PyQt4'

# urpmq --whatprovides PyQt4
python-qt4

# But python-qt4 is already installed on my system...

# rpm -ql python-qt4
/usr/share/doc/python-qt4
/usr/share/doc/python-qt4/ChangeLog
/usr/share/doc/python-qt4/NEWS
/usr/share/doc/python-qt4/README
/usr/share/licenses/python-qt4
/usr/share/licenses/python-qt4/LICENSE

# ... it only contains readme files and not any library
Rémi Verschelde 2016-11-11 15:36:02 CET

Assignee: bugsquad => rverschelde

Comment 1 V P 2016-11-11 15:50:59 CET
hmmm... actually, python-qt4-core is a dependency of python-qt4 and probably contains the correct libraries. However, it is build for python 2.7

$ rpm -ql python-qt4-core-4.11.4-10.mga6 | grep "PyQt4$"
/usr/lib64/python2.7/site-packages/PyQt4
Comment 2 V P 2018-07-28 21:05:47 CEST
Same problem with PyQt5 now...

$ frescobaldi 
Traceback (most recent call last):
  File "/bin/frescobaldi", line 7, in <module>
    import main
  File "/usr/lib/python3.5/site-packages/frescobaldi_app/main.py", line 33, in <module>
    from PyQt5.QtCore import QSettings, QTimer, QUrl
ImportError: No module named 'PyQt5'
Rémi Verschelde 2020-11-03 17:20:30 CET

Status: NEW => ASSIGNED

Comment 3 Rémi Verschelde 2020-11-04 08:13:54 CET
Fixed in Cauldron with frescobaldi-3.1.2-2.mga8. Sorry for the huge delay in investigating and fixing this.

I'll work on an update for Mageia 7 too.

Summary: frescobaldi requires pyqt4 but the requirement is not stated in the package => frescobaldi requires pyqt5 but the requirement is not stated in the package
Version: Cauldron => 7

Comment 4 Rémi Verschelde 2020-11-04 08:40:00 CET
Pushed an update with frescobaldi-3.1.2-1.mga7 and python-qt5-webengine-5.12.1-2.1.mga7 to hopefully fix dependencies in Mageia 7.


Advisory:
=========

Updated frescobaldi and python-qt5-webengine fix dependencies

  frescobaldi in Mageia 7 did not explicitly depend on all PyQt5 modules that it
  requires to work. This update fixes it, while also providing the latest version
  3.1.2 of frescobaldi.

  The python{2,3}-qt5-webenginewidgets packages now properly require the matching
  python{2,3}-qt5-webenginecore packages.

References:

 - https://github.com/frescobaldi/frescobaldi/blob/v3.1.2/ChangeLog


SRPMs in core/updates_testing:
==============================

frescobaldi-3.1.2-1.mga7
python-qt5-webengine-5.12.1-2.1.mga7


RPMs in core/updates_testing:
=============================

frescobaldi-3.1.2-1.mga7

python2-qt5-webengine-5.12.1-2.1.mga7
python2-qt5-webenginecore-5.12.1-2.1.mga7
python2-qt5-webenginewidgets-5.12.1-2.1.mga7

python3-qt5-webengine-5.12.1-2.1.mga7
python3-qt5-webenginecore-5.12.1-2.1.mga7
python3-qt5-webenginewidgets-5.12.1-2.1.mga7
python3-qt5-webengine-qsci-api-5.12.1-2.1.mga7

Source RPM: frescobaldi-2.18.2-2.mga6.src.rpm => frescobaldi-3.0.0-6.mga7, python-qt5-webengine-5.12.1-2.mga7
Assignee: rverschelde => qa-bugs

Comment 5 Len Lawrence 2020-11-05 12:12:19 CET
mga7, x64

Installed frescobaldi and found these libraries installed:
lib64kf5webengineviewer5-19.04.0-1.mga7
qtwebengine5-5.12.6-1.mga7
lib64qt5webenginewidgets5-5.12.6-1.mga7
lib64qt5webenginecore5-5.12.6-1.mga7
lib64qt5webengine5-5.12.6-1.mga7
but no python* webengine modules.

$ rpm -qa | grep qt5-webengine
$

frescobaldi launches from the command line and it is possible to import and display lilypond files.  Little idea of what to do after that.
Segfault when frescobaldi is closed.

Updated frescobaldi:
$ rpm -qa | grep qt5-webengine
python3-qt5-webenginewidgets-5.12.1-2.1.mga7
python3-qt5-webenginecore-5.12.1-2.1.mga7

$ rpm -q python3-qt5-webchannel
python3-qt5-webchannel-5.12.1-2.mga7

Looks like the last package was also picked up as a dependency.
But these are not - they have to be installed manually.
$ sudo urpmi python3-qt5-webengine
$ sudo urpmi python3-qt5-webengine-qsci-api

The python2 packages are not picked up as dependencies - is that relevant?
I deliberately did not install them pre-update to see if they would be picked up.
$ sudo urpmi python2-qt5-webengine
  Package                        Version      Release       Arch    
(medium "Core Release")
  python2-pyqt5-sip              4.19.16      1.mga7        x86_64  
  python2-qt5-core               5.12.1       2.mga7        x86_64  
(medium "Core Updates Testing")
  python2-qt5-webengine          5.12.1       2.1.mga7      x86_64  

$ sudo urpmi python2-qt5-webenginecore
media/core/updates_testing/
installing python2-qt5-webenginecore-5.12.1-2.1.mga7.x86_64.rpm
$ sudo urpmi python2-qt5-webenginewidgets
installing python2-qt5-webenginewidgets-5.12.1-2.1.mga7.x86_64.rpm

frescobaldi works at entry level.  Opened a lilypond file - musical score displayed.  No segfault when frescobaldi is closed.

This looks OK but leaving it for packager attention regarding the dependencies.

CC: (none) => tarazed25

Len Lawrence 2020-11-05 12:14:14 CET

Keywords: (none) => feedback

Aurelien Oudelet 2020-11-13 21:26:10 CET

Assignee: qa-bugs => rverschelde
CC: (none) => ouaurelien

Comment 6 Rémi Verschelde 2020-11-13 21:49:15 CET
It's a Python 3 application, it's normal that the python2 packages are not installed. I think everything is fine in the testing otherwise?

Keywords: feedback => (none)
Assignee: rverschelde => qa-bugs

Comment 7 Aurelien Oudelet 2020-11-13 21:55:07 CET
It seems thanks you Rémi! Back to QA.
Comment 8 Len Lawrence 2020-11-14 00:47:19 CET
Thanks Rémi - giving this an OK.

Whiteboard: (none) => MGA7-64-OK

Comment 9 Aurelien Oudelet 2020-11-14 20:29:52 CET
Validating update, Packages and Advisory in Comment 4.
Advisory pushed to SVN.

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 10 Mageia Robot 2020-11-15 16:46:15 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0229.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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