Bug 27070

Summary: Mageia Welcome can't launch dnfdragora which is not installed
Product: Mageia Reporter: Cyril Levet <cyril.levet0780>
Component: RPM PackagesAssignee: papoteur <yvesbrungard>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal CC: fri, yvesbrungard
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: mageiawelcome-2.02-1.mga8.src.rpm CVE:
Status comment:

Description Cyril Levet 2020-08-09 11:44:30 CEST
Description of problem: Mageia Welcome crashes when launching dnfdragora in the Install Softwares tab because dnfdragora is not installed by default from Classic iso without additional media.


Version-Release number of selected component (if applicable): 2.02-1


How reproducible: Always


Steps to Reproduce:
1. Install Mageia 8 Beta 1 with classic iso
2. Do not use additional media during installation process 
3. Update your Mageia
4. Launch Mageia Welcome
5. Try dnfdragora in "Install Softwares" tab
Comment 1 Lewis Smith 2020-08-09 21:48:17 CEST
I have confirmed this : mageiawelcome-2.02-1.mga8 on an up-to-date (8 Aug) M8 Classic install :
 Mageia Welcome - Install Software - dnfdragora
the window just disappears.

From terminal:
 $ mageiawelcome
file:///usr/share/mageiawelcome/Install.qml:23:9: QML Image: Cannot open: file:///usr/share/icons/draklive-install.png
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Traceback (most recent call last):
  File "/usr/share/mageiawelcome/mageiawelcome.py", line 163, in command
    proc = subprocess.Popen(cmd)
  File "/usr/lib64/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dnfdragora'

 $ rpm -q --last dnfdragora
package                                       dnfdragora is not installed

 $ urpmq --requires mageiawelcome
does NOT show dnfanything.

 $ urpmq --whatrequires dnfdragora
  dnfdragora-common
 $ urpmq --whatrequires dnfdragora-common
  dnfdragora-gtk
  dnfdragora-qt
 $ urpmq --whatrequires dnfdragora-gtk
 $ urpmq --whatrequires dnfdragora-qt

This looks like a simple dependency thing on MageiaWelcome.

Assigning to DavidG as the main maintainer for MageiaWelcome.

Assignee: bugsquad => geiger.david68210

Comment 2 papoteur 2020-08-25 08:40:41 CEST
Protection against crash is now added in 2.03.

CC: (none) => yves.brungard_mageia
Assignee: geiger.david68210 => yves.brungard_mageia

Comment 3 Aurelien Oudelet 2020-08-25 10:08:30 CEST
Fixed, no longer crash occurs.

Not installing dnfdragora therefore.
Dialog is "Command not found", but should be more user-friendly by proposing to install it.

"Would you like install dnfdragora alongside rmpdrake?
Currently, dnf does not supersede urpmi on Mageia.
This is provided to be more fedora-user-friendly"
Buttons : "Install" "Cancel"

Shouldn't it be?
papoteur 2020-12-28 10:00:55 CET

Severity: major => enhancement
Summary: Mageia Welcome crashes when launching dnfdragora => Mageia Welcome can't launch dnfdragora which is not installed

Morgan Leijström 2021-01-26 16:43:12 CET

CC: (none) => fri

Comment 4 Morgan Leijström 2021-02-02 10:36:42 CET
That message could have a link to
 https://wiki.mageia.org/en/Using_DNF
Comment 5 papoteur 2023-01-31 17:16:19 CET
With mageiawelcome 2.21, dnfdragora will be installed if not present.

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