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

Error: PlasmaCore.DataSource is not a type

Open dfaust opened this issue 2 months ago • 7 comments

Hi all , Today I tried to download and install this widget to my laptop but it end with this issue : file:///home/ios/.local/share/plasma/plasmoids/org.kde.netspeedWidget/contents/ui/main.qml:52:5: PlasmaCore.DataSource is not a type The "install" from https://www.opendesktop.org/p/2136505/ via install report : invalid OCS URL The old zip linked above do not work either. Installing it from source report the same first issue.

Suggestions ? Thanks :-)

Originally posted by @giostark in https://github.com/dfaust/plasma-applet-netspeed-widget/issues/43#issuecomment-2049293999

dfaust avatar Apr 11 '24 10:04 dfaust

@giostark:

Can you please check the version number in org.kde.netspeedWidget/metadata.json. Also, to be clear, you are using Plasma 6, right?

And how exactly do you get the invalid OCS URL error?

dfaust avatar Apr 11 '24 11:04 dfaust

image

Same issue here(using Plasma 6), metadata.json is as below:

{
    "KPlugin": {
        "Authors": [
            {
                "Email": "[email protected]",
                "Name": "Daniel Faust"
            }
        ],
        "Category": "System Information",
        "Description": "Displays the currently used network bandwidth",
        "Icon": "network-connect",
        "Id": "org.kde.netspeedWidget",
        "License": "GPL2",
        "Name": "Netspeed Widget",
        "KPackageStructure": [
            "Plasma/Applet"
        ],
        "Version": "3.1",
        "Website": "https://github.com/dfaust/plasma-applet-netspeed-widget"
    },
    "X-KDE-ParentApp": "",
    "X-Plasma-API-Minimum-Version": "6.0",
    "X-Plasma-MainScript": "ui/main.qml",
    "X-Plasma-RemoteLocation": ""
}

Clicking the Install button on the Pling Store page gives me invalid OCS URL error. So I have to manually install by install.sh.

pe200012 avatar Apr 11 '24 15:04 pe200012

Hi Daniel! Thanks for your quick interest and answer, yes the plasma version is 6. Did you change something? It was as pe200012 but now I tried again with the source way and now it worked. Instead the "install" (blue) button on the store still say "invalid OCS-URL".

And the file you asked :

{ "KPlugin": { "Authors": [ { "Email": "[email protected]", "Name": "Daniel Faust" } ], "Category": "System Information", "Description": "Displays the currently used network bandwidth", "Icon": "network-connect", "Id": "org.kde.netspeedWidget", "License": "GPL2", "Name": "Netspeed Widget", "KPackageStructure": [ "Plasma/Applet" ], "Version": "3.1", "Website": "https://github.com/dfaust/plasma-applet-netspeed-widget" }, "X-KDE-ParentApp": "", "X-Plasma-API-Minimum-Version": "6.0", "X-Plasma-MainScript": "ui/main.qml", "X-Plasma-RemoteLocation": "" }

giostark avatar Apr 12 '24 08:04 giostark

DataSource is provided by the plasma5support package and should probably be added under dependencies in the README

jas0n098 avatar Apr 20 '24 12:04 jas0n098

DataSource is provided by the plasma5support package and should probably be added under dependencies in the README

That's a good point.

@pe200012, @giostark: Does it work with plasma5support installed?

dfaust avatar Apr 20 '24 13:04 dfaust

Was already installed at the time of the first attempt. Still the OCS link error persist. But installing via source worked (as mentioned above). Did you touch something in the source provided?

giostark avatar Apr 21 '24 08:04 giostark

Encountered this today.

I initially installed from within KDE Plasma and when I went to launch I got the error referenced by the OP which lead me here.

I uninstalled the KDE store version and installed the source via git, again got the same error.

On a haunch I decided to restart with the source (git) version installed. On login the widget is now working.

Not sure what the reboot does but my guess is that it enables the widget to see the plasma5support components.

Kyshman avatar May 14 '24 09:05 Kyshman