A customer try to compile the python example in the SDK V1.8. using Pi running Ubuntu 18.04 server, but got this warning while building:
He can install it in the CORE without a problem, but when running he encounter this:
Also tried running it manually, but this doesn’t have the right environment.
Any tipp or idea? Thanks!
Solved! Go to Solution.
yes you are right, you cannot run the script manually without the right environment.
Just a small hint, your customer can check the user-permissions of the start script "register_node" before running snapcraft.
could you please be more specific where and what we should change in the start script? Any tips how we can run the script?
you can see in the screenshot the "regeister_node" script. Open the folder ./datalayer.provider/wrapper, then you can check the permissions with "ls -alh".
It should be executable.
If it is possible you can provide the systemreport.
Manage to build the python snaps for the CORE! Thank you for the help!
Now we try to run a flask server. We managed to run it on the emulation without problems, but on the real CORE it is saying that the connection is already in use (0.0.0.0:5000).
I also tried different ports and I’m using 0.0.0.0 to be able to access it from the outside.
Do you have any idea how we could go around this?
Also, is there any way to not specify the connection provider?
This was possible with the C++ SDK, but I couldn’t accomplish it here…
My Flask app(s) are working. Example i hope it may help you.
I have just proxy integration. It is simply a basic demo.
Your example works, thanks for that!
Other question, I am not able to give removable media access to the python snaps
We were able to give it to the C++ snap, but with python it doesn't work. Any idea how to solve it?
Neve tried to do it. I think that the deviceadmin snap should connect any plug autonomously but i am not a developer. paste here the .yaml(s) if you can, maybe i can give you an hint.
where have you seen the message on the screenshot? never seen it.
the message can be seen in the logbook..
here is the snapcraft.yaml:
summary: Testsnap for Python
# title: SDK-Python
description: 'It Provides simple data to ctrlX Data Layer
python-packages: # requirements go here
# describes which interface slots are supported by defining the plugs
Since there where conflicts with removable-media interface and another feature, we decided to allow the usage only for signed apps reviewed by us to ensure system integrity. In the upcoming release 1.10.x the interface removable-media will be available and can be used by unsigned apps.