Error installing latest Poetry (1.7.1) under PyPy 3.9
HacKanCuBa opened this issue ยท 9 comments
I'm trying to install Poetry 1.7.1 in the latest PyPy 3.9 (pypy:3.9-slim
, sha256:129bfb1172d152c20b4634b85e659e02d6269d35a2cf1eec7303f857e9185116
).
It works just fine for PyPy 3.8, but here this issue appears:
root@0321270e3356:/opt# apt-get update
root@0321270e3356:/opt# apt-get upgrade -qy --no-install-recommends
root@0321270e3356:/opt# apt-get install -qy --no-install-recommends \
build-essential \
libffi-dev \
git
root@0321270e3356:/opt# python install-poetry.py --yes
Retrieving Poetry metadata
/etc/ssl/certs/ca-certificates.crt /etc/ssl/certs
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/root/.local/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.7.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /opt/poetry-installer-error-u6z76i6e.log for error logs.
root@0321270e3356:/opt# cat poetry-installer-error-u6z76i6e.log
/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
Traceback:
File "/opt/install-poetry.py", line 923, in main
return installer.run()
File "/opt/install-poetry.py", line 562, in run
raise PoetryInstallationError(
root@0321270e3356:/opt# apt search libffi
Sorting... Done
Full Text Search... Done
libffi7/now 3.3-6 amd64 [installed,local]
Foreign Function Interface library runtime
As you can see, libffi
does exist, but under a newer version. I'm not entirely sure that this is an issue for this repo, or for PyPy.
If I use the previous PyPy version image (pypy:3.9-7.3.12-slim), the installation succeeds.
The same happens for PyPy 3.10 (pypy:3.10-slim), but as well it works for the previous image (pypy:3.10-7.3.12-slim)
That appears to be using a no longer supported install script. Seems to work for me with pipx and manually creating my own venv. I could not install curl (boggle) to test the new script.
I was using the current install-poetry.py
FROM pypy:3.9-slim
RUN python3 -c 'import venv; builder = venv.EnvBuilder(); builder.create("/tmp/foo")'
RUN /tmp/foo/bin/python3
gives the same error. Fairly clear there's something screwy in this image. Nothing to do with poetry.
Alright, gonna report to PyPy
I think we can close this, as we have confirmed the issue is not related to Poetry.
Thanks and merry xmas!
FROM pypy:3.9-slim RUN python3 -c 'import venv; builder = venv.EnvBuilder(); builder.create("/tmp/foo")' RUN /tmp/foo/bin/python3
gives the same error. Fairly clear there's something screwy in this image. Nothing to do with poetry.
It no longer occurs, it seems it was an unknown temporary issue with the build ๐ฏ