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

No pyotherside on sdk 2.0 emulator

asked 2019-04-05 15:39:18 +0300

cy8aer gravatar image

updated 2019-04-05 15:43:19 +0300

I tried to startup a program with pyotherside on the sdk 2.0 emulator and get:

[W] unknown:77 - file:///usr/share/harbour-bluepill/qml/harbour-bluepill.qml:77:5: Type ClientHandlerPython unavailable 
         ClientHandlerPython { 
         ^
[W] unknown:3 - file:///usr/share/harbour-bluepill/qml/components/ClientHandlerPython.qml:3:1: module "io.thp.pyotherside" is not installed 
     import io.thp.pyotherside 1.4

Isn't pyotherside not installed in the sdk emulator anymore?

edit retag flag offensive close delete

Comments

2 Answers

Sort by » oldest newest most voted
4

answered 2019-04-05 18:08:34 +0300

michfu gravatar image

updated 2019-04-05 18:12:36 +0300

If it was already working before:

I also had this. I uninstalled the SDK and reinstalled it, then it was working.

Otherwhise:

Also you got to make sure to deploy the RPM to the Emulator, not only the binaries. This way the dependencies (check them!) get installed during deployment.

@jolla The uninstall and update process of the SDK is a PITA. Always complaining about ssh-keys, which I never touched (so why should I bother?). Put them somewhere in the config path. There also were some other flaws during un-/installing the SDK. The installer kept opening the build vm, but complaining it isnt accessible. The only way out was to kill the installer, delete the SDK-folder and start over again.

edit flag offensive delete publish link more

Comments

Yes I did not put the dependency into the spec yaml. But according to

https://github.com/sailfishos/python-sample/blob/master/rpm/pythonsample.yaml

it should be pyotherside-qml-plugin-python3-qt5. When starting it up in the emulator I get:

Error: nothing provides pyotherside-qml-plugin-python3-qt5 needed by harbour-bluepill-0.1-4.i486

That looks like a missing repository?

cy8aer ( 2019-04-05 19:49:13 +0300 )edit

I guess it has got sth to do with the updating process. I really would recommend removing the SailfishOS directory and reinstalling the SDK.

In my case I updated the SDK, then I tried to run an app which was always working before (and also on another PC, which I already updated in the same way before).

The app complained like yours. Pyotherside was indeed missing, although it is an dependency of the app. Installing Pyotherside manually also didn't solve the issue. Then I didn't investigate any further, coz I knew it runs on another SKD. So I just removed it an reinstalled it.

michfu ( 2019-04-05 21:30:27 +0300 )edit

Nope, as said above, also installing pos manually didnt help. Did I already mention to un- and reinstall the SDK... ? ;)

michfu ( 2019-04-06 11:46:25 +0300 )edit

@michfu: Yes you mentioned it - but I did not mention that I un- and reinstalled the SDK twice. No effect. But the pkcon refresh in the emulation did.

cy8aer ( 2019-04-07 18:38:06 +0300 )edit
2

answered 2019-04-05 22:23:23 +0300

cy8aer gravatar image

updated 2019-04-09 22:06:05 +0300

Guess what is needed?

First log into the emulator via ssh

ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/Sailfish_OS-Emulator-latest/root root@localhost

and then do

pkcon refresh

just like on the phone after upgrading.

edit flag offensive delete publish link more

Comments

@cy8aer please mark this as the correct answer

martyone ( 2019-04-08 07:57:20 +0300 )edit

I also get the error Error: nothing provides pyotherside-qml-plugin-python3-qt5 with SDK 2.2. pkcon refresh does not solve it, though.

pkcon install pyotherside-qml-plugin-python3-qt5 returns Command failed: This tool could not find any available package: No packages were found

Deleted and reinstalled the whole SDK twice. No success

Any ideas?

Just saw a comment by @coderus in a different thread that the SDK repos are not published yet for 3.1. Could this be the issue?

umko ( 2019-08-01 00:08:09 +0300 )edit

Yes, that's likely to be the reason, it should work if you try now.

martyone ( 2019-08-05 08:42:50 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-04-05 15:39:18 +0300

Seen: 326 times

Last updated: Apr 09 '19