dfaust / plasma-applet-netspeed-widget

Plasma 5 widget that displays the currently used network bandwidth
GNU General Public License v2.0
128 stars 17 forks source link

Error: PlasmaCore.DataSource is not a type #46

Open dfaust opened 7 months ago

dfaust commented 7 months ago

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 commented 7 months ago

@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?

pe200012 commented 7 months ago

image

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

{
    "KPlugin": {
        "Authors": [
            {
                "Email": "hessijames@gmail.com",
                "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.

giostark commented 7 months ago

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": "hessijames@gmail.com", "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": "" }

jas0n098 commented 7 months ago

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

dfaust commented 7 months ago

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?

giostark commented 7 months ago

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?

Kyshman commented 6 months ago

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.