We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Error on importing org.freedesktop.contextkit [answered]

asked 2020-05-03 18:21:55 +0200

Tanghus gravatar image

updated 2020-05-04 12:54:17 +0200

From the Rokua 3.3.0 release notes:

  • qml contextkit backend changed. libstatefs-qt5 to be deprecated.

I get an error on import org.freedesktop.contextkit 1.0

file:///usr/share/harbour-currencyconverter/qml/harbour-currencyconverter.qml:32:1: module "org.freedesktop.contextkit" is not installed
 import org.freedesktop.contextkit 1.0

This happened after I updated to 3.3.0.16. I was still using an old SDK, so I updated to the newest and rebuild/deployed again, but to no avail. The apps had worked fine thru several releases.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Tanghus
close date 2020-05-04 13:46:45.712935

Comments

Imports okay for me, what SDK version are you using? I'm using;

Qt Creator 4.9.1 (Sailfish SDK 3.0.7)
Based on Qt 5.12.5 (MSVC 2015, 32 bit)
Spam Hunter ( 2020-05-03 19:12:29 +0200 )edit
1

Newer SDK:

Qt Creator 4.9.1 (Sailfish SDK 3.1.7)
Based on Qt 5.12.5 (GCC 5.4.0 20160609, 64 bit)
Tanghus ( 2020-05-04 00:58:38 +0200 )edit

ahh, okay, I did look for the newer SDK but didn't find it.

EDIT, got it, thanks!

Spam Hunter ( 2020-05-04 01:18:53 +0200 )edit
1

Apparently I was missing Requires: contextkit-declarative-qt5 line in the .spec file.

Weird as it wasn't needed before 3.3.0

Tanghus ( 2020-05-04 12:53:23 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-05-04 13:46:13 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-05-04 13:46:13 +0200

Tanghus gravatar image

From a sailor:

The package providing this has just been switched in the latest SailfishOS release, and maybe the old one was more likely to be automatically installed.

edit flag offensive delete publish link more

Comments

On Jolla phone, tablet and sdk the problem here is bluez4 which the dependencies didn't properly handle. Fixes there https://git.sailfishos.org/mer-core/nemo-qml-plugin-contextkit/merge_requests/4

If we'll do a 3.3.0 bug fix release, it should be included there.

Pekka Vuorela ( 2020-05-13 12:40:30 +0200 )edit

Question tools

Follow
3 followers

Stats

Asked: 2020-05-03 18:21:55 +0200

Seen: 229 times

Last updated: May 04 '20