tareksander / termux-gui-python-bindings

A Python library to interact with the Termux:GUI plugin
https://tareksander.github.io/termux-gui-python-bindings/index.html
Mozilla Public License 2.0
99 stars 7 forks source link

termux:gui not installed? #1

Closed olav2021 closed 1 year ago

olav2021 commented 2 years ago

Hello, I try to run the hello world example with termux 117 and termux-gui 0.1.4 and pythonbinding 0.1.3, armv8l Android.

94@localhost ~ ╰─➤ python helloworld.py Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/termuxgui/connection.py", line 36, in init main = mainss.accept()[0] File "/data/data/com.termux/files/usr/lib/python3.10/socket.py", line 293, in accept fd, addr = self._accept() TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/home/hello.py", line 5, in with tg.Connection() as c: File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/termuxgui/connection.py", line 62, in init raise RuntimeError("Could not connect to Termux:GUI. Is the plugin installed?") RuntimeError: Could not connect to Termux:GUI. Is the plugin installed?


You mentioned something about building termux from source, right? Do I really have to?

tareksander commented 2 years ago

I'm still waiting for f-droid to review the plugin so it will be included on f-droid, but I now provide an apk to use it, because the process is taking longer than I expected. The downside is that the apk is only compatible with the Github build of Termux, because I don't have the f-droid signing key to sign it.
To install it you first have to uninstall Termux and all plugins from f-droid (be sure to backup your files if you want to keep them), and then reinstall Termux from Github:
https://github.com/termux/termux-app/actions/runs/1485416404
And the plugins you want:
https://github.com/termux/termux-api/actions/runs/1486934030
https://github.com/termux/termux-tasker/actions/runs/1225499291
https://github.com/termux/termux-styling/actions/runs/992419269
https://github.com/termux/termux-widget/releases/tag/v0.13.0

Then you can install Termux:GUI: https://github.com/tareksander/termux-gui/releases/tag/0.1.3

poggenpower commented 2 years ago

I this still in review on the f-droid side?

tareksander commented 2 years ago

No, but the installation won't work due to signing key issues: https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10240
The only option is using the Github apk for Termux and Termux:GUI.

Vosjedev commented 1 year ago

is there any chance of this apearing on fdroid in the future?

tareksander commented 1 year ago

The f-droid team disabled the app because it needs to be re-signed. I don't know when that will happen. The alternative is that my PR for plugins without shared UID gets merged and a new Termux version is released, because it won't need to be re-signed then. I don't know what will happen sooner. In any case distribution on f-droid would be possible then. For any new information you can watch the pinned issue about this on the Termux:GUI repo. Closing this now as it's a duplicate of that issue.