Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: PlasmaCore.DataSource is not a type #46

Open
dfaust opened this issue Apr 11, 2024 · 7 comments
Open

Error: PlasmaCore.DataSource is not a type #46

dfaust opened this issue Apr 11, 2024 · 7 comments

Comments

@dfaust
Copy link
Owner

dfaust commented Apr 11, 2024

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 #43 (comment)

@dfaust
Copy link
Owner Author

dfaust commented Apr 11, 2024

@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
Copy link

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
Copy link

giostark commented Apr 12, 2024

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
Copy link
Contributor

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

@dfaust
Copy link
Owner Author

dfaust commented Apr 20, 2024

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
Copy link

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
Copy link

Kyshman commented May 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants