kotelnik / plasma-applet-weather-widget

Plasma 5 applet for displaying weather information from yr.no server.
GNU General Public License v2.0
88 stars 42 forks source link

Error when loading widget (not working at all) #77

Open tonyrulez opened 5 years ago

tonyrulez commented 5 years ago

After adding the widget on a freshly installed Manjaro KDE I get this error:

file:///home/XXXXX/.local/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/main.qml:113:5:Type YrNo unavailable. file:///home/XXXXX/.local/share/plasma/plasmoids/org.kde.weatherWidget/contents/ui/providers/OpenWeatherMap.qml:18:1: module "QtQuick.XmlListModel" is not installed

Unfortunately this is all I get, the widget is completely broken. Same feedback in KDE Store link

aaronpuchert commented 5 years ago

I got the same error. As the message says, the module QtQuick.XmlListModel is missing. The Qt docs tell us that the module is part of “Qt XML Patterns”, so I installed the package for that. (On OpenSUSE it was libqt5-qtxmlpatterns-imports. You know you have the right package when it contains something like /usr/lib64/qt5/qml/QtQuick/XmlListModel.) Don't forget to restart plasmashell, for example by logging out and in again.

If you use a distro-provided package, tell the packagers to add the package as dependency.

aaronpuchert commented 5 years ago

See also #71, which is exactly the same issue.

Vistaus commented 5 years ago

Same error here. Was working fine with Qt 5.11, but since the upgrade to 5.12.1 today, it started displaying this error.

aaronpuchert commented 5 years ago

Did you make sure you also have the QML part of the package? On openSUSE they decided to separate this part. As I wrote, you need to make sure that this is available. (It might be in /usr/lib though.)

aaronpuchert commented 5 years ago

Then you shouldn't get an error that QtQuick.XmlListModel is missing. Did you restart the Plasma shell?

Vistaus commented 5 years ago

I even restarted my computer, but it's still not working. So I think additional changes by @kotelnik are needed in order to make it compatible with Qt 5.12

Edit: or additional files are needed. I just poked the Solus devs.

aaronpuchert commented 5 years ago

I suspect the latter, because if /usr/lib[64]/qt5/qml/QtQuick/XmlListModel is there, the error message doesn't make sense.