Issue with latest Docker images and libffi
Closed this issue · 5 comments
In Heptapod by @HacKanCuBa on Dec 24, 2023, 02:01
This issue is initially reported to Poetry, but after digging up a bit, it turns out it's a PyPy issue.
Trying to install Poetry in the latest images for PyPy 3.9 and 3.10 fails with the following error:
/root/.local/share/pypoetry/venv/bin/python: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
To discard Poetry as the source of the problem, here's a reproducer not involving Poetry:
FROM pypy:3.9-slim
RUN python3 -c 'import venv; builder = venv.EnvBuilder(); builder.create("/tmp/foo")'
RUN /tmp/foo/bin/python3
Alternatively:
The system has libffi v7 installed, while for whatever reason, Python is trying to use v6. This seems to indicate that it has been built incorrectly. This situation doesn't happen on the previous version of said images, namely pypy:3.9-7.3.12-slim and pypy:3.10-7.3.12-slim.
In Heptapod by @HacKanCuBa on Dec 24, 2023, 02:04
Creating a soft link of libffi v7 as v6 may work, but it would be wrong and heavily unreliable, so please refrain from said "solution" :P
In Heptapod by @mattip on Dec 24, 2023, 17:48
Who is responsible for that docker image? It is not anything the PyPy project publishes.
In Heptapod by @HacKanCuBa on Dec 24, 2023, 18:31
Oh, those images are not maintained by the PyPy team? 😲
In Heptapod by @HacKanCuBa on Dec 24, 2023, 18:38
Shit hahah sorry, we can close this :D
Thanks! Merry xmas! 🎉