Skip to content
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

scripts/ansible: Evaluate 'apt install ansible-core' on "32-bit" RasPiOS 12 Bookworm #3634

Merged
merged 3 commits into from Sep 8, 2023

Conversation

@holta holta added the question label Sep 8, 2023
@holta holta added this to the 8.1 milestone Sep 8, 2023
@holta holta changed the title scripts/ansible: Evaluate 'apt install ansible-core' on 32-bit RasPiOS scripts/ansible: Evaluate 'apt install ansible-core' on 32-bit RasPiOS 12 "Bookworm" Sep 8, 2023
@holta holta changed the title scripts/ansible: Evaluate 'apt install ansible-core' on 32-bit RasPiOS 12 "Bookworm" scripts/ansible: Evaluate 'apt install ansible-core' on "32-bit" RasPiOS 12 Bookworm Sep 8, 2023
@holta
Copy link
Member Author

holta commented Sep 8, 2023

Progress, at least this PR worked for @EMG70 on "fully 32-bit" RasPiOS 12 👍

And then separately, KA Lite failed to install (lacking Python 2?) as follows... [ also posted as new issue #3635 ]

1624 2023-09-08 17:05:50,386 p=4803 u=root n=ansible | TASK [kalite : Use scripts/install_python2.sh to install python2 and virtualenv] ***************************************************************************************************************************************************************
1625 2023-09-08 17:06:15,605 p=4803 u=root n=ansible | changed: [127.0.0.1]
1626 2023-09-08 17:06:15,656 p=4803 u=root n=ansible | TASK [kalite : Use pip to pin setuptools to 44 in /usr/local/kalite/venv] **********************************************************************************************************************************************************************
1627 2023-09-08 17:06:18,500 p=4803 u=root n=ansible | fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": ["/usr/bin/virtualenv", "-ppython2.7", "/usr/local/kalite/venv"], "msg": "stdout: RuntimeError: failed to find interpreter for Builtin discover of python_spec='python2.7'\n"}

So https://github.com/iiab/iiab/blob/master/scripts/install_python2.sh probably needs a bit of tuning in coming weeks, now that 32-bit RasPiOS 12 is about to be released.

iiab-diagnostics: http://sprunge.us/V3sOiI?en

@holta
Copy link
Member Author

holta commented Sep 8, 2023

FYI

@holta
Copy link
Member Author

holta commented Sep 8, 2023

Above preliminary diagnosis clarified in the link below — to explain that Python 2 is probably not actually MISSING — but rather not being found by Ansible:

@holta
Copy link
Member Author

holta commented Sep 8, 2023

The if statement should probably be refined to exclude 32-bit RasPiOS 11 (Bullseye) as apt package ansible-core is not available on this legacy OS

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant