Bug 24044

Summary: New mageiawelcome fails to run
Product: Mageia Reporter: Thomas Andrews <andrewsfarm>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: geiger.david68210, kde, mageia, marja11, yvesbrungard
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mageiawelcome CVE:
Status comment:

Description Thomas Andrews 2018-12-22 15:21:20 CET
Description of problem:

When I installed Mageia 7 on my HP Probook 6550b (i3, 8GB RAM, Intel graphics, Intel wifi), I told the installer to retain /home, which in turn included the norun flag for mageiawelcome, so I have no idea if it was working at the time.

After obtaining today's Cauldron updates, and noticing they included the new mageiawelcome, I attempted to run it from the Plasma menu after rebooting into the new kernel. It failed. There might have been a brief flash of it in the panel, but it was too brief to be sure.

I removed the norun flag and tried again. Same thing, except that it did show up in the panel for a while. I tried another boot, with much the same result.

I then ran it from the command line, and got this:

$ mageiawelcome
Traceback (most recent call last):
  File "/usr/share/mageiawelcome/mageiawelcome.py", line 4, in <module>
    from PyQt5.QtQuick import QQuickView
ModuleNotFoundError: No module named 'PyQt5.QtQuick'

So apparently, something is missing. It may be pending and not yet in my mirror (math.princeton), but I thought I ought to bring this up anyway, just in case it wasn't.
Comment 1 Marja Van Waes 2018-12-22 16:52:47 CET
It works fine here in Xfce

What does 

  rpm -qa | grep python[2,3]-qt5-quick-

return?

(I think you need python3-qt5-quick, the version I have installed is python3-qt5-quick-5.11.2-2.mga7 and the matching python2 package. I'm not, yet, testing the KDE packages in Core/Updates_testing)

Assignee: bugsquad => mageiatools
CC: (none) => kde, marja11, yves.brungard_mageia
Source RPM: (none) => mageiawelcome

Comment 2 Thomas Andrews 2018-12-22 17:04:36 CET
That command returns nothing, almost as if it were being completely ignored.

So I suppose that means I need some packages that weren't installed. Can't help but wonder if there are others...
Comment 3 Thomas Andrews 2018-12-22 17:18:54 CET
Using MCC to search for installed packages with "quick" in the name, there is no package on the list that also includes "python."
Comment 4 David GEIGER 2018-12-22 17:19:20 CET
Should be fixed in next mageiawelcome-1.16-2.mga7

CC: (none) => geiger.david68210

Comment 5 David GEIGER 2018-12-22 17:20:46 CET
I added python3-qt5-core, python3-qt5-gui and python3-qt5-quick as dependencies!
Comment 6 Thomas Andrews 2018-12-22 17:59:24 CET
I will wait a while for it to make its way to my mirror, and check it out...
Comment 7 Thomas Andrews 2018-12-22 18:50:45 CET
Of course it wouldn't be that simple. Now it's telling me this:

$ mageiawelcome
Traceback (most recent call last):
  File "/usr/share/mageiawelcome/mageiawelcome.py", line 4, in <module>
    from PyQt5.QtQuick import QQuickView
ModuleNotFoundError: No module named 'PyQt5.QtNetwork'

Forgot to mention in the original comment that I installed from the 64-bit beta1 Classical iso, with Plasma the only desktop installed.
Comment 8 papoteur 2018-12-22 21:45:35 CET
Hello,

python3-qt5-network is needed too.
And surely python3-qt5-qml
Comment 9 papoteur 2018-12-22 21:48:12 CET
and 

python3-rpm
qtgraphicaleffects5
Comment 10 Martin Whitaker 2018-12-22 22:30:55 CET
Even after installing all those mentioned:

[root@localhost live]# rpm -qa | grep python3-qt5
python3-qt5-qml-5.11.2-2.mga7
python3-qt5-widgets-5.11.2-2.mga7
python3-qt5-gui-5.11.2-2.mga7
python3-qt5-network-5.11.2-2.mga7
python3-qt5-quick-5.11.2-2.mga7
python3-qt5-core-5.11.2-2.mga7
python3-qt5-dbus-5.11.2-2.mga7

I get the following errors:

[live@localhost ~]$ mageiawelcome
file:///usr/share/mageiawelcome/mw-ui.qml:1:1: module "QtQuick" is not installed 
     import QtQuick 2.0 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:4:1: module "QtQuick.Layouts" is not installed 
     import QtQuick.Layouts 1.3 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:6:1: module "QtQuick.Controls.Styles" is not installed 
     import QtQuick.Controls.Styles 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:3:1: module "QtQml.Models" is not installed 
     import QtQml.Models 2.1 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:5:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:1:1: module "QtQuick" is not installed 
     import QtQuick 2.0 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:4:1: module "QtQuick.Layouts" is not installed 
     import QtQuick.Layouts 1.3 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:6:1: module "QtQuick.Controls.Styles" is not installed 
     import QtQuick.Controls.Styles 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:3:1: module "QtQml.Models" is not installed 
     import QtQml.Models 2.1 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:5:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:1:1: module "QtQuick" is not installed 
     import QtQuick 2.0 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:4:1: module "QtQuick.Layouts" is not installed 
     import QtQuick.Layouts 1.3 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:6:1: module "QtQuick.Controls.Styles" is not installed 
     import QtQuick.Controls.Styles 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:3:1: module "QtQml.Models" is not installed 
     import QtQml.Models 2.1 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:5:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:1:1: module "QtQuick" is not installed 
     import QtQuick 2.0 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:4:1: module "QtQuick.Layouts" is not installed 
     import QtQuick.Layouts 1.3 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:6:1: module "QtQuick.Controls.Styles" is not installed 
     import QtQuick.Controls.Styles 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:3:1: module "QtQml.Models" is not installed 
     import QtQml.Models 2.1 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:5:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:1:1: module "QtQuick" is not installed 
     import QtQuick 2.0 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:4:1: module "QtQuick.Layouts" is not installed 
     import QtQuick.Layouts 1.3 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:6:1: module "QtQuick.Controls.Styles" is not installed 
     import QtQuick.Controls.Styles 1.4 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:3:1: module "QtQml.Models" is not installed 
     import QtQml.Models 2.1 
     ^
file:///usr/share/mageiawelcome/mw-ui.qml:5:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.4 
     ^
module "QtQuick" is not installed
module "QtQuick.Layouts" is not installed
module "QtQuick.Controls.Styles" is not installed
module "QtQml.Models" is not installed
module "QtQuick.Controls" is not installed
module "QtQuick" is not installed
module "QtQuick.Layouts" is not installed
module "QtQuick.Controls.Styles" is not installed
module "QtQml.Models" is not installed
module "QtQuick.Controls" is not installed
module "QtQuick" is not installed
module "QtQuick.Layouts" is not installed
module "QtQuick.Controls.Styles" is not installed
module "QtQml.Models" is not installed
module "QtQuick.Controls" is not installed
module "QtQuick" is not installed
module "QtQuick.Layouts" is not installed
module "QtQuick.Controls.Styles" is not installed
module "QtQml.Models" is not installed
module "QtQuick.Controls" is not installed
module "QtQuick" is not installed
module "QtQuick.Layouts" is not installed
module "QtQuick.Controls.Styles" is not installed
module "QtQml.Models" is not installed
module "QtQuick.Controls" is not installed

CC: (none) => mageia

Comment 11 Marja Van Waes 2018-12-22 23:50:47 CET
and when, apart from the aforementioned packages, you do also add:

qtquickcontrols5
qtdeclarative5

do you then still get (those) errors?
Comment 12 Martin Whitaker 2018-12-23 00:07:46 CET
Those were the missing pieces, Marja :-)

I assume those are missing dependencies in the python3-qt5-quick and python3-qt5-qml packages, rather than in mageiawelcome.

BTW, well done to all involved in developing the new mageiawelcome. That's a huge improvement on the old version.
Comment 13 Thomas Andrews 2018-12-23 00:24:44 CET
(In reply to Martin Whitaker from comment #12)
> 
> BTW, well done to all involved in developing the new mageiawelcome. That's a
> huge improvement on the old version.

Now you have me eager to see it. ;-)

Waiting for the next update, with all dependencies involved, to hit the mirror...
Comment 14 David GEIGER 2018-12-23 04:28:50 CET
So should be fixed in next mageiawelcome-1.16-3.mga7
Comment 15 papoteur 2018-12-23 08:20:23 CET
And with python3-qt5?
Comment 16 Thomas Andrews 2018-12-23 18:21:16 CET
OK, it runs now, from the command line, the Plasma menu, and upon reboot. 

But there's just one thing yet... If you uncheck the box for it to run on startup, it runs anyway on the next boot. Checking my user's .mageiawelcome, it's empty whether the box in mageiawelcome is checked or not.

I must agree with Martin on the new design, though. Great job!
Comment 17 papoteur 2018-12-23 21:58:55 CET
Hum,
I have to check, indeed.
I have moved the config file to .config/mageiawelcome
I should check that it is active.
Papoteur
Comment 18 Thomas Andrews 2018-12-24 00:58:47 CET
A series of trials shows that the check box is manipulating the contents of .config/mageiawelcome but it is still the contents of .mageiawelcome that determine if it will show on startup.
Comment 19 Thomas Andrews 2018-12-28 16:21:12 CET
As of the latest updates, received about an hour ago, mageiawelcome now appears to be working correctly on the two installs that I have checked so far. So, I'd say this bug has been fixed.

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