milesmcc / shynet

Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Apache License 2.0
2.93k stars 191 forks source link

Docker build fails with CalledProcessError in `django-allauth` dependency #325

Closed joshuaprince closed 5 months ago

joshuaprince commented 5 months ago

Docker builds are failing during Poetry install. The message points to django-allauth. I was able to build with the exact same commit about a month ago, so something must have changed in the libraries getting pulled in. Tested on 3 different hosts across ARM and x86.

https://github.com/milesmcc/shynet/pull/272 looks similar.

  CalledProcessError

  Command '['/usr/local/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/usr/local', '--no-deps', '/root/.cache/pypoetry/artifacts/45/c1/12/3b8f92d37e4df13bde116a29e1d4947947c83af4bd009c59470c2e5354/django-allauth-0.45.0.tar.gz']' returned non-zero exit status 1.
ImportError: cannot import name 'convert_path' from 'setuptools' (/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/__init__.py)
Full output of docker build ``` $ docker build --no-cache . DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 34.33MB Step 1/20 : FROM python:alpine3.14 ---> b0e440abb72d Step 2/20 : WORKDIR /usr/src/shynet ---> Running in 15c988ee8492 ---> Removed intermediate container 15c988ee8492 ---> 14a8083d218f Step 3/20 : ARG GF_UID="500" ---> Running in b4ee1e136b6c ---> Removed intermediate container b4ee1e136b6c ---> 38bac84da335 Step 4/20 : ARG GF_GID="500" ---> Running in 9269c4c8cfb4 ---> Removed intermediate container 9269c4c8cfb4 ---> 97307e15d2d9 Step 5/20 : RUN apk update && apk add --no-cache gettext bash npm postgresql-libs && test "$(arch)" != "x86_64" && apk add libffi-dev rust cargo || echo "amd64 build, skipping Rust installation" ---> Running in f1b0c00d5a39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz v3.14.10-48-g7c3663f3f3b [https://dl-cdn.alpinelinux.org/alpine/v3.14/main] v3.14.10-42-gd8ce7b89082 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community] OK: 14976 distinct packages available fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz (1/17) Installing bash (5.1.16-r0) Executing bash-5.1.16-r0.post-install (2/17) Installing libgomp (10.3.1_git20210424-r2) (3/17) Installing libunistring (0.9.10-r1) (4/17) Installing gettext-libs (0.21-r0) (5/17) Installing libxml2 (2.9.14-r2) (6/17) Installing gettext (0.21-r0) (7/17) Installing nghttp2-libs (1.43.0-r0) (8/17) Installing brotli-libs (1.0.9-r5) (9/17) Installing c-ares (1.17.2-r0) (10/17) Installing libgcc (10.3.1_git20210424-r2) (11/17) Installing libstdc++ (10.3.1_git20210424-r2) (12/17) Installing nodejs (14.21.3-r0) (13/17) Installing npm (7.17.0-r0) (14/17) Installing libsasl (2.1.28-r0) (15/17) Installing libldap (2.4.58-r0) (16/17) Installing libpq (13.12-r0) (17/17) Installing postgresql-libs (13.12-r0) Executing busybox-1.33.1-r7.trigger OK: 74 MiB in 53 packages amd64 build, skipping Rust installation ---> Removed intermediate container f1b0c00d5a39 ---> 614fda97b0f6 Step 6/20 : ARG MAXMIND_LICENSE_KEY_BASE64="Z2tySDgwX1htSEtmS3d4cDB1SnlMWTdmZ1hMMTQxNzRTQ2o5X21taw==" ---> Running in c100cac1a1f7 ---> Removed intermediate container c100cac1a1f7 ---> 09200ab22089 Step 7/20 : RUN echo $MAXMIND_LICENSE_KEY_BASE64 > .mmdb_key ---> Running in f6bad7c4aed7 ---> Removed intermediate container f6bad7c4aed7 ---> 538c3814292a Step 8/20 : COPY assets/GeoLite2-ASN_20191224.tar.gz GeoLite2-ASN.tar.gz ---> f6cb0bd7dd03 Step 9/20 : COPY assets/GeoLite2-City_20191224.tar.gz GeoLite2-City.tar.gz ---> fafca4b31698 Step 10/20 : RUN apk add --no-cache curl && tar -xvz -C /tmp < GeoLite2-ASN.tar.gz && tar -xvz -C /tmp < GeoLite2-City.tar.gz && mv /tmp/GeoLite2*/*.mmdb /etc && rm GeoLite2-ASN.tar.gz GeoLite2-City.tar.gz && apk --purge del curl ---> Running in 2744a2f72b3d fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz (1/2) Installing libcurl (8.0.1-r0) (2/2) Installing curl (8.0.1-r0) Executing busybox-1.33.1-r7.trigger OK: 75 MiB in 55 packages GeoLite2-ASN_20191224/ GeoLite2-ASN_20191224/LICENSE.txt GeoLite2-ASN_20191224/GeoLite2-ASN.mmdb GeoLite2-ASN_20191224/COPYRIGHT.txt GeoLite2-City_20191224/ GeoLite2-City_20191224/LICENSE.txt GeoLite2-City_20191224/GeoLite2-City.mmdb GeoLite2-City_20191224/COPYRIGHT.txt GeoLite2-City_20191224/README.txt (1/2) Purging curl (8.0.1-r0) (2/2) Purging libcurl (8.0.1-r0) Executing busybox-1.33.1-r7.trigger OK: 74 MiB in 53 packages ---> Removed intermediate container 2744a2f72b3d ---> 5cee589bfb76 Step 11/20 : COPY poetry.lock pyproject.toml ./ ---> d89d67e075a5 Step 12/20 : COPY package.json package-lock.json ../ ---> 7f0c4d8a3d34 Step 13/20 : RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev libressl-dev libffi-dev && npm i -P --prefix .. && pip install poetry==1.2.2 && poetry config virtualenvs.create false && poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation && poetry install --no-dev --no-interaction --no-ansi && apk --purge del .build-deps ---> Running in 930f9273bf7c fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz (1/29) Upgrading musl (1.2.2-r3 -> 1.2.2-r5) (2/29) Installing binutils (2.35.2-r2) (3/29) Installing libatomic (10.3.1_git20210424-r2) (4/29) Installing libgphobos (10.3.1_git20210424-r2) (5/29) Installing gmp (6.2.1-r1) (6/29) Installing isl22 (0.22-r0) (7/29) Installing mpfr4 (4.1.0-r0) (8/29) Installing mpc1 (1.2.1-r0) (9/29) Installing gcc (10.3.1_git20210424-r2) (10/29) Installing musl-dev (1.2.2-r5) (11/29) Installing llvm11-libs (11.1.0-r2) (12/29) Installing clang-libs (11.1.0-r1) (13/29) Installing clang (11.1.0-r1) (14/29) Installing icu-libs (67.1-r2) (15/29) Installing icu (67.1-r2) (16/29) Installing pkgconf (1.7.4-r1) (17/29) Installing icu-dev (67.1-r2) (18/29) Installing llvm11 (11.1.0-r2) (19/29) Upgrading libcrypto1.1 (1.1.1n-r0 -> 1.1.1t-r2) (20/29) Upgrading libssl1.1 (1.1.1n-r0 -> 1.1.1t-r2) (21/29) Installing openssl-dev (1.1.1t-r2) (22/29) Installing postgresql-dev (13.12-r0) (23/29) Installing libressl3.3-libcrypto (3.3.6-r0) (24/29) Installing libressl3.3-libssl (3.3.6-r0) (25/29) Installing libressl3.3-libtls (3.3.6-r0) (26/29) Installing libressl-dev (3.3.6-r0) (27/29) Installing linux-headers (5.10.41-r0) (28/29) Installing libffi-dev (3.3-r2) (29/29) Installing .build-deps (20240601.065829) Executing busybox-1.33.1-r7.trigger Executing ca-certificates-20211220-r0.trigger OK: 537 MiB in 79 packages added 77 packages, and audited 78 packages in 3s found 0 vulnerabilities Collecting poetry==1.2.2 Downloading poetry-1.2.2-py3-none-any.whl (212 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.4/212.4 KB 2.3 MB/s eta 0:00:00 Collecting jsonschema<5.0.0,>=4.10.0 Downloading jsonschema-4.22.0-py3-none-any.whl (88 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.3/88.3 KB 7.1 MB/s eta 0:00:00 Collecting cachy<0.4.0,>=0.3.0 Downloading cachy-0.3.0-py2.py3-none-any.whl (20 kB) Collecting requests<3.0,>=2.18 Downloading requests-2.32.3-py3-none-any.whl (64 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.9/64.9 KB 5.6 MB/s eta 0:00:00 Collecting platformdirs<3.0.0,>=2.5.2 Downloading platformdirs-2.6.2-py3-none-any.whl (14 kB) Collecting pkginfo<2.0,>=1.5 Downloading pkginfo-1.11.0-py3-none-any.whl (31 kB) Collecting poetry-core==1.3.2 Downloading poetry_core-1.3.2-py3-none-any.whl (531 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 531.3/531.3 KB 15.1 MB/s eta 0:00:00 Collecting keyring>=21.2.0 Downloading keyring-25.2.1-py3-none-any.whl (38 kB) Collecting dulwich<0.21.0,>=0.20.46 Downloading dulwich-0.20.50-cp310-cp310-musllinux_1_1_x86_64.whl (513 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 513.2/513.2 KB 17.8 MB/s eta 0:00:00 Collecting packaging>=20.4 Downloading packaging-24.0-py3-none-any.whl (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 KB 5.3 MB/s eta 0:00:00 Collecting crashtest<0.4.0,>=0.3.0 Downloading crashtest-0.3.1-py3-none-any.whl (7.0 kB) Collecting requests-toolbelt<0.10.0,>=0.9.1 Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 KB 5.7 MB/s eta 0:00:00 Collecting tomlkit!=0.11.2,!=0.11.3,<1.0.0,>=0.11.1 Downloading tomlkit-0.12.5-py3-none-any.whl (37 kB) Collecting urllib3<2.0.0,>=1.26.0 Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.8/143.8 KB 14.2 MB/s eta 0:00:00 Collecting shellingham<2.0,>=1.5 Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB) Collecting virtualenv!=20.4.5,!=20.4.6,>=20.4.3 Downloading virtualenv-20.26.2-py3-none-any.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 28.7 MB/s eta 0:00:00 Collecting cleo<2.0.0,>=1.0.0a5 Downloading cleo-1.0.0a5-py3-none-any.whl (78 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 KB 8.7 MB/s eta 0:00:00 Collecting poetry-plugin-export<2.0.0,>=1.1.2 Downloading poetry_plugin_export-1.8.0-py3-none-any.whl (10 kB) Collecting pexpect<5.0.0,>=4.7.0 Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 KB 7.5 MB/s eta 0:00:00 Collecting cachecontrol[filecache]<0.13.0,>=0.12.9 Downloading CacheControl-0.12.14-py2.py3-none-any.whl (21 kB) Collecting html5lib<2.0,>=1.0 Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 KB 13.4 MB/s eta 0:00:00 Collecting msgpack>=0.5.2 Downloading msgpack-1.0.8-cp310-cp310-musllinux_1_1_x86_64.whl (385 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.4/385.4 KB 25.6 MB/s eta 0:00:00 Collecting lockfile>=0.9 Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB) Collecting pylev<2.0.0,>=1.3.0 Downloading pylev-1.4.0-py2.py3-none-any.whl (6.1 kB) Collecting webencodings Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting six>=1.9 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting jsonschema-specifications>=2023.03.6 Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB) Collecting attrs>=22.2.0 Downloading attrs-23.2.0-py3-none-any.whl (60 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 KB 7.1 MB/s eta 0:00:00 Collecting rpds-py>=0.7.1 Downloading rpds_py-0.18.1-cp310-cp310-musllinux_1_2_x86_64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 26.6 MB/s eta 0:00:00 Collecting referencing>=0.28.4 Downloading referencing-0.35.1-py3-none-any.whl (26 kB) Collecting importlib-metadata>=4.11.4 Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB) Collecting jaraco.context Downloading jaraco.context-5.3.0-py3-none-any.whl (6.5 kB) Collecting jeepney>=0.4.2 Downloading jeepney-0.8.0-py3-none-any.whl (48 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.4/48.4 KB 5.0 MB/s eta 0:00:00 Collecting SecretStorage>=3.2 Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB) Collecting jaraco.classes Downloading jaraco.classes-3.4.0-py3-none-any.whl (6.8 kB) Collecting jaraco.functools Downloading jaraco.functools-4.0.1-py3-none-any.whl (9.8 kB) Collecting ptyprocess>=0.5 Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) Collecting poetry-plugin-export<2.0.0,>=1.1.2 Downloading poetry_plugin_export-1.7.1-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.7.0-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.6.0-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.5.0-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.4.0-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.3.1-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.3.0-py3-none-any.whl (10 kB) Downloading poetry_plugin_export-1.2.0-py3-none-any.whl (10 kB) Collecting charset-normalizer<4,>=2 Downloading charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl (142 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.6/142.6 KB 15.8 MB/s eta 0:00:00 Collecting idna<4,>=2.5 Downloading idna-3.7-py3-none-any.whl (66 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.8/66.8 KB 7.8 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 Downloading certifi-2024.2.2-py3-none-any.whl (163 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 KB 17.1 MB/s eta 0:00:00 Collecting filelock<4,>=3.12.2 Downloading filelock-3.14.0-py3-none-any.whl (12 kB) Collecting distlib<1,>=0.3.7 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 27.2 MB/s eta 0:00:00 Collecting virtualenv!=20.4.5,!=20.4.6,>=20.4.3 Downloading virtualenv-20.26.1-py3-none-any.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 40.0 MB/s eta 0:00:00 Downloading virtualenv-20.26.0-py3-none-any.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 39.0 MB/s eta 0:00:00 Downloading virtualenv-20.25.3-py3-none-any.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 41.5 MB/s eta 0:00:00 Downloading virtualenv-20.25.2-py3-none-any.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 48.5 MB/s eta 0:00:00 Downloading virtualenv-20.25.1-py3-none-any.whl (3.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 64.0 MB/s eta 0:00:00 Downloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 68.1 MB/s eta 0:00:00 Downloading virtualenv-20.24.7-py3-none-any.whl (3.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 66.9 MB/s eta 0:00:00 Downloading virtualenv-20.24.6-py3-none-any.whl (3.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 72.8 MB/s eta 0:00:00 Downloading virtualenv-20.24.5-py3-none-any.whl (3.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 74.8 MB/s eta 0:00:00 Downloading virtualenv-20.24.4-py3-none-any.whl (3.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 75.3 MB/s eta 0:00:00 Downloading virtualenv-20.24.3-py3-none-any.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 74.9 MB/s eta 0:00:00 Downloading virtualenv-20.24.2-py3-none-any.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 70.7 MB/s eta 0:00:00 Downloading virtualenv-20.24.1-py3-none-any.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 78.6 MB/s eta 0:00:00 Downloading virtualenv-20.24.0-py3-none-any.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 73.8 MB/s eta 0:00:00 Downloading virtualenv-20.23.1-py3-none-any.whl (3.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 77.0 MB/s eta 0:00:00 Downloading virtualenv-20.23.0-py3-none-any.whl (3.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 74.9 MB/s eta 0:00:00 Downloading virtualenv-20.22.0-py3-none-any.whl (3.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 76.2 MB/s eta 0:00:00 Downloading virtualenv-20.21.1-py3-none-any.whl (8.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.7/8.7 MB 75.0 MB/s eta 0:00:00 Collecting zipp>=0.5 Downloading zipp-3.19.1-py3-none-any.whl (9.0 kB) Collecting cryptography>=2.0 Downloading cryptography-42.0.7-cp39-abi3-musllinux_1_2_x86_64.whl (3.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 68.0 MB/s eta 0:00:00 Collecting more-itertools Downloading more_itertools-10.2.0-py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.0/57.0 KB 6.5 MB/s eta 0:00:00 Collecting backports.tarfile Downloading backports.tarfile-1.2.0-py3-none-any.whl (30 kB) Collecting cffi>=1.12 Downloading cffi-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl (465 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 465.8/465.8 KB 22.1 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.22-py3-none-any.whl (117 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 KB 14.0 MB/s eta 0:00:00 Installing collected packages: webencodings, pylev, ptyprocess, lockfile, distlib, zipp, urllib3, tomlkit, six, shellingham, rpds-py, pycparser, poetry-core, platformdirs, pkginfo, pexpect, packaging, msgpack, more-itertools, jeepney, idna, filelock, crashtest, charset-normalizer, certifi, cachy, backports.tarfile, attrs, virtualenv, requests, referencing, jaraco.functools, jaraco.context, jaraco.classes, importlib-metadata, html5lib, dulwich, cleo, cffi, requests-toolbelt, jsonschema-specifications, cryptography, cachecontrol, SecretStorage, jsonschema, keyring, poetry-plugin-export, poetry Successfully installed SecretStorage-3.3.3 attrs-23.2.0 backports.tarfile-1.2.0 cachecontrol-0.12.14 cachy-0.3.0 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 cleo-1.0.0a5 crashtest-0.3.1 cryptography-42.0.7 distlib-0.3.8 dulwich-0.20.50 filelock-3.14.0 html5lib-1.1 idna-3.7 importlib-metadata-7.1.0 jaraco.classes-3.4.0 jaraco.context-5.3.0 jaraco.functools-4.0.1 jeepney-0.8.0 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 keyring-25.2.1 lockfile-0.12.2 more-itertools-10.2.0 msgpack-1.0.8 packaging-24.0 pexpect-4.9.0 pkginfo-1.11.0 platformdirs-2.6.2 poetry-1.2.2 poetry-core-1.3.2 poetry-plugin-export-1.2.0 ptyprocess-0.7.0 pycparser-2.22 pylev-1.4.0 referencing-0.35.1 requests-2.32.3 requests-toolbelt-0.9.1 rpds-py-0.18.1 shellingham-1.5.4 six-1.16.0 tomlkit-0.12.5 urllib3-1.26.18 virtualenv-20.21.1 webencodings-0.5.1 zipp-3.19.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 22.0.4; however, version 24.0 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Skipping virtualenv creation, as specified in config file. Collecting Cython<3.0 Downloading Cython-0.29.37-cp310-cp310-musllinux_1_1_x86_64.whl (2.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 13.2 MB/s eta 0:00:00 Collecting pyyaml==5.4.1 Downloading PyYAML-5.4.1.tar.gz (175 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 KB 19.2 MB/s eta 0:00:00 Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: pyyaml Building wheel for pyyaml (pyproject.toml): started Building wheel for pyyaml (pyproject.toml): finished with status 'done' Created wheel for pyyaml: filename=PyYAML-5.4.1-cp310-cp310-linux_x86_64.whl size=45657 sha256=d4277b020e376a7298d25701b23afa81b8a605235535f5390da4bdfa98ddfdf8 Stored in directory: /root/.cache/pip/wheels/c7/0d/22/696ee92245ad710f506eee79bb05c740d8abccd3ecdb778683 Successfully built pyyaml Installing collected packages: pyyaml, Cython Successfully installed Cython-0.29.37 pyyaml-5.4.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 22.0.4; however, version 24.0 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. Skipping virtualenv creation, as specified in config file. The `--no-dev` option is deprecated, use the `--only main` notation instead. Installing dependencies from lock file Package operations: 45 installs, 9 updates, 0 removals • Updating pycparser (2.22 -> 2.21) • Updating certifi (2024.2.2 -> 2023.7.22) • Updating cffi (1.16.0 -> 1.15.1) • Updating charset-normalizer (3.3.2 -> 2.1.1) • Installing frozenlist (1.3.1) • Installing multidict (6.0.2) • Installing vine (5.0.0) • Installing wcwidth (0.2.5) • Updating idna (3.7 -> 3.3) • Installing aiosignal (1.2.0) • Installing amqp (5.1.1) • Installing asgiref (3.5.2) • Installing async-timeout (4.0.2) • Updating attrs (23.2.0 -> 22.1.0) • Installing click (8.1.3) • Updating cryptography (42.0.7 -> 42.0.4) • Installing defusedxml (0.7.1) • Installing oauthlib (3.2.1) • Installing prompt-toolkit (3.0.31) • Updating requests (2.32.3 -> 2.31.0) • Installing sqlparse (0.4.4) • Installing yarl (1.8.1) • Installing aiohttp (3.9.2) • Installing billiard (3.6.4.0) • Installing click-didyoumean (0.3.0) • Installing click-plugins (1.1.1) • Installing click-repl (0.2.0) • Installing django (4.1.13) • Installing kombu (5.2.4) • Installing maxminddb (2.2.0) • Installing pyjwt (2.4.0) • Installing python3-openid (3.2.0) • Installing pytz (2022.2.1) • Installing redis (3.5.3) • Installing requests-oauthlib (1.3.1) • Updating setuptools (58.1.0 -> 65.6.3) • Installing ua-parser (0.16.1) • Installing celery (5.2.7) • Installing django-allauth (0.45.0) • Installing django-cors-headers (3.13.0) • Installing django-debug-toolbar (3.6.0) • Installing django-health-check (3.17.0) • Installing django-ipware (4.0.2) • Installing django-npm (1.0.0) • Installing django-redis-cache (3.0.1) • Installing geoip2 (4.6.0) • Installing gunicorn (20.1.0) • Installing html2text (2020.1.16) • Installing psycopg2-binary (2.9.3) • Installing pycountry (20.7.3) • Installing python-dotenv (0.18.0) • Installing rules (3.3) • Installing user-agents (2.2.0) • Installing whitenoise (5.3.0) CalledProcessError Command '['/usr/local/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/usr/local', '--no-deps', '/root/.cache/pypoetry/artifacts/45/c1/12/3b8f92d37e4df13bde116a29e1d4947947c83af4bd009c59470c2e5354/django-allauth-0.45.0.tar.gz']' returned non-zero exit status 1. at /usr/local/lib/python3.10/subprocess.py:524 in run 520│ # We don't call process.wait() as .__exit__ does that for us. 521│ raise 522│ retcode = process.poll() 523│ if check and retcode: → 524│ raise CalledProcessError(retcode, process.args, 525│ output=stdout, stderr=stderr) 526│ return CompletedProcess(process.args, retcode, stdout, stderr) 527│ 528│ The following error occurred when trying to handle this error: EnvCommandError Command ['/usr/local/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/usr/local', '--no-deps', '/root/.cache/pypoetry/artifacts/45/c1/12/3b8f92d37e4df13bde116a29e1d4947947c83af4bd009c59470c2e5354/django-allauth-0.45.0.tar.gz'] errored with the following return code 1, and output: Processing /root/.cache/pypoetry/artifacts/45/c1/12/3b8f92d37e4df13bde116a29e1d4947947c83af4bd009c59470c2e5354/django-allauth-0.45.0.tar.gz Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output] Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in main() File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 9, in ImportError: cannot import name 'convert_path' from 'setuptools' (/tmp/pip-build-env-yh0ewnje/overlay/lib/python3.10/site-packages/setuptools/__init__.py) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. at /usr/local/lib/python3.10/site-packages/poetry/utils/env.py:1476 in _run 1472│ output = subprocess.check_output( 1473│ command, stderr=subprocess.STDOUT, env=env, **kwargs 1474│ ) 1475│ except CalledProcessError as e: → 1476│ raise EnvCommandError(e, input=input_) 1477│ 1478│ return decode(output) 1479│ 1480│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int: The following error occurred when trying to handle this error: PoetryException Failed to install /root/.cache/pypoetry/artifacts/45/c1/12/3b8f92d37e4df13bde116a29e1d4947947c83af4bd009c59470c2e5354/django-allauth-0.45.0.tar.gz at /usr/local/lib/python3.10/site-packages/poetry/utils/pip.py:51 in pip_install 47│ 48│ try: 49│ return environment.run_pip(*args) 50│ except EnvCommandError as e: → 51│ raise PoetryException(f"Failed to install {path.as_posix()}") from e 52│ The command '/bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev libressl-dev libffi-dev && npm i -P --prefix .. && pip install poetry==1.2.2 && poetry config virtualenvs.create false && poetry run pip install "Cython<3.0" "pyyaml==5.4.1" --no-build-isolation && poetry install --no-dev --no-interaction --no-ansi && apk --purge del .build-deps' returned a non-zero code: 1 ```
StarkZarn commented 5 months ago

I ran into this too, and in fact I ran into some other problems. I forked the project and updated a bunch of security-related dependency issues, as well as pushed some major versions forward too, django-allauth included. If you want to give it a shot it's https://github.com/StarkZarn/shynet

Functionally it's effectively the same though. @milesmcc happy to submit PRs too, but my previous issue about dependency updates hasn't really gotten anywhere.

milesmcc commented 5 months ago

Please open a PR -- thank you!