Bug 25213 - python3-pyside2 package should depend on python3-shiboken2
Summary: python3-pyside2 package should depend on python3-shiboken2
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on: 25214
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-01 20:03 CEST by Oleg Bosis
Modified: 2019-08-10 02:14 CEST (History)
3 users (show)

See Also:
Source RPM: pyside2-5.12.2-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Oleg Bosis 2019-08-01 20:03:42 CEST
Description of problem:

I'm trying to use pyside2 in a test project (using IntelliJ Idea + Python CE plugin). I see the following error message when I try to run this project:

/usr/bin/python3.7 /home/olelukoie/IdeaProjects/text_pyqt/main.py
Traceback (most recent call last):
  File "/home/olelukoie/IdeaProjects/text_pyqt/main.py", line 3, in <module>
    from PySide2.QtCore import QSize
  File "/usr/lib64/python3.7/site-packages/PySide2/__init__.py", line 51, in <module>
    _setupQtDirectories()
  File "/usr/lib64/python3.7/site-packages/PySide2/__init__.py", line 21, in _setupQtDirectories
    import shiboken2
ModuleNotFoundError: No module named 'shiboken2'

The error disappeared and the program runs normally after manually installing python3-shiboken2.

Version-Release number of selected component (if applicable):
pyside2-5.12.2-1.mga7

How reproducible:
always

Steps to Reproduce:
1. Try to run some PySide2-based program. Here is my test program (it's very short so I paste the code here):

#!/usr/bin/python3

from PySide2.QtCore import QSize
from PySide2.QtWidgets import QMainWindow, QWidget, QApplication


class MainWindow(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)

        self.setMinimumSize(QSize(480, 320))    # Устанавливаем размеры
        self.setWindowTitle("Hello!")   # Устанавливаем заголовок окна

        central_widget = QWidget(self)          # Создаём центральный виджет
        self.setCentralWidget(central_widget)   # Устанавливаем центральный виджет


if __name__ == '__main__':
    import sys
    app = QApplication(sys.argv)
    mw = MainWindow()
    mw.show()
    sys.exit(app.exec_())
Comment 1 Lewis Smith 2019-08-01 20:50:55 CEST
Thank you Oleg for your report and diagnostic.
pyside2 assigned to DavidG.

Assignee: bugsquad => geiger.david68210

Comment 2 David GEIGER 2019-08-02 08:25:13 CEST
Should be fixed with pyside2-5.12.2-1.1.mga7!

Please test it!
Comment 3 Oleg Bosis 2019-08-02 10:41:50 CEST
Tested. Seems to be OK now (both this problem and bug 25214 fixed). Thank you for quick fix ))
David GEIGER 2019-08-02 16:02:19 CEST

Depends on: (none) => 25214

Comment 4 David GEIGER 2019-08-02 16:20:40 CEST
Assigning to QA,


Advisory:
========================

There's a missing required dependency on the python3-pyside2 package from Mageia 7. If no other packages pulling 'python3-shiboken2' are installed on the computer, a PySide2-based program can't work/start properly. This update adds this missing dependency.
Also it fixes another issue with missing PYI files not installed but needed to write some code using pyside2 Qt classes.

========================

Packages in 7/core/updates_testing:
========================
libpyside2-python3.7_5.12-5.12.2-1.1.mga7.i586.rpm
libpyside2-python3.7-devel-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-core-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3dcore-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3danimation-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3dextras-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3dinput-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3dlogic-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-3drender-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-charts-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-concurrent-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-datavisualization-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-gui-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-help-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-location-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-multimedia-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-multimediawidgets-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-network-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-opengl-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-positioning-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-printsupport-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-qml-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-quick-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-quickwidgets-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-remoteobjects-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-script-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-scripttools-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-scxml-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-sensors-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-sql-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-svg-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-test-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-texttospeech-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-uitools-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-webchannel-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-webengine-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-webenginecore-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-webenginewidgets-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-websockets-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-widgets-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-x11extras-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-xml-5.12.2-1.1.mga7.i586.rpm
python3-pyside2-xmlpatterns-5.12.2-1.1.mga7.i586.rpm

lib64pyside2-python3.7_5.12-5.12.2-1.1.mga7.x86_64.rpm
lib64pyside2-python3.7-devel-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-core-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3dcore-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3danimation-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3dextras-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3dinput-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3dlogic-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-3drender-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-charts-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-concurrent-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-datavisualization-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-gui-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-help-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-location-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-multimedia-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-multimediawidgets-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-network-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-opengl-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-positioning-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-printsupport-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-qml-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-quick-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-quickwidgets-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-remoteobjects-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-script-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-scripttools-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-scxml-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-sensors-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-sql-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-svg-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-test-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-texttospeech-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-uitools-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-webchannel-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-webengine-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-webenginecore-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-webenginewidgets-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-websockets-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-widgets-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-x11extras-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-xml-5.12.2-1.1.mga7.x86_64.rpm
python3-pyside2-xmlpatterns-5.12.2-1.1.mga7.x86_64.rpm


Source RPM: 
========================
pyside2-5.12.2-1.1.mga7.src.rpm

Assignee: geiger.david68210 => qa-bugs

Comment 5 Len Lawrence 2019-08-07 01:02:57 CEST
mga7, x86_64

Before updating, starting to install the pyside2 stack brought up this:
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  lib64pyside2-python3.7_5.12    5.12.2       1.mga7        x86_64  
  lib64shiboken2-python3.7_5.12  5.12.2       4.mga7        x86_64  
and further on:
  python3-shiboken2              5.12.2       4.mga7        x86_6
and:
  shiboken2                      5.12.2       4.mga7        x86_64

Running the test program shows an empty window titled "Hello!", as expected.

Tried this again on another partition and made sure that nothing shiboken2 was installed already.

Ran the updates and all went well.
The test program continues to work as expected.

So, this looks good for 64bits but the pre-update behaviour is puzzling.

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

Thomas Backlund 2019-08-09 23:55:12 CEST

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

Comment 6 Mageia Robot 2019-08-10 02:14:08 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0088.html

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


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