plasma-applet-weather-widget icon indicating copy to clipboard operation
plasma-applet-weather-widget copied to clipboard

Error at loading, Type YrNo unavailable (Ubuntu)

Open svenk opened this issue 6 years ago • 4 comments

On a Ubuntu 17.10 system with packages cmake extra-cmake-modules qt5-qmake qtdeclarative5-dev libqt5scripttools5 qtscript5-dev plasma-framework-dev qml-module-qtquick-xmllistmodel installed manually, after following the compile and build instructions, I get an error when adding the widget to the screen

Fehler beim Laden der QML-Datei: file:///usr/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/main.qml:113:5: Type YrNo unavailable
file:///usr/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/providers/YrNo.qml:18:1: module "QtQuick.XmlListModel" is not installed

(sorry for having the language being set to German, this says basically error at loading the QML file: ...)

Where do we get the YrNo type from? The second error seems to be related to missing Qt dependencies (despite I have installed the Ubuntu package qml-module-qtquick-xmllistmodel)

svenk avatar Sep 07 '18 17:09 svenk

Have you compiled with Qt 5.12.0 ? if yes, since qt 5.12.0 branch, xmllistmodel was moved upstream from qtdeclarative module to qtxmlpatterns module:

https://github.com/qt/qtdeclarative/commit/0477a057fd02050fd330760bf046f5e0e91a9331

david-geiger avatar Dec 22 '18 06:12 david-geiger

Same here (openSUSE). "libQt5XmlPatterns5" v5.12 is installed.

KAMiKAZOW avatar Dec 23 '18 00:12 KAMiKAZOW

Same here (openSUSE). "libQt5XmlPatterns5" v5.12 is installed.

You need also install libqt5-qtxmlpatterns-imports on openSUSE.

david-geiger avatar Dec 23 '18 03:12 david-geiger

same here, gentoo with qt 5.12, and i got error message like this:

plasmashell: relocation error: /usr/lib64/qt5/qml/QtQuick/XmlListModel/libqmlxmllistmodelplugin.so: symbol _ZN3QV46Object12insertMemberEPNS_6StringEPKNS_8PropertyENS_18PropertyAttributesE version Qt_5_PRIVATE_API not defined in file libQt5Qml.so.5 with link time reference

try rebuild kde-misc/plasma-applet-weather-widget, dev-qt/qtdeclarative and dev-qt/qtxmlpatterns but does not work

OwenChia avatar Mar 03 '19 04:03 OwenChia