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
roles/kalite fails to pin setuptools to 44 on emerging OS's (e.g. Ubuntu 24.04) with Python 3.12 — "Wheel for pip for Python 2.7 is unavailable. apt install python2-pip-whl" #3711
Comments
Some Python 2 clarifications, just for background / context:
|
Not sure if this is helpful, but FYI just in case:
|
The availability of apt package Still, just for the record, here is its official availability on 3 different/recent OS's: [where roles/kalite actually does install, in all 3 cases below!]
|
More readably with indentation preserved, here's the (equivalent) error message on Ubuntu 24.04, obtained by running the equivalent command without Ansible:
|
Yes I understand the issue but ask yourself where python2 originates from and where python2-pip-whl is available. |
Line 96 could be inserted in scripts/install_python2.sh
Leading to some-but-not-all of the needed packages:
The final result remains incomplete:
(Possibly it's no longer worth it to try to keep KA Lite running on modern OS's.) |
You tend to do more than what was suggested, I'd drop the last 2 in the list... setuptools is being installed directly into the virtual environment via pip in the next stanza within the play and python3-wheel-whl is an automatic dependence already present but gets downgraded to the version in U22.04? Doesn't look like it. Come to think about it you should be able to install wheel directly into the virtual environment in the same way as setuptools is pinned to 44.X I would suggest version 0.37.1 installed before setuptools Think upstream has taken direct aim at this workaround, as this is more of a new issue with a change in upstream packaging as this routine used to install on 24.04 as you reported earlier or any I misremembering something?
I suggest using
Should of died years ago. One could tar up older OSs' /usr/local/kalite/venv (one for each supported arch) and just extract it into place. |
I'm thinking a change to virtualenv might need to use the version from U22.04. Seen this before
I really don't see the need to use Side note references wrong script |
Fixed! Thanks for noticing: |
I tend to agree: 24.04 upgrading from Python 3.11 to 3.12 late last week changed many things (: |
I'd recommend steering people away from KA Lite starting very soon, e.g. in March. Barring any sudden miracles in the coming week. As this Python 2 workaround that @jvonau helped develop was a real breakthrough in recent years, but if 24.04 and Python 3.12 packaging etc are going to make this too painful to sustain, then it's likely now time to change course.
I'm personally not volunteering but yes Archive.org enthusiasts who try to keep ancient software running should consider 👍 |
just installed kalite on debian 12 vm. works fine. I have the impression that python 3.11 is what deb12 gets unless you explicitly install 3.12 which I would not do. If that remains true for the foreseeable future works for me. |
It's about how Python 3.12 (and many associated things) are packaged. Ubuntu 24.04 pre-releases are affected since about a week ago. Debian 12 and Bookworm-like OS's are completely unaffected. |
I got this to go on U24.04 at the cmdline in a multipass VM with a bit of screwing around. I'll see if I can condense the notes down into something usable. Raw notes pulled from bash_ history: py2-raw.txt |
Thanks to @jvonau for the offering an Ubuntu 24.04 solution (for Python 2 and KA Lite) which is now merged! |
I don't know yet if this will be easily fixable or not?
@jvonau might know:
iiab-diagnostics: http://sprunge.us/L2kogP?en
Error from /opt/iiab/iiab/iiab-install.log:
Tangentially related Python 3.12 issue affecting LARGE-sized IIAB installs on Ubuntu 24.04:
The text was updated successfully, but these errors were encountered: