Latest update corrupts dnfdragora

Hello,

  • OpenMandriva Lx version:
    Cooker

  • Desktop environment (KDE, LXQT…):
    Plasma

  • Description of the issue (screenshots if relevant):
    After last system-update, I can not run dnfdragora anymore.
    On 17/2 I ran a system-update, and that completed with success apparently. But there after, I could not run dnfdragora anymore (see messages below). But I had another big issue with grub2 (too many kernels), so I decided to start again from a clean slate.
    So on 18/2 I wiped the partition and using the same cooker ISO as from a few weeks ago. That went well, and this morining 19/2 I did the following:
    Used dnfdragora to install Firefox, went OK.
    Started the updates again, completed OK and rebooted. Seems going well, but the issue with dnfdragora pops up again

  • Relevant informations (hardware involved, software version, logs or output…):

$ dnfdragora
Try reading configuration file
From ./dnfdragora.yaml
Skipped exception: <[Errno 2] No such file or directory: './dnfdragora.yaml'>
From /etc/dnfdragora/dnfdragora.yaml
Finally read user settings from /home/herman/.config/dnfdragora.yaml
Warning logging must be set in user preferences, discarded
Logging disabled
<_M_> [ui] YUILoader.cc:60 loadUI(): DISPLAY: ":0"
<_M_> [ui] YUILoader.cc:61 loadUI(): XDG_CURRENT_DESKTOP: "KDE"
<_M_> [ui] YUILoader.cc:62 loadUI(): YUI_PREFERED_BACKEND: ""
<_M_> [ui] YUILoader.cc:96 loadUI(): User-selected UI-plugin: ""
<_M_> [ui] YUILoader.cc:128 loadUI(): Using UI-plugin: "qt"
<_M_> [ui] YUI.cc:83 YUI(): This is libyui 4.6.2
<_M_> [ui] YUI.cc:84 YUI(): Creating UI without threads
<_M_> [qt-ui] YQUI.cc:110 YQUI(): This is libyui-qt 4.6.2
<_M_> [ui] YUI.cc:238 topmostConstructorHasFinished(): Running without threads
<_M_> [qt-styler] QY2Styler.cc:166 loadStyleSheet(): Couldn't open style sheet "/usr/share/libyui/theme/current/wizard/style.qss"
<_M_> [qt-ui] YQUI.cc:259 processCommandLineArgs(): Qt argument: python3
<_M_> [qt-ui] YQUI.cc:259 processCommandLineArgs(): Qt argument: /usr/bin/dnfdragora
<_M_> [qt-ui] YQUI.cc:412 calcDefaultSize(): Default size: 956 x 600
<_M_> [qt-ui] YQApplication.cc:98 YQApplication(): QIcon::themeName = 'breeze'
<_M_> [qt-ui] YQApplication.cc:153 loadPredefinedQtTranslations(): Selected language: en_US
<WRN> [qt-ui] YQApplication.cc:168 loadPredefinedQtTranslations(): Can't load translations for predefined Qt dialogs for en_US
<_M_> [qt-ui] YQUI.cc:236 initUI(): YQUI initialized. Thread ID: 0x0x7fb3b19c7740
<_M_> [ew] YExternalWidgets.cc:40 YExternalWidgets(): Creating Libyui External Widgets object
dnfdaemon AttributeError: module 'yui' has no attribute 'YMGAWidgetFactory'
<_M_> [ui] YUILoader.cc:236 deleteUI(): Shutting down UI
<_M_> [qt-ui] YQUI.cc:302 ~YQUI(): Closing down Qt UI.
Traceback (most recent call last):
  File "/usr/bin/dnfdragora", line 83, in <module>
    main_gui = ui.mainGui(options)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/dnfdragora/ui.py", line 277, in __init__
    self._setupUI()
  File "/usr/lib/python3.11/site-packages/dnfdragora/ui.py", line 405, in _setupUI
    self.mgaFactory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(mgaFact)
                      ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'yui' has no attribute 'YMGAWidgetFactory'. Did you mean: 'YWidgetFactory'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/dnfdragora", line 95, in <module>
    dialogs.warningMsgBox({'title' : _("Sorry"), "text": _("dnfdaemon attribute error occurred:%(NL)s%(error)s")%{'NL': "\n",'error' : str(e)}})
  File "/usr/lib/python3.11/site-packages/dnfdragora/dialogs.py", line 1285, in warningMsgBox
    factory = yui.YMGAWidgetFactory.getYMGAWidgetFactory(factory)
              ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'yui' has no attribute 'YMGAWidgetFactory'. Did you mean: 'YWidgetFactory'?
<_M_> [ew] YExternalWidgets.cc:123 ~YExternalWidgetsTerminator(): Shutting down mga External Widgets
<_M_> [ew] YMGAWidgetExtensionFactory.cc:49 ~YMGAWidgetFactory(): Factory removed

I fixed this a couple of days ago, but it looks like the fix was published only on znver1. I’ve just pushed an equivalent fix to x86_64, so you should be fine after the next update.

1 Like

Updated my KDE ROME today, same issue. dnfdrake works tough
https://openmandriva.pkgs.org/rolling/openmandriva-main-release-x86_64/dnfdrake-4.3.0-1-omv2590.noarch.rpm.html

Do you have libyui-4.6.2-8? I believe that is the fix.

Package lib64yui-4.6.2-7.x86_64 is already installed. no updates for lib64yui in rome at least for me. did 2-8 not make it over to the rome repo?

Same here, I’m waiting for a new post in ROME major upgrade expected to upgrade.

$ rpm -qa | grep lib64yui 
lib64yui-mga-1.2.1-4.x86_64
lib64yui-mga-qt-1.2.0-3.x86_64
lib64yui-mga-ncurses-1.2.0-3.x86_64
lib64yui-4.6.2-7.x86_64
lib64yui-ncurses-4.6.2-7.x86_64
lib64yui-qt-4.6.2-7.x86_64

Today’s update fixed it (ROME)