-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package request: Ansible #1815
Comments
This comment was marked as spam.
This comment was marked as spam.
Why I have to use an Arch Linux chroot inside termux? |
@elroncio You don't have to. Ansible may eventually be packaged natively. This is just one possible solution to run it today. |
@Neo-Oli I can give a try at compiling! |
@Neo-Oli I know, but I don't understand why this could be a good solution. I could also run a chroot with any other linux version, but I don't see the point in doing so. |
@elroncio I agree that it is a bad solution and would love to see Ansible becoming available in Termux. |
I tried |
@vishalbiswas It was quite fast for me, had to install the dependency pynacl using the steps in #1628 but the actual installation of ansible finished without errors quite quick. I installed from the git repo instead of with pip though. Importing it doesn't throw an error but I haven't tested it further. (And since it seems to be quite easy to install through pip I guess we can close this package request, any objections?) |
This comment was marked as spam.
This comment was marked as spam.
@Grimler91 Maybe you could add a (short) wiki article outlining the steps to install it? |
@Neo-Oli yeah that's a good idea. We can have a section for python packages that require special treatment. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
@SDRausty I think that everyone think that installing a chroot environment to be able to run a quite small package like ansible is a bit of an overkill. Thanks for pointing out that it is available through arch in termux. Arch linux in termux is indeed helpful to run packages that aren't available natively in termux yet. Hopefully all package requests will all be available in termux natively sooner or later. |
This comment was marked as spam.
This comment was marked as spam.
Closing this as we have outlined the steps on how to install it from pip (in short, first install pynacl following instructions in #1628 and then install ansible through pip). |
@tcaddy Python in Termux does not support sem_open() |
This comment was marked as spam.
This comment was marked as spam.
@SDRausty It may be available only after recompiling python with api 24 enabled toolchain, currently it is built with api 21. |
Any chance this sem_open thing can be fixed? I'm on Oreo and running into it still, in this case with flake8. ˋˋˋ |
only way it could happen is if we compile python using api-24. Im not sure even then. I will investigate... |
Yeah it won't work. |
Any way to fix this? I run into this when I pip install ansible |
@rathel header files are in the -dev packages. You are missing openssl/opensslv.h so I would try to install openssl-dev. |
Any known work arounds for this? I can install ansible cleanly but it can't run due to sem_open() which if I understand, the python multiprocessing on android is to blame. |
no there aren't. Sem_open is not available. |
Is there a previous version of ansible that does not rely on multiprocessing? I thought I had read that it was introduced in 1.9.x I'll try it tonight if I can |
so |
could we get around the sem_open issue making an ansible branch for termux that replaces all the multiprocessing calls? Like in this issue: asciinema/asciinema#271 |
For what it's worth you can give my alternative a try. It enables the usage of modern Ansible versions on Termux by creating a proot alpine image and installing ansible in it. |
Why does it work in a proot? |
🤷♂️ |
I can confirm that python3's import multiprocess.synchronize definitely works within a proot-ed debian. Not sure why. |
I can confirm that python3's import |
IT automation platform
Source Code: https://github.com/ansible/ansible
The text was updated successfully, but these errors were encountered: