Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 22.04 start albert: Failed loading QML component #1274

Closed
MABIY opened this issue Aug 13, 2023 · 12 comments
Closed

ubuntu 22.04 start albert: Failed loading QML component #1274

MABIY opened this issue Aug 13, 2023 · 12 comments
Assignees

Comments

@MABIY
Copy link

MABIY commented Aug 13, 2023

Description

when update albert ,stat eror.
image

Output of `albert -d` when run in a terminal
➜  ~ albert -d
10:33:27 [info:default] Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
        Albert version: 0.22.0
            Build date: Aug 12 2023 20:57:39
            Qt version: 6.2.4
             Build ABI: x86_64-little_endian-lp64
  Arch (build/current): x86_64/x86_64
 Kernel (type/version): linux/6.2.0-26-generic
                    OS: Ubuntu 22.04.3 LTS
     OS (type/version): ubuntu/22.04
 $QT_QPA_PLATFORMTHEME: 
         Platform name: xcb
                  Font: Ubuntu,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
       Binary location: /usr/bin/albert
                  $PWD: /home/lh
                $SHELL: /usr/bin/zsh
                 $LANG: en_US.UTF-8
              Language: English
                Locale: en_US
     $XDG_SESSION_TYPE: wayland
  $XDG_CURRENT_DESKTOP: ubuntu:GNOME
      $DESKTOP_SESSION: ubuntu
  $XDG_SESSION_DESKTOP: ubuntu
            Icon theme: Yaru
10:33:27 [crit:albert] Application has not been terminated graciously
10:33:27 [info:albert] Hotkey set to Ctrl+,
10:33:27 [warn:albert] Opening history file failed: /home/lh/.local/share/albert/albert.history
10:33:27 [fatal:default] Failed loading QML component
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:3 module "Qt5Compat.GraphicalEffects" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:3 module "Qt5Compat.GraphicalEffects" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:3 module "Qt5Compat.GraphicalEffects" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:3 module "Qt5Compat.GraphicalEffects" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed

@alexisjanvier
Copy link

I have the same error. I'm running Ubuntu 22.04 3 LTS, and I installed Albert from the PPA (http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04)

@oldtowneast
Copy link

Same error and setup as @alexisjanvier. Ran updates earlier tonight and first got an error "Failed to move the usage database to data location"

I copied the albert.db file from the configuration folder and then nuked it and got the "Failed loading QML component" error.

@ManuelSchneid3r
Copy link
Member

can somebody pls post the package info? iirc apt info albert

@ManuelSchneid3r
Copy link
Member

and does

apt-get install --no-install-recommends -y \
    qml6-module-qt5compat-graphicaleffects \
    libqt6statemachineqml6 \
    libqt6quick6 \
    libqt6core5compat6 \
    libqt6qmlworkerscript6 

solve the issue?

@alexisjanvier
Copy link

@ManuelSchneid3r, here is the result of the command:

➜  apt info albert
Package: albert
Version: 0.22.0-0+550.1
Priority: optional
Section: utils
Maintainer: Manuel Schneider <[email protected]>
Installed-Size: 5 211 kB
Depends: libarchive13 (>= 3.0.4), libc6 (>= 2.34), libgcc-s1 (>= 3.3.1), libmuparser2v5 (>= 2.2.6.1+dfsg), libpython3.10 (>= 3.10.0), libqalculate22 (>= 3.22.0), libqt6concurrent6 (>= 6.1.2), libqt6core6 (>= 6.2.0), libqt6gui6 (>= 6.2.0), libqt6network6 (>= 6.1.2), libqt6qml6 (>= 6.2.0), libqt6quick6 (>= 6.2.0), libqt6sql6 (>= 6.1.2), libqt6statemachine6 (>= 6.2.1), libqt6svg6 (>= 6.2.0), libqt6widgets6 (>= 6.1.2), libstdc++6 (>= 11), libx11-6, libqt6sql6-sqlite, qt6-wayland, qt6-qpa-plugins, python3-pip
Homepage: https://albertlauncher.github.io/
Download-Size: 1 945 kB
APT-Manual-Installed: yes
APT-Sources: http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_22.04  Packages
Description: Plugin-based C++/Qt keyboard launcher
 Albert is a desktop agnostic keyboard launcher that helps you to accomplish your workflows in a breeze.

And no, installing the 'qml6-module-qt5compat-graphicaleffects, ...' packages doesn't completely solve the problem. Here are the remaining errors:

Failed loading QML component
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed
qrc:/DefaultStyle.qml:4 module "QtQml.StateMachine" is not installed
qrc:/DefaultStyle.qml:2 module "QtQuick.Window" is not installed
qrc:/DefaultStyle.qml:-1 module "QtQml.WorkerScript" is not installed

@alexandrecourtois
Copy link

Hi,

Same here on MX23 (so Debian 12).

To have albert working after recent update I need to install the followings :

qml6-module-qtquick-shapes
qml6-module-qt5compat-graphicaleffects
qml6-module-qtqml-statemachine
qml6-module-qtquick-window
qml6-module-qtqml-workerscript

@ManuelSchneid3r
Copy link
Member

I updated the runtime dependencies (could take a while to build and ship though). i'd appreciate if somebody could test a clean install, meaning the dependencies should all be removed such that apt install albert has to pull them.

@alexandrecourtois
Copy link

It works now.

@ManuelSchneid3r
Copy link
Member

great

@alexisjanvier
Copy link

It's okay for me too with the latest update \o/ Thanks @ManuelSchneid3r 👍

@lllzy040620
Copy link

lllzy040620 commented Jan 13, 2024

A combination of comments from @ManuelSchneid3r and @alexisjanvier did work in my ubuntu 22.04.3. Here comes details.

# FIX from @ManuelSchneid3r 
sudo apt-get install --no-install-recommends -y \
    qml6-module-qt5compat-graphicaleffects \
    libqt6statemachineqml6 \
    libqt6quick6 \
    libqt6core5compat6 \
    libqt6qmlworkerscript6 

# FIX from @alexisjanvier 
sudo apt-get install qml6-module-qtquick-shapes qml6-module-qt5compat-graphicaleffects qml6-module-qtqml-statemachine  qml6-module-qtquick-window qml6-module-qtqml-workerscript

@ManuelSchneid3r
Copy link
Member

What was the error? Albert should Workout of the box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants