How to Install `qml-module-qt-labs-platform` on Tumbleweed?

.qml:5:1: module "Qt.labs.platform" is not installed

https://www.reddit.com/r/kde/comments/g3ug7t/comment/fntw7wc/?utm_source=share&utm_medium=web2x&context=3

PowerShell 7.4.0-preview.3
PS /home/rokejulianlockhart> zypper search qml-module-qt-labs-platform
Repository 'dmafanasyev' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Main Repository (NON-OSS)' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Main Repository (DEBUG)' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Main Repository (Sources)' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Main Repository (OSS)' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Packman Repository' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'openSUSE-20230123-0' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Packman' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...
No matching items found.
NativeCommandExitException: Program "zypper" ended with non-zero exit code: 104.
PS /home/rokejulianlockhart>

@rokejulianlockhart did you see the other file mentioned in the link (qt5-quickcontrols2) and the shared library file?

zypper se --provides libqtlabsplatformplugin.so

S | Name                    | Summary                                | Type
--+-------------------------+----------------------------------------+--------
i | libqt5-qtquickcontrols2 | Qt 5 Quick Controls Addon              | package
i | qt6-declarative-imports | Qt 6 Declarative QML files and plugins | package

Does a Qt6 version exist? I’m using qml with PySide6, so I’d be surprised if Qt5 libraries worked. Especially considering

PS /home/rokejulianlockhart> sudo zypper install libqt5-qtquickcontrols2
Loading repository data...
Reading installed packages...
'libqt5-qtquickcontrols2' is already installed.
No update candidate for 'libqt5-qtquickcontrols2-5.15.9+kde5-1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
PS /home/rokejulianlockhart>

Also,

PS /home/rokejulianlockhart> sudo zypper install qt6-declarative-imports                                      [sudo] password for root:                                                                          
Retrieving repository 'Main Repository (NON-OSS)' metadata .............................................[done]
Building repository 'Main Repository (NON-OSS)' cache ..................................................[done]
Retrieving repository 'Main Repository (DEBUG)' metadata ...............................................[done]
Building repository 'Main Repository (DEBUG)' cache ....................................................[done]
Retrieving repository 'Main Repository (Sources)' metadata .............................................[done]
Building repository 'Main Repository (Sources)' cache ..................................................[done]
Retrieving repository 'Main Repository (OSS)' metadata .................................................[done]
Building repository 'Main Repository (OSS)' cache ......................................................[done]
Retrieving repository 'openSUSE-20230123-0' metadata ...................................................[done]
Building repository 'openSUSE-20230123-0' cache ........................................................[done]
Loading repository data...
Reading installed packages...
'qt6-declarative-imports' is already installed.
No update candidate for 'qt6-declarative-imports-6.5.0-2.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
PS /home/rokejulianlockhart>

Have I perhaps misinterpreted what you’re asking?

@rokejulianlockhart the qt6-declarative-imports package contains the bits needed, I suspect powershell needs an update?

@rokejulianlockhart all good here with 7.4.0;

./pwsh 
PowerShell 7.4.0-preview.3
PS /data/applications/powershell-7.4.0-preview.3-linux-x64> 

@rokejulianlockhart Ahh my bad, I thought it was a powershell issue on linux. Your running wsl2 and openSUSE and whatever app your trying to run isn’t working?

No, I’m using OpenSUSE on bare metal. I just use PowerShell Core as my default shell in konsole. I haven’t chsh- s’d it as the login shell, though – that’s still bash.

@malcolmlewis, perhaps you could look over my code at

(It’s a very small codebase of 3 files.)


I meant PyQt6, apologies.

@rokejulianlockhart I’m not a coder of qt stuff :grimacing:

1 Like

That’s alright. Not me much either, apparently! XD

Thanks for all your help.

might be more comprehensive.