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
Python2 fix [for KA Lite on Debian 12 or Ubuntu 23.04 / 23.10] #3527
Conversation
|
not many of the roles are using that one and it looks like the same idea as using could be extended to mongodb kolibri roles |
when: not (is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12) above could be |
I wish. But I'm pretty sure above will lead to false positives. An example is |
Lets keep it simple and just run with this for now, I know the alternate path works, just needs conformation that normal way still works on RasPiOS-11 and Ubuntu less than 23.04. I'm pretty sure the logic is ok but if you want to test it yourself go ahead. |
Some back story around the ansible equivalent of 'dpkg_arch' #2497 (comment) |
Simpler for now, yes: So And if in future this Python 2 threshold can be cleanly automated...to be more future proof (in one way or another?) even better. |
Whenever ubuntu-23.10.yml shows up in vars/ the conditional can be revisited. |
LGTM. I or someone should test this on Ubuntu 23.04 or Debian 12 before merging. |
I'd like to see a RasPiOS-11 or Ubuntu_22XX install done as constant for the old code path also. |
U-2204 http://sprunge.us/msHXY8?en tested with
|
Install on Ubuntu 23.04 failed:
iiab-diagnostics: |
https://packages.debian.org/bullseye/libpython2.7-stdlib
|
I'll come back to this later have to step out for a bit. |
http://sprunge.us/KicFRk?en Ubuntu-23.04 VM
Think all you would need is a git pull and continue |
Seems to have failed again:
iiab-diagnostics: |
Can you grab the last bit of /var/log/apt/history.log and could run the file by hand and note anything that looks suspect |
|
|
The output The last 3 commits were written on the VM. The other thing to note is the change from 2.7.18-8 to 2.7.18-13ubuntu2 my first install stopped with the noted error above then was switched over to the later version in af7a646 but completed anyway http://sprunge.us/Vlzvd7 |
|
I did the above. No dice, in the end:
Latest iiab-diagnostics, in case this helps: |
http://sprunge.us/N32W2U can't reproduce on a new VM apt history
Think that is the source of your current issue with the past install try, on this machine can you try Please post this log if the rest below fails
|
Done.
Before install_python2.sh:
After install_python2.sh:
Dir Finally, |
I or someone should test this on a Debian 12 VM in coming days. (If that works out, good enough to merge?) |
ASIDE/FYI: while both pre-release OS's are rather "frozen" preparing for release — Ubuntu 23.04 and Debian 12 have each made a few different choices along the way:
|
FYI |
FWIW on the above Debian 12 VM where IIAB was installed with this PR:
|
Reconfirmed arm64 works http://sprunge.us/h6gXzK |
Fixes bug:
#3450 #3399 #3289
Description of changes proposed in this pull request:
see new file
Smoke-tested on which OS or OS's:
http://sprunge.us/rtK5U5 My home-brew RasPiOS-12arm64 test box #3526 Should work on Ubuntu-23.04 and Debian-12 also