vas3k / vas3k.club

No bullshit IT community with private membership
https://vas3k.club
MIT License
806 stars 241 forks source link

Баг: Не устанавливаются pip зависимости в Докере на Macbook M1 #757

Closed edbond88 closed 1 year ago

edbond88 commented 2 years ago

Чеклист

Описание бага

Пытаюсь запустить проект на Macbook M1. На этапе установки pip зависимостей в Docker выскакивают ошибки

Очень странно, учитывая что это все должно в контейнере собираться. Т.к. я не силен в питоне, то к сожалению, нет времени так долго копать в чем дело.

Полный лог под спойлером ```bash ✘  ~/p/vas3k.club   master ±  docker-compose up Building queue [+] Building 65.6s (12/14) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/ubuntu:20.04 2.4s => [internal] load build context 1.8s => => transferring context: 2.23MB 1.6s => [ 1/10] FROM docker.io/library/ubuntu:20.04@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 2.0s => => resolve docker.io/library/ubuntu:20.04@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 0.0s => => sha256:a39c84e173f038958d338f55a9e8ee64bb6643e8ac6ae98e08ca65146e668d86 27.17MB / 27.17MB 0.7s => => sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 1.42kB / 1.42kB 0.0s => => sha256:26c3bd3ae441c873a210200bcbb975ffd2bbf0c0841a4584f4476c8a5b8f3d99 529B / 529B 0.0s => => sha256:d5ca7a4456053674d490803005766890dd19e3f7e789a48737c0d462da531f5d 1.48kB / 1.48kB 0.0s => => extracting sha256:a39c84e173f038958d338f55a9e8ee64bb6643e8ac6ae98e08ca65146e668d86 1.2s => [ 2/10] RUN apt-get update && apt-get install --no-install-recommends -yq openssl && export LDFLAGS="-L/usr/local/opt/openssl/lib" && export CPPFLAGS="- 32.9s => [ 3/10] WORKDIR /app 0.0s => [ 4/10] COPY . /app 3.1s => [ 5/10] RUN pip3 install pipenv 3.7s => [ 6/10] RUN sh -c 'if [ "$MODE" = 'production' ]; then pipenv lock --keep-outdated --requirements > requirements.txt; fi' 0.2s => [ 7/10] RUN sh -c 'if [ "$MODE" = 'dev' ]; then pipenv lock --dev --requirements > requirements.txt; fi' 1.2s => ERROR [ 8/10] RUN pip3 install -r requirements.txt 20.0s ------ > [ 8/10] RUN pip3 install -r requirements.txt: #12 0.746 Collecting arrow==1.1.1 #12 0.890 Downloading arrow-1.1.1-py3-none-any.whl (60 kB) #12 0.982 Collecting asgiref==3.4.1 #12 1.023 Downloading asgiref-3.4.1-py3-none-any.whl (25 kB) #12 1.075 Collecting attrs==21.2.0 #12 1.107 Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB) #12 1.186 Collecting awesome-slugify==1.6.5 #12 1.219 Downloading awesome-slugify-1.6.5.tar.gz (8.4 kB) #12 1.364 Collecting beautifulsoup4==4.10.0 #12 1.398 Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB) #12 1.474 Collecting blessed==1.19.0 #12 1.506 Downloading blessed-1.19.0-py2.py3-none-any.whl (57 kB) #12 1.572 Collecting cachetools==4.2.2 #12 1.605 Downloading cachetools-4.2.2-py3-none-any.whl (11 kB) #12 1.653 Collecting certifi==2021.5.30 #12 1.693 Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB) #12 1.895 Collecting cffi==1.14.6 #12 1.931 Downloading cffi-1.14.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (208 kB) #12 2.007 Collecting chardet==3.0.4 #12 2.040 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) #12 2.106 Collecting click==7.1.2 #12 2.140 Downloading click-7.1.2-py2.py3-none-any.whl (82 kB) #12 2.201 Collecting croniter==1.0.10 #12 2.235 Downloading croniter-1.0.10-py2.py3-none-any.whl (14 kB) #12 2.423 Collecting cryptography==3.4.7 #12 2.465 Downloading cryptography-3.4.7-cp36-abi3-manylinux2014_aarch64.whl (3.1 MB) #12 2.707 Collecting cssselect==1.1.0 #12 2.740 Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB) #12 2.796 Collecting cssutils==2.3.0 #12 2.832 Downloading cssutils-2.3.0-py3-none-any.whl (404 kB) #12 2.914 Collecting decorator==5.1.0 #12 2.947 Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB) #12 3.035 Collecting django-debug-toolbar==3.2 #12 3.068 Downloading django_debug_toolbar-3.2-py3-none-any.whl (200 kB) #12 3.128 Collecting django-picklefield==3.0.1 #12 3.162 Downloading django_picklefield-3.0.1-py3-none-any.whl (9.4 kB) #12 3.342 Collecting django-q-sentry==0.1.5 #12 3.377 Downloading django_q_sentry-0.1.5-py3-none-any.whl (3.8 kB) #12 3.552 Collecting django-q[sentry]==1.3.5 #12 3.589 Downloading django_q-1.3.5-py3-none-any.whl (73 kB) #12 3.665 Collecting django-redis==4.11.0 #12 3.701 Downloading django_redis-4.11.0-py3-none-any.whl (18 kB) #12 3.760 Collecting django-simple-history==2.12.0 #12 3.806 Downloading django_simple_history-2.12.0-py2.py3-none-any.whl (46 kB) #12 3.861 Collecting django-webpack-loader==0.7.0 #12 3.896 Downloading django_webpack_loader-0.7.0-py2.py3-none-any.whl (14 kB) #12 3.987 Collecting django==3.2.5 #12 4.019 Downloading Django-3.2.5-py3-none-any.whl (7.9 MB) #12 4.564 Collecting feedfinder2==0.0.4 #12 4.596 Downloading feedfinder2-0.0.4.tar.gz (3.3 kB) #12 4.735 Collecting feedparser==6.0.8 #12 4.767 Downloading feedparser-6.0.8-py3-none-any.whl (81 kB) #12 4.820 Collecting filelock==3.0.12 #12 4.853 Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB) #12 4.911 Collecting flake8==3.9.0 #12 4.948 Downloading flake8-3.9.0-py2.py3-none-any.whl (73 kB) #12 5.006 Collecting future==0.18.2 #12 5.040 Downloading future-0.18.2.tar.gz (829 kB) #12 5.390 Collecting gunicorn==20.0.4 #12 5.423 Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) #12 5.473 Collecting h11==0.12.0 #12 5.505 Downloading h11-0.12.0-py3-none-any.whl (54 kB) #12 5.571 Collecting httptools==0.1.1 #12 5.609 Downloading httptools-0.1.1.tar.gz (106 kB) #12 5.759 Collecting icalendar==4.0.7 #12 5.792 Downloading icalendar-4.0.7-py2.py3-none-any.whl (74 kB) #12 5.846 Collecting idna==2.10 #12 5.894 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) #12 5.955 Collecting iniconfig==1.1.1 #12 5.989 Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB) #12 6.031 Collecting jieba3k==0.35.1 #12 6.064 Downloading jieba3k-0.35.1.zip (7.4 MB) #12 6.542 Collecting lxml==4.6.3 #12 6.574 Downloading lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl (7.3 MB) #12 6.927 Collecting mccabe==0.6.1 #12 6.959 Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) #12 7.010 Collecting mistune==2.0.0a4 #12 7.043 Downloading mistune-2.0.0a4-py2.py3-none-any.whl (21 kB) #12 7.089 Collecting newspaper3k==0.2.8 #12 7.123 Downloading newspaper3k-0.2.8-py3-none-any.whl (211 kB) #12 7.187 Collecting nltk==3.4.5 #12 7.224 Downloading nltk-3.4.5.zip (1.5 MB) #12 7.466 Collecting packaging==21.0 #12 7.500 Downloading packaging-21.0-py3-none-any.whl (40 kB) #12 7.636 Collecting patreon==0.5.0 #12 7.670 Downloading patreon-0.5.0.tar.gz (9.8 kB) #12 8.829 Collecting pillow==8.3.2 #12 8.871 Downloading Pillow-8.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.0 MB) #12 9.026 Collecting pluggy==0.13.1 #12 9.060 Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB) #12 9.119 Collecting premailer==3.6.1 #12 9.155 Downloading premailer-3.6.1-py2.py3-none-any.whl (19 kB) #12 9.243 Collecting psycopg2-binary==2.8.4 #12 9.279 Downloading psycopg2-binary-2.8.4.tar.gz (378 kB) #12 9.489 Collecting py==1.10.0 #12 9.523 Downloading py-1.10.0-py2.py3-none-any.whl (97 kB) #12 9.579 Collecting pycodestyle==2.7.0 #12 9.612 Downloading pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB) #12 9.660 Collecting pycparser==2.20 #12 9.695 Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB) #12 9.751 Collecting pyflakes==2.3.1 #12 9.787 Downloading pyflakes-2.3.1-py2.py3-none-any.whl (68 kB) #12 9.849 Collecting pyjwt==1.7.1 #12 9.883 Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB) #12 9.954 Collecting pyparsing==2.4.7 #12 9.987 Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) #12 10.07 Collecting pytest==6.2.3 #12 10.10 Downloading pytest-6.2.3-py3-none-any.whl (280 kB) #12 10.17 Collecting python-dateutil==2.8.2 #12 10.21 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) #12 10.27 Collecting python-dotenv==0.17.0 #12 10.30 Downloading python_dotenv-0.17.0-py2.py3-none-any.whl (18 kB) #12 10.37 Collecting python-telegram-bot==12.5.1 #12 10.40 Downloading python_telegram_bot-12.5.1-py2.py3-none-any.whl (367 kB) #12 10.51 Collecting pytz==2021.1 #12 10.55 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) #12 10.66 Collecting pyyaml==5.4.1 #12 10.70 Downloading PyYAML-5.4.1-cp38-cp38-manylinux2014_aarch64.whl (818 kB) #12 10.83 Collecting redis==3.5.3 #12 10.86 Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB) #12 11.17 Collecting regex==2021.8.28 #12 11.23 Downloading regex-2021.8.28-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (758 kB) #12 11.36 Collecting requests-file==1.5.1 #12 11.40 Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB) #12 11.46 Collecting requests==2.23.0 #12 11.50 Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB) #12 11.58 Collecting sentry-sdk==1.0.0 #12 11.61 Downloading sentry_sdk-1.0.0-py2.py3-none-any.whl (131 kB) #12 11.68 Collecting sgmllib3k==1.0.0 #12 11.72 Downloading sgmllib3k-1.0.0.tar.gz (5.8 kB) #12 11.81 Requirement already satisfied: six==1.16.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 77)) (1.16.0) #12 11.86 Collecting soupsieve==2.2.1 #12 11.90 Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB) #12 11.95 Collecting sqlparse==0.4.2 #12 11.99 Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB) #12 12.11 Collecting stripe==2.55.0 #12 12.15 Downloading stripe-2.55.0-py2.py3-none-any.whl (204 kB) #12 12.22 Collecting tinysegmenter==0.3 #12 12.26 Downloading tinysegmenter-0.3.tar.gz (16 kB) #12 12.40 Collecting tldextract==3.1.2 #12 12.43 Downloading tldextract-3.1.2-py2.py3-none-any.whl (87 kB) #12 12.48 Collecting toml==0.10.2 #12 12.52 Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) #12 12.58 Collecting tornado==6.1 #12 12.62 Downloading tornado-6.1-cp38-cp38-manylinux2014_aarch64.whl (427 kB) #12 12.81 Collecting typus==0.2.2 #12 12.85 Downloading typus-0.2.2.tar.gz (19 kB) #12 13.01 Collecting unidecode==0.4.21 #12 13.04 Downloading Unidecode-0.04.21-py2.py3-none-any.whl (228 kB) #12 13.14 Collecting urllib3==1.25.11 #12 13.17 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) #12 13.25 Collecting uvicorn==0.13.4 #12 13.28 Downloading uvicorn-0.13.4-py3-none-any.whl (46 kB) #12 13.41 Collecting uvloop==0.15.2 #12 13.75 Downloading uvloop-0.15.2-cp38-cp38-manylinux2014_aarch64.whl (5.2 MB) #12 14.32 Collecting wcwidth==0.2.5 #12 14.36 Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) #12 14.36 Requirement already satisfied: setuptools>=3.0 in /usr/lib/python3/dist-packages (from gunicorn==20.0.4->-r requirements.txt (line 41)) (45.2.0) #12 14.36 Building wheels for collected packages: awesome-slugify, feedfinder2, future, httptools, jieba3k, nltk, patreon, psycopg2-binary, sgmllib3k, tinysegmenter, typus #12 14.36 Building wheel for awesome-slugify (setup.py): started #12 14.48 Building wheel for awesome-slugify (setup.py): finished with status 'done' #12 14.48 Created wheel for awesome-slugify: filename=awesome_slugify-1.6.5-py3-none-any.whl size=8353 sha256=97c1805bd1c5ae5e67822ce6a817fccd11dded3118105e5b639740836fba96cf #12 14.48 Stored in directory: /root/.cache/pip/wheels/11/27/6f/56a2607c9f8010991f9e8f42c6bc8a90917291b4e1ead4582a #12 14.48 Building wheel for feedfinder2 (setup.py): started #12 14.59 Building wheel for feedfinder2 (setup.py): finished with status 'done' #12 14.59 Created wheel for feedfinder2: filename=feedfinder2-0.0.4-py3-none-any.whl size=3355 sha256=f40a2ccb334abeef4b68d0facde4f250e21ba64a8c016378b10dd57d21284de3 #12 14.59 Stored in directory: /root/.cache/pip/wheels/b6/09/68/a9f15498ac02c23dde29f18745bc6a6f574ba4ab41861a3575 #12 14.59 Building wheel for future (setup.py): started #12 14.80 Building wheel for future (setup.py): finished with status 'done' #12 14.80 Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=37655e25c8ab2e2905e11c4ac0346d2b4f21c70fe783c84e93783a168c601b2e #12 14.80 Stored in directory: /root/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4 #12 14.80 Building wheel for httptools (setup.py): started #12 14.90 Building wheel for httptools (setup.py): finished with status 'error' #12 14.91 ERROR: Command errored out with exit status 1: #12 14.91 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0cibgmcf #12 14.91 cwd: /tmp/pip-install-679hopch/httptools/ #12 14.91 Complete output (30 lines): #12 14.91 running bdist_wheel #12 14.91 running build #12 14.91 running build_py #12 14.91 creating build #12 14.91 creating build/lib.linux-aarch64-3.8 #12 14.91 creating build/lib.linux-aarch64-3.8/httptools #12 14.91 copying httptools/__init__.py -> build/lib.linux-aarch64-3.8/httptools #12 14.91 copying httptools/_version.py -> build/lib.linux-aarch64-3.8/httptools #12 14.91 creating build/lib.linux-aarch64-3.8/httptools/parser #12 14.91 copying httptools/parser/errors.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 14.91 copying httptools/parser/__init__.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 14.91 running egg_info #12 14.91 writing httptools.egg-info/PKG-INFO #12 14.91 writing dependency_links to httptools.egg-info/dependency_links.txt #12 14.91 writing requirements to httptools.egg-info/requires.txt #12 14.91 writing top-level names to httptools.egg-info/top_level.txt #12 14.91 reading manifest file 'httptools.egg-info/SOURCES.txt' #12 14.91 reading manifest template 'MANIFEST.in' #12 14.91 writing manifest file 'httptools.egg-info/SOURCES.txt' #12 14.91 copying httptools/parser/parser.c -> build/lib.linux-aarch64-3.8/httptools/parser #12 14.91 running build_ext #12 14.91 building 'httptools.parser.parser' extension #12 14.91 creating build/temp.linux-aarch64-3.8 #12 14.91 creating build/temp.linux-aarch64-3.8/httptools #12 14.91 creating build/temp.linux-aarch64-3.8/httptools/parser #12 14.91 creating build/temp.linux-aarch64-3.8/vendor #12 14.91 creating build/temp.linux-aarch64-3.8/vendor/http-parser #12 14.91 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/tmp/pip-install-679hopch/httptools/vendor/http-parser -c httptools/parser/parser.c -o build/temp.linux-aarch64-3.8/httptools/parser/parser.o -O2 #12 14.91 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 14.91 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 14.91 ---------------------------------------- #12 14.91 ERROR: Failed building wheel for httptools #12 14.91 Running setup.py clean for httptools #12 14.98 Building wheel for jieba3k (setup.py): started #12 15.78 Building wheel for jieba3k (setup.py): finished with status 'done' #12 15.78 Created wheel for jieba3k: filename=jieba3k-0.35.1-py3-none-any.whl size=7398406 sha256=017c2dd417649dc7dbb5e22b72cf5abf33beea39b1c742c2897a9d6783245444 #12 15.78 Stored in directory: /root/.cache/pip/wheels/1f/7e/0c/54f3b0f5164278677899f2db08f2b07943ce2d024a3c862afb #12 15.79 Building wheel for nltk (setup.py): started #12 16.10 Building wheel for nltk (setup.py): finished with status 'done' #12 16.10 Created wheel for nltk: filename=nltk-3.4.5-py3-none-any.whl size=1449904 sha256=51f8febe579463522f7697ba4bc4754585f299f8e13eb5610cb8314ebaf11304 #12 16.10 Stored in directory: /root/.cache/pip/wheels/23/18/48/8fd6ec11da38406b309470566d6f099c04805d2ec61d7829e7 #12 16.10 Building wheel for patreon (setup.py): started #12 16.22 Building wheel for patreon (setup.py): finished with status 'done' #12 16.22 Created wheel for patreon: filename=patreon-0.5.0-py3-none-any.whl size=16844 sha256=35212102a8ff84a58bd19a273e3bdf435460fa98a6fd7d3e7ffc6d5972a225a7 #12 16.22 Stored in directory: /root/.cache/pip/wheels/1b/7a/99/00a722984de10d848f92a7d91b9a014dc278baa9875bfdc07f #12 16.22 Building wheel for psycopg2-binary (setup.py): started #12 16.33 Building wheel for psycopg2-binary (setup.py): finished with status 'error' #12 16.33 ERROR: Command errored out with exit status 1: #12 16.33 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-679hopch/psycopg2-binary/setup.py'"'"'; __file__='"'"'/tmp/pip-install-679hopch/psycopg2-binary/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7jwck0n5 #12 16.33 cwd: /tmp/pip-install-679hopch/psycopg2-binary/ #12 16.33 Complete output (36 lines): #12 16.33 running bdist_wheel #12 16.33 running build #12 16.33 running build_py #12 16.33 creating build #12 16.33 creating build/lib.linux-aarch64-3.8 #12 16.33 creating build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/tz.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/errors.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/compat.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/errorcodes.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/__init__.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/_ipaddress.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/extensions.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/_json.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/sql.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/_range.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/_lru_cache.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/extras.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 copying lib/pool.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 16.33 running build_ext #12 16.33 building 'psycopg2._psycopg' extension #12 16.33 creating build/temp.linux-aarch64-3.8 #12 16.33 creating build/temp.linux-aarch64-3.8/psycopg #12 16.33 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120008 -DHAVE_LO64=1 -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-aarch64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement #12 16.33 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 16.33 #12 16.33 It appears you are missing some prerequisite to build the package from source. #12 16.33 #12 16.33 You may install a binary package by installing 'psycopg2-binary' from PyPI. #12 16.33 If you want to install psycopg2 from source, please install the packages #12 16.33 required for the build and try again. #12 16.33 #12 16.33 For further information please check the 'doc/src/install.rst' file (also at #12 16.33 ). #12 16.33 #12 16.33 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 16.33 ---------------------------------------- #12 16.33 ERROR: Failed building wheel for psycopg2-binary #12 16.33 Running setup.py clean for psycopg2-binary #12 16.40 Building wheel for sgmllib3k (setup.py): started #12 16.51 Building wheel for sgmllib3k (setup.py): finished with status 'done' #12 16.51 Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6064 sha256=e234e2f7e1e87c4cafa779db3920a509c43880765cb462d6bcaec3e3cd8adcd1 #12 16.51 Stored in directory: /root/.cache/pip/wheels/83/63/2f/117884c3b19d46b64d3d61690333aa80c88dc14050e269c546 #12 16.51 Building wheel for tinysegmenter (setup.py): started #12 16.61 Building wheel for tinysegmenter (setup.py): finished with status 'done' #12 16.61 Created wheel for tinysegmenter: filename=tinysegmenter-0.3-py3-none-any.whl size=13538 sha256=d6b44260d733705f6daf08ecf1b85a00f950b5c824f00f2041f9860c50551b77 #12 16.61 Stored in directory: /root/.cache/pip/wheels/99/74/83/8fac1c8d9c648cfabebbbffe97a889f6624817f3aa0bbe6c09 #12 16.62 Building wheel for typus (setup.py): started #12 16.72 Building wheel for typus (setup.py): finished with status 'done' #12 16.72 Created wheel for typus: filename=typus-0.2.2-py2.py3-none-any.whl size=13979 sha256=5f5f6d566184ba249a096c81c9a13248624d5dd0f90cc15839ba9f31797e76e3 #12 16.72 Stored in directory: /root/.cache/pip/wheels/f6/d4/86/bc0c33503399a5e6bbc038488a12294e4ba87d7252e9d32c78 #12 16.72 Successfully built awesome-slugify feedfinder2 future jieba3k nltk patreon sgmllib3k tinysegmenter typus #12 16.72 Failed to build httptools psycopg2-binary #12 16.87 ERROR: virtualenv 20.9.0 has requirement filelock<4,>=3.2, but you'll have filelock 3.0.12 which is incompatible. #12 16.87 Installing collected packages: python-dateutil, arrow, asgiref, attrs, unidecode, regex, awesome-slugify, soupsieve, beautifulsoup4, wcwidth, blessed, cachetools, certifi, pycparser, cffi, chardet, click, croniter, cryptography, cssselect, cssutils, decorator, pytz, sqlparse, django, django-debug-toolbar, django-picklefield, urllib3, sentry-sdk, django-q-sentry, django-q, redis, django-redis, django-simple-history, django-webpack-loader, idna, requests, feedfinder2, sgmllib3k, feedparser, filelock, pyflakes, mccabe, pycodestyle, flake8, future, gunicorn, h11, httptools, icalendar, iniconfig, jieba3k, lxml, mistune, tinysegmenter, nltk, requests-file, tldextract, pillow, pyyaml, newspaper3k, pyparsing, packaging, patreon, pluggy, premailer, psycopg2-binary, py, pyjwt, toml, pytest, python-dotenv, tornado, python-telegram-bot, stripe, typus, uvicorn, uvloop #12 17.17 Attempting uninstall: certifi #12 17.18 Found existing installation: certifi 2021.10.8 #12 17.18 Uninstalling certifi-2021.10.8: #12 17.18 Successfully uninstalled certifi-2021.10.8 #12 19.24 Attempting uninstall: filelock #12 19.24 Found existing installation: filelock 3.3.1 #12 19.25 Uninstalling filelock-3.3.1: #12 19.25 Successfully uninstalled filelock-3.3.1 #12 19.52 Running setup.py install for httptools: started #12 19.62 Running setup.py install for httptools: finished with status 'error' #12 19.62 ERROR: Command errored out with exit status 1: #12 19.62 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-b5hpou97/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/httptools #12 19.62 cwd: /tmp/pip-install-679hopch/httptools/ #12 19.62 Complete output (30 lines): #12 19.62 running install #12 19.62 running build #12 19.62 running build_py #12 19.62 creating build #12 19.62 creating build/lib.linux-aarch64-3.8 #12 19.62 creating build/lib.linux-aarch64-3.8/httptools #12 19.62 copying httptools/__init__.py -> build/lib.linux-aarch64-3.8/httptools #12 19.62 copying httptools/_version.py -> build/lib.linux-aarch64-3.8/httptools #12 19.62 creating build/lib.linux-aarch64-3.8/httptools/parser #12 19.62 copying httptools/parser/errors.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 19.62 copying httptools/parser/__init__.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 19.62 running egg_info #12 19.62 writing httptools.egg-info/PKG-INFO #12 19.62 writing dependency_links to httptools.egg-info/dependency_links.txt #12 19.62 writing requirements to httptools.egg-info/requires.txt #12 19.62 writing top-level names to httptools.egg-info/top_level.txt #12 19.62 reading manifest file 'httptools.egg-info/SOURCES.txt' #12 19.62 reading manifest template 'MANIFEST.in' #12 19.62 writing manifest file 'httptools.egg-info/SOURCES.txt' #12 19.62 copying httptools/parser/parser.c -> build/lib.linux-aarch64-3.8/httptools/parser #12 19.62 running build_ext #12 19.62 building 'httptools.parser.parser' extension #12 19.62 creating build/temp.linux-aarch64-3.8 #12 19.62 creating build/temp.linux-aarch64-3.8/httptools #12 19.62 creating build/temp.linux-aarch64-3.8/httptools/parser #12 19.62 creating build/temp.linux-aarch64-3.8/vendor #12 19.62 creating build/temp.linux-aarch64-3.8/vendor/http-parser #12 19.62 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/tmp/pip-install-679hopch/httptools/vendor/http-parser -c httptools/parser/parser.c -o build/temp.linux-aarch64-3.8/httptools/parser/parser.o -O2 #12 19.62 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 19.62 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 19.62 ---------------------------------------- #12 19.82 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-679hopch/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-b5hpou97/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/httptools Check the logs for full command output. ------ executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1 ERROR: Service 'queue' failed to build : Build failed ✘  ~/p/vas3k.club   master ±  docker-compose up Building queue [+] Building 20.5s (12/14) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/ubuntu:20.04 0.7s => [ 1/10] FROM docker.io/library/ubuntu:20.04@sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322 0.0s => [internal] load build context 0.8s => => transferring context: 2.23MB 0.7s => CACHED [ 2/10] RUN apt-get update && apt-get install --no-install-recommends -yq openssl && export LDFLAGS="-L/usr/local/opt/openssl/lib" && export CPPFL 0.0s => CACHED [ 3/10] WORKDIR /app 0.0s => CACHED [ 4/10] COPY . /app 0.0s => CACHED [ 5/10] RUN pip3 install pipenv 0.0s => CACHED [ 6/10] RUN sh -c 'if [ "$MODE" = 'production' ]; then pipenv lock --keep-outdated --requirements > requirements.txt; fi' 0.0s => CACHED [ 7/10] RUN sh -c 'if [ "$MODE" = 'dev' ]; then pipenv lock --dev --requirements > requirements.txt; fi' 0.0s => ERROR [ 8/10] RUN pip3 install -r requirements.txt 19.0s ------ > [ 8/10] RUN pip3 install -r requirements.txt: #12 0.733 Collecting arrow==1.1.1 #12 0.917 Downloading arrow-1.1.1-py3-none-any.whl (60 kB) #12 1.039 Collecting asgiref==3.4.1 #12 1.073 Downloading asgiref-3.4.1-py3-none-any.whl (25 kB) #12 1.134 Collecting attrs==21.2.0 #12 1.166 Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB) #12 1.236 Collecting awesome-slugify==1.6.5 #12 1.269 Downloading awesome-slugify-1.6.5.tar.gz (8.4 kB) #12 1.414 Collecting beautifulsoup4==4.10.0 #12 1.453 Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB) #12 1.529 Collecting blessed==1.19.0 #12 1.563 Downloading blessed-1.19.0-py2.py3-none-any.whl (57 kB) #12 1.630 Collecting cachetools==4.2.2 #12 1.666 Downloading cachetools-4.2.2-py3-none-any.whl (11 kB) #12 1.724 Collecting certifi==2021.5.30 #12 1.758 Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB) #12 1.960 Collecting cffi==1.14.6 #12 1.995 Downloading cffi-1.14.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (208 kB) #12 2.067 Collecting chardet==3.0.4 #12 2.099 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) #12 2.172 Collecting click==7.1.2 #12 2.206 Downloading click-7.1.2-py2.py3-none-any.whl (82 kB) #12 2.277 Collecting croniter==1.0.10 #12 2.312 Downloading croniter-1.0.10-py2.py3-none-any.whl (14 kB) #12 2.519 Collecting cryptography==3.4.7 #12 2.555 Downloading cryptography-3.4.7-cp36-abi3-manylinux2014_aarch64.whl (3.1 MB) #12 2.774 Collecting cssselect==1.1.0 #12 2.808 Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB) #12 2.864 Collecting cssutils==2.3.0 #12 2.917 Downloading cssutils-2.3.0-py3-none-any.whl (404 kB) #12 2.997 Collecting decorator==5.1.0 #12 3.038 Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB) #12 3.090 Collecting django-debug-toolbar==3.2 #12 3.124 Downloading django_debug_toolbar-3.2-py3-none-any.whl (200 kB) #12 3.208 Collecting django-picklefield==3.0.1 #12 3.245 Downloading django_picklefield-3.0.1-py3-none-any.whl (9.4 kB) #12 3.293 Collecting django-q-sentry==0.1.5 #12 3.333 Downloading django_q_sentry-0.1.5-py3-none-any.whl (3.8 kB) #12 3.399 Collecting django-q[sentry]==1.3.5 #12 3.431 Downloading django_q-1.3.5-py3-none-any.whl (73 kB) #12 3.489 Collecting django-redis==4.11.0 #12 3.525 Downloading django_redis-4.11.0-py3-none-any.whl (18 kB) #12 3.582 Collecting django-simple-history==2.12.0 #12 3.616 Downloading django_simple_history-2.12.0-py2.py3-none-any.whl (46 kB) #12 3.669 Collecting django-webpack-loader==0.7.0 #12 3.703 Downloading django_webpack_loader-0.7.0-py2.py3-none-any.whl (14 kB) #12 3.794 Collecting django==3.2.5 #12 3.827 Downloading Django-3.2.5-py3-none-any.whl (7.9 MB) #12 4.365 Collecting feedfinder2==0.0.4 #12 4.402 Downloading feedfinder2-0.0.4.tar.gz (3.3 kB) #12 4.544 Collecting feedparser==6.0.8 #12 4.577 Downloading feedparser-6.0.8-py3-none-any.whl (81 kB) #12 4.641 Collecting filelock==3.0.12 #12 4.677 Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB) #12 4.736 Collecting flake8==3.9.0 #12 4.770 Downloading flake8-3.9.0-py2.py3-none-any.whl (73 kB) #12 4.832 Collecting future==0.18.2 #12 4.867 Downloading future-0.18.2.tar.gz (829 kB) #12 5.099 Collecting gunicorn==20.0.4 #12 5.136 Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) #12 5.248 Collecting h11==0.12.0 #12 5.286 Downloading h11-0.12.0-py3-none-any.whl (54 kB) #12 5.357 Collecting httptools==0.1.1 #12 5.390 Downloading httptools-0.1.1.tar.gz (106 kB) #12 5.549 Collecting icalendar==4.0.7 #12 5.685 Downloading icalendar-4.0.7-py2.py3-none-any.whl (74 kB) #12 5.756 Collecting idna==2.10 #12 5.790 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) #12 5.838 Collecting iniconfig==1.1.1 #12 5.875 Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB) #12 5.921 Collecting jieba3k==0.35.1 #12 5.955 Downloading jieba3k-0.35.1.zip (7.4 MB) #12 6.441 Collecting lxml==4.6.3 #12 6.475 Downloading lxml-4.6.3-cp38-cp38-manylinux2014_aarch64.whl (7.3 MB) #12 6.744 Collecting mccabe==0.6.1 #12 6.779 Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) #12 6.830 Collecting mistune==2.0.0a4 #12 6.864 Downloading mistune-2.0.0a4-py2.py3-none-any.whl (21 kB) #12 6.922 Collecting newspaper3k==0.2.8 #12 6.958 Downloading newspaper3k-0.2.8-py3-none-any.whl (211 kB) #12 7.035 Collecting nltk==3.4.5 #12 7.072 Downloading nltk-3.4.5.zip (1.5 MB) #12 7.295 Collecting packaging==21.0 #12 7.333 Downloading packaging-21.0-py3-none-any.whl (40 kB) #12 7.388 Collecting patreon==0.5.0 #12 7.426 Downloading patreon-0.5.0.tar.gz (9.8 kB) #12 8.582 Collecting pillow==8.3.2 #12 8.620 Downloading Pillow-8.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.0 MB) #12 8.822 Collecting pluggy==0.13.1 #12 8.872 Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB) #12 8.933 Collecting premailer==3.6.1 #12 8.973 Downloading premailer-3.6.1-py2.py3-none-any.whl (19 kB) #12 9.085 Collecting psycopg2-binary==2.8.4 #12 9.119 Downloading psycopg2-binary-2.8.4.tar.gz (378 kB) #12 9.312 Collecting py==1.10.0 #12 9.344 Downloading py-1.10.0-py2.py3-none-any.whl (97 kB) #12 9.397 Collecting pycodestyle==2.7.0 #12 9.430 Downloading pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB) #12 9.483 Collecting pycparser==2.20 #12 9.514 Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB) #12 9.567 Collecting pyflakes==2.3.1 #12 9.600 Downloading pyflakes-2.3.1-py2.py3-none-any.whl (68 kB) #12 9.657 Collecting pyjwt==1.7.1 #12 9.693 Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB) #12 9.759 Collecting pyparsing==2.4.7 #12 9.793 Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) #12 9.876 Collecting pytest==6.2.3 #12 9.910 Downloading pytest-6.2.3-py3-none-any.whl (280 kB) #12 10.03 Collecting python-dateutil==2.8.2 #12 10.07 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) #12 10.13 Collecting python-dotenv==0.17.0 #12 10.16 Downloading python_dotenv-0.17.0-py2.py3-none-any.whl (18 kB) #12 10.25 Collecting python-telegram-bot==12.5.1 #12 10.28 Downloading python_telegram_bot-12.5.1-py2.py3-none-any.whl (367 kB) #12 10.39 Collecting pytz==2021.1 #12 10.43 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) #12 10.54 Collecting pyyaml==5.4.1 #12 10.58 Downloading PyYAML-5.4.1-cp38-cp38-manylinux2014_aarch64.whl (818 kB) #12 10.71 Collecting redis==3.5.3 #12 10.74 Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB) #12 11.04 Collecting regex==2021.8.28 #12 11.08 Downloading regex-2021.8.28-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (758 kB) #12 11.16 Collecting requests-file==1.5.1 #12 11.20 Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB) #12 11.26 Collecting requests==2.23.0 #12 11.29 Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB) #12 11.37 Collecting sentry-sdk==1.0.0 #12 11.41 Downloading sentry_sdk-1.0.0-py2.py3-none-any.whl (131 kB) #12 11.47 Collecting sgmllib3k==1.0.0 #12 11.50 Downloading sgmllib3k-1.0.0.tar.gz (5.8 kB) #12 11.59 Requirement already satisfied: six==1.16.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 77)) (1.16.0) #12 11.64 Collecting soupsieve==2.2.1 #12 11.68 Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB) #12 11.74 Collecting sqlparse==0.4.2 #12 11.78 Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB) #12 11.89 Collecting stripe==2.55.0 #12 11.93 Downloading stripe-2.55.0-py2.py3-none-any.whl (204 kB) #12 12.00 Collecting tinysegmenter==0.3 #12 12.04 Downloading tinysegmenter-0.3.tar.gz (16 kB) #12 12.18 Collecting tldextract==3.1.2 #12 12.23 Downloading tldextract-3.1.2-py2.py3-none-any.whl (87 kB) #12 12.28 Collecting toml==0.10.2 #12 12.32 Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) #12 12.38 Collecting tornado==6.1 #12 12.42 Downloading tornado-6.1-cp38-cp38-manylinux2014_aarch64.whl (427 kB) #12 12.48 Collecting typus==0.2.2 #12 12.52 Downloading typus-0.2.2.tar.gz (19 kB) #12 12.66 Collecting unidecode==0.4.21 #12 12.70 Downloading Unidecode-0.04.21-py2.py3-none-any.whl (228 kB) #12 12.77 Collecting urllib3==1.25.11 #12 12.80 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) #12 12.87 Collecting uvicorn==0.13.4 #12 12.91 Downloading uvicorn-0.13.4-py3-none-any.whl (46 kB) #12 12.99 Collecting uvloop==0.15.2 #12 13.02 Downloading uvloop-0.15.2-cp38-cp38-manylinux2014_aarch64.whl (5.2 MB) #12 13.32 Collecting wcwidth==0.2.5 #12 13.36 Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) #12 13.37 Requirement already satisfied: setuptools>=3.0 in /usr/lib/python3/dist-packages (from gunicorn==20.0.4->-r requirements.txt (line 41)) (45.2.0) #12 13.37 Building wheels for collected packages: awesome-slugify, feedfinder2, future, httptools, jieba3k, nltk, patreon, psycopg2-binary, sgmllib3k, tinysegmenter, typus #12 13.37 Building wheel for awesome-slugify (setup.py): started #12 13.48 Building wheel for awesome-slugify (setup.py): finished with status 'done' #12 13.48 Created wheel for awesome-slugify: filename=awesome_slugify-1.6.5-py3-none-any.whl size=8353 sha256=4b6cae1077f79ccd142cc1b886854103e06fd31977ed9de9ffe1a71b97129ecf #12 13.48 Stored in directory: /root/.cache/pip/wheels/11/27/6f/56a2607c9f8010991f9e8f42c6bc8a90917291b4e1ead4582a #12 13.48 Building wheel for feedfinder2 (setup.py): started #12 13.59 Building wheel for feedfinder2 (setup.py): finished with status 'done' #12 13.59 Created wheel for feedfinder2: filename=feedfinder2-0.0.4-py3-none-any.whl size=3355 sha256=1c665ac0c1d0ed5215132c9a9619f8d6afc2d45aa59ea700688c2ed74fca9ee3 #12 13.59 Stored in directory: /root/.cache/pip/wheels/b6/09/68/a9f15498ac02c23dde29f18745bc6a6f574ba4ab41861a3575 #12 13.59 Building wheel for future (setup.py): started #12 13.80 Building wheel for future (setup.py): finished with status 'done' #12 13.80 Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=3087e41ae1b79c09f83a91ae467eabc1acd6ebf4664425a62ed8354b2f454d13 #12 13.80 Stored in directory: /root/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4 #12 13.80 Building wheel for httptools (setup.py): started #12 13.90 Building wheel for httptools (setup.py): finished with status 'error' #12 13.90 ERROR: Command errored out with exit status 1: #12 13.90 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-uz5mc96q #12 13.90 cwd: /tmp/pip-install-ekwvb32f/httptools/ #12 13.90 Complete output (30 lines): #12 13.90 running bdist_wheel #12 13.90 running build #12 13.90 running build_py #12 13.90 creating build #12 13.90 creating build/lib.linux-aarch64-3.8 #12 13.90 creating build/lib.linux-aarch64-3.8/httptools #12 13.90 copying httptools/__init__.py -> build/lib.linux-aarch64-3.8/httptools #12 13.90 copying httptools/_version.py -> build/lib.linux-aarch64-3.8/httptools #12 13.90 creating build/lib.linux-aarch64-3.8/httptools/parser #12 13.90 copying httptools/parser/errors.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 13.90 copying httptools/parser/__init__.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 13.90 running egg_info #12 13.90 writing httptools.egg-info/PKG-INFO #12 13.90 writing dependency_links to httptools.egg-info/dependency_links.txt #12 13.90 writing requirements to httptools.egg-info/requires.txt #12 13.90 writing top-level names to httptools.egg-info/top_level.txt #12 13.90 reading manifest file 'httptools.egg-info/SOURCES.txt' #12 13.90 reading manifest template 'MANIFEST.in' #12 13.90 writing manifest file 'httptools.egg-info/SOURCES.txt' #12 13.90 copying httptools/parser/parser.c -> build/lib.linux-aarch64-3.8/httptools/parser #12 13.90 running build_ext #12 13.90 building 'httptools.parser.parser' extension #12 13.90 creating build/temp.linux-aarch64-3.8 #12 13.90 creating build/temp.linux-aarch64-3.8/httptools #12 13.90 creating build/temp.linux-aarch64-3.8/httptools/parser #12 13.90 creating build/temp.linux-aarch64-3.8/vendor #12 13.90 creating build/temp.linux-aarch64-3.8/vendor/http-parser #12 13.90 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/tmp/pip-install-ekwvb32f/httptools/vendor/http-parser -c httptools/parser/parser.c -o build/temp.linux-aarch64-3.8/httptools/parser/parser.o -O2 #12 13.90 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 13.90 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 13.90 ---------------------------------------- #12 13.90 ERROR: Failed building wheel for httptools #12 13.90 Running setup.py clean for httptools #12 13.98 Building wheel for jieba3k (setup.py): started #12 14.76 Building wheel for jieba3k (setup.py): finished with status 'done' #12 14.76 Created wheel for jieba3k: filename=jieba3k-0.35.1-py3-none-any.whl size=7398406 sha256=f71069e2005fc5b3b53dcc8c13ac62b5b78f4bb2158666fe853abf564cf5f26c #12 14.76 Stored in directory: /root/.cache/pip/wheels/1f/7e/0c/54f3b0f5164278677899f2db08f2b07943ce2d024a3c862afb #12 14.76 Building wheel for nltk (setup.py): started #12 15.08 Building wheel for nltk (setup.py): finished with status 'done' #12 15.08 Created wheel for nltk: filename=nltk-3.4.5-py3-none-any.whl size=1449904 sha256=da307acf90fa3a58c99d5a6892619712f81471bd542bf643eee110c1fa30cc3a #12 15.08 Stored in directory: /root/.cache/pip/wheels/23/18/48/8fd6ec11da38406b309470566d6f099c04805d2ec61d7829e7 #12 15.08 Building wheel for patreon (setup.py): started #12 15.20 Building wheel for patreon (setup.py): finished with status 'done' #12 15.20 Created wheel for patreon: filename=patreon-0.5.0-py3-none-any.whl size=16844 sha256=500c33a413deeb2853630e508e6391a233a7870a099ddaea71f97fd8a58b4928 #12 15.20 Stored in directory: /root/.cache/pip/wheels/1b/7a/99/00a722984de10d848f92a7d91b9a014dc278baa9875bfdc07f #12 15.20 Building wheel for psycopg2-binary (setup.py): started #12 15.31 Building wheel for psycopg2-binary (setup.py): finished with status 'error' #12 15.31 ERROR: Command errored out with exit status 1: #12 15.31 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ekwvb32f/psycopg2-binary/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ekwvb32f/psycopg2-binary/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-6j3tmhi8 #12 15.31 cwd: /tmp/pip-install-ekwvb32f/psycopg2-binary/ #12 15.31 Complete output (36 lines): #12 15.31 running bdist_wheel #12 15.31 running build #12 15.31 running build_py #12 15.31 creating build #12 15.31 creating build/lib.linux-aarch64-3.8 #12 15.31 creating build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/tz.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/errors.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/compat.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/errorcodes.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/__init__.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/_ipaddress.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/extensions.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/_json.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/sql.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/_range.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/_lru_cache.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/extras.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 copying lib/pool.py -> build/lib.linux-aarch64-3.8/psycopg2 #12 15.31 running build_ext #12 15.31 building 'psycopg2._psycopg' extension #12 15.31 creating build/temp.linux-aarch64-3.8 #12 15.31 creating build/temp.linux-aarch64-3.8/psycopg #12 15.31 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120008 -DHAVE_LO64=1 -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-aarch64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement #12 15.31 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 15.31 #12 15.31 It appears you are missing some prerequisite to build the package from source. #12 15.31 #12 15.31 You may install a binary package by installing 'psycopg2-binary' from PyPI. #12 15.31 If you want to install psycopg2 from source, please install the packages #12 15.31 required for the build and try again. #12 15.31 #12 15.31 For further information please check the 'doc/src/install.rst' file (also at #12 15.31 ). #12 15.31 #12 15.31 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 15.31 ---------------------------------------- #12 15.31 ERROR: Failed building wheel for psycopg2-binary #12 15.31 Running setup.py clean for psycopg2-binary #12 15.38 Building wheel for sgmllib3k (setup.py): started #12 15.48 Building wheel for sgmllib3k (setup.py): finished with status 'done' #12 15.49 Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6064 sha256=906634928efd6cf88825704bf6b98be02b5f4c27b49a6873986cd9b6b39e73c8 #12 15.49 Stored in directory: /root/.cache/pip/wheels/83/63/2f/117884c3b19d46b64d3d61690333aa80c88dc14050e269c546 #12 15.49 Building wheel for tinysegmenter (setup.py): started #12 15.59 Building wheel for tinysegmenter (setup.py): finished with status 'done' #12 15.59 Created wheel for tinysegmenter: filename=tinysegmenter-0.3-py3-none-any.whl size=13538 sha256=95663e57c8c734dcbc9a3ad13621d84f671db21400e684ecd62d0d3d08ffc94d #12 15.59 Stored in directory: /root/.cache/pip/wheels/99/74/83/8fac1c8d9c648cfabebbbffe97a889f6624817f3aa0bbe6c09 #12 15.59 Building wheel for typus (setup.py): started #12 15.70 Building wheel for typus (setup.py): finished with status 'done' #12 15.70 Created wheel for typus: filename=typus-0.2.2-py2.py3-none-any.whl size=13979 sha256=45f81c55ce95519259a8e552597571730d456d382f9f3421a290bb14a8d94be2 #12 15.70 Stored in directory: /root/.cache/pip/wheels/f6/d4/86/bc0c33503399a5e6bbc038488a12294e4ba87d7252e9d32c78 #12 15.70 Successfully built awesome-slugify feedfinder2 future jieba3k nltk patreon sgmllib3k tinysegmenter typus #12 15.70 Failed to build httptools psycopg2-binary #12 15.85 Installing collected packages: python-dateutil, arrow, asgiref, attrs, unidecode, regex, awesome-slugify, soupsieve, beautifulsoup4, wcwidth, blessed, cachetools, certifi, pycparser, cffi, chardet, click, croniter, cryptography, cssselect, cssutils, decorator, sqlparse, pytz, django, django-debug-toolbar, django-picklefield, urllib3, sentry-sdk, django-q-sentry, django-q, redis, django-redis, django-simple-history, django-webpack-loader, idna, requests, feedfinder2, sgmllib3k, feedparser, filelock, pycodestyle, mccabe, pyflakes, flake8, future, gunicorn, h11, httptools, icalendar, iniconfig, jieba3k, lxml, mistune, pyyaml, pillow, tinysegmenter, requests-file, tldextract, nltk, newspaper3k, pyparsing, packaging, patreon, pluggy, premailer, psycopg2-binary, py, pyjwt, toml, pytest, python-dotenv, tornado, python-telegram-bot, stripe, typus, uvicorn, uvloop #12 15.85 ERROR: virtualenv 20.9.0 has requirement filelock<4,>=3.2, but you'll have filelock 3.0.12 which is incompatible. #12 16.15 Attempting uninstall: certifi #12 16.15 Found existing installation: certifi 2021.10.8 #12 16.15 Uninstalling certifi-2021.10.8: #12 16.16 Successfully uninstalled certifi-2021.10.8 #12 18.21 Attempting uninstall: filelock #12 18.21 Found existing installation: filelock 3.3.1 #12 18.21 Uninstalling filelock-3.3.1: #12 18.22 Successfully uninstalled filelock-3.3.1 #12 18.49 Running setup.py install for httptools: started #12 18.60 Running setup.py install for httptools: finished with status 'error' #12 18.60 ERROR: Command errored out with exit status 1: #12 18.60 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-npacmzrm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/httptools #12 18.60 cwd: /tmp/pip-install-ekwvb32f/httptools/ #12 18.60 Complete output (30 lines): #12 18.60 running install #12 18.60 running build #12 18.60 running build_py #12 18.60 creating build #12 18.60 creating build/lib.linux-aarch64-3.8 #12 18.60 creating build/lib.linux-aarch64-3.8/httptools #12 18.60 copying httptools/__init__.py -> build/lib.linux-aarch64-3.8/httptools #12 18.60 copying httptools/_version.py -> build/lib.linux-aarch64-3.8/httptools #12 18.60 creating build/lib.linux-aarch64-3.8/httptools/parser #12 18.60 copying httptools/parser/errors.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 18.60 copying httptools/parser/__init__.py -> build/lib.linux-aarch64-3.8/httptools/parser #12 18.60 running egg_info #12 18.60 writing httptools.egg-info/PKG-INFO #12 18.60 writing dependency_links to httptools.egg-info/dependency_links.txt #12 18.60 writing requirements to httptools.egg-info/requires.txt #12 18.60 writing top-level names to httptools.egg-info/top_level.txt #12 18.60 reading manifest file 'httptools.egg-info/SOURCES.txt' #12 18.60 reading manifest template 'MANIFEST.in' #12 18.60 writing manifest file 'httptools.egg-info/SOURCES.txt' #12 18.60 copying httptools/parser/parser.c -> build/lib.linux-aarch64-3.8/httptools/parser #12 18.60 running build_ext #12 18.60 building 'httptools.parser.parser' extension #12 18.60 creating build/temp.linux-aarch64-3.8 #12 18.60 creating build/temp.linux-aarch64-3.8/httptools #12 18.60 creating build/temp.linux-aarch64-3.8/httptools/parser #12 18.60 creating build/temp.linux-aarch64-3.8/vendor #12 18.60 creating build/temp.linux-aarch64-3.8/vendor/http-parser #12 18.60 aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -I/tmp/pip-install-ekwvb32f/httptools/vendor/http-parser -c httptools/parser/parser.c -o build/temp.linux-aarch64-3.8/httptools/parser/parser.o -O2 #12 18.60 unable to execute 'aarch64-linux-gnu-gcc': No such file or directory #12 18.60 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #12 18.60 ---------------------------------------- #12 18.83 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ekwvb32f/httptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-npacmzrm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/httptools Check the logs for full command output. ------ executor failed running [/bin/sh -c pip3 install -r requirements.txt]: exit code: 1 ERROR: Service 'queue' failed to build : Build failed ```

Ожидаемый результат

Докер должен установить все зависимости без ошибок и запустить проект.

Шаги к воспроизведению

  1. Иметь Macbook M1
  2. Скачать репозиторий
  3. Запустить docker-compose up
  4. Получить ошибку

Среда

image
glader commented 2 years ago

Интересно. Я не вижу, где этот модуль используется. @vas3k ты помнишь, зачем его добавил?

vas3k commented 2 years ago

Неа, по моему без них что-то не собиралось

edbond88 commented 2 years ago

Я пробовал удалить httptools, но там еще проблема в psycopg2-binary

Автор psycopg2-binary говорит, что это все новые маки виноваты и он ничем не может помочь ¯_(ツ)_/¯ Вот тред: https://github.com/psycopg/psycopg2/issues/1200