-
Hi community,
I'd appreciated your thoughts on Python scripting on UT.
It's no surprise (now) to me that I can't install python packages viapipusing terminal app sinceapt install python3-pipwon't work.Libertine is the way to go. I could install
pipfrom what I remember but now I wonder how I go about scripts that use Python's socket module ? Will I be able to usescapyfrom within the container ? I'm getting tablet running UT so I'm thinking about my options.Have you done any scripting using socket module ? How did you go about it ?
-
Yes, you should be able to install any Python module you need (so long as it is available to install on your device's architecture), with
pipinside a Libertine container.You may have an issue if you are trying to run something in perpetuity within the container as a server for example, or in some certain other situations, but in general most things should just work as normal. Just remember that there is no
sudoin the container, and you should not install it in the container as it will cause things to break. -
@dobey
I'll probably run into some issues then. Becausescapywon't run without superuser privileges. I gotta find a way. -
@marek_python Why would
scapyneed that? But you can also runlibertine-container-manager exec -i xenial -c bashfor example to get a "root" (it's an unprivileged container, but in fakeroot mode in this case). -
-
@dobey
Great news. I've just tried the fake root on my UT phone andscapyworked fine. No permission errors. Exciting times ahead.
Is it just on my phone or Terminal app crashes under screen lock ? It crashed twice after unlocking screen.
-
@marek_python The terminal app, and any child processes running in it, get paused when the screen locks. It shouldn't be crashing.
-
@dobey
I'll be testing it and if it keeps crashing on my devices I'll report it as an issue so the community knows. -
Disable app suspension for the terminal app on the tweak tool if you want.
Also, if you plan to create apps, you can try Seabass. It's a great code editor and supports creating a libertine container for building via clickable.