Q&A

책을 따라하다가 막히는 부분이 있나요?
질문을 남겨주세요.

docker-compose build 문제 565p

2 years, 9 months ago

jhmovie3 jhmovie3

 => ERROR [7/7] RUN pip install -r requirements.txt                                             109.7s ------

 > [7/7] RUN pip install -r requirements.txt:

#11 2.542 Collecting aliyun-python-sdk-core==2.13.36

#11 2.699   Downloading aliyun-python-sdk-core-2.13.36.tar.gz (440 kB)

#11 3.172      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 440.5/440.5 KB 944.7 kB/s eta 0:00:00

#11 3.252   Preparing metadata (setup.py): started

#11 4.253   Preparing metadata (setup.py): finished with status 'done'

#11 4.314 Collecting aliyun-python-sdk-polardb==1.8.15

#11 4.348   Downloading aliyun_python_sdk_polardb-1.8.15-py2.py3-none-any.whl (125 kB)

#11 4.379      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.6/125.6 KB 5.0 MB/s eta 0:00:00

#11 4.488 Collecting asgiref==3.4.1

#11 4.531   Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)

#11 4.587 Collecting backcall==0.2.0

#11 4.616   Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)

#11 4.713 Collecting backports.zoneinfo==0.2.1

#11 4.745   Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)

#11 4.785      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 KB 2.9 MB/s eta 0:00:00

#11 5.116   Installing build dependencies: started

#11 10.90   Installing build dependencies: finished with status 'done'

#11 10.90   Getting requirements to build wheel: started

#11 12.68   Getting requirements to build wheel: finished with status 'done'

#11 12.69   Preparing metadata (pyproject.toml): started

#11 14.56   Preparing metadata (pyproject.toml): finished with status 'done'

#11 14.63 Collecting beautifulsoup4==4.10.0

#11 14.65   Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)

#11 14.68      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.4/97.4 KB 5.4 MB/s eta 0:00:00

#11 14.75 Collecting certifi==2021.10.8

#11 14.78   Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)

#11 14.84      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 4.6 MB/s eta 0:00:00

#11 15.18 Collecting cffi==1.15.0

#11 15.21   Downloading cffi-1.15.0.tar.gz (484 kB)

#11 15.33      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 484.1/484.1 KB 4.2 MB/s eta 0:00:00

#11 15.52   Preparing metadata (setup.py): started

#11 16.66   Preparing metadata (setup.py): finished with status 'done'

#11 16.74 Collecting charset-normalizer==2.0.10

#11 16.77   Downloading charset_normalizer-2.0.10-py3-none-any.whl (39 kB)

#11 16.87 Collecting colorama==0.4.4

#11 16.90   Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)

#11 17.37 Collecting cryptography==36.0.1

#11 17.40   Downloading cryptography-36.0.1-cp36-abi3-musllinux_1_1_x86_64.whl (3.8 MB)

#11 18.25      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 4.6 MB/s eta 0:00:00

#11 18.36 Collecting decorator==5.1.0

#11 18.39   Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB)

#11 18.46 Collecting defusedxml==0.7.1

#11 18.50   Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)

#11 18.77 Collecting Django==3.2

#11 18.80   Downloading Django-3.2-py3-none-any.whl (7.9 MB)

#11 20.62      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 4.4 MB/s eta 0:00:00

#11 20.78 Collecting django-allauth==0.47.0

#11 20.82   Downloading django-allauth-0.47.0.tar.gz (649 kB)

#11 20.97      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 649.9/649.9 KB 4.3 MB/s eta 0:00:00

#11 21.43   Preparing metadata (setup.py): started

#11 22.72   Preparing metadata (setup.py): finished with status 'done'

#11 22.81 Collecting django-crispy-forms==1.13.0

#11 22.84   Downloading django_crispy_forms-1.13.0-py3-none-any.whl (122 kB)

#11 22.88      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 122.8/122.8 KB 6.0 MB/s eta 0:00:00

#11 23.03 Collecting django-extensions==3.1.5

#11 23.07   Downloading django_extensions-3.1.5-py3-none-any.whl (224 kB)

#11 23.14      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.2/224.2 KB 3.4 MB/s eta 0:00:00

#11 23.43 Collecting django-markdownx==3.0.1

#11 23.46   Downloading django_markdownx-3.0.1-py2.py3-none-any.whl (46 kB)

#11 23.48      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 KB 2.0 MB/s eta 0:00:00

#11 23.54 Collecting idna==3.3

#11 23.58   Downloading idna-3.3-py3-none-any.whl (61 kB)

#11 23.61      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 2.6 MB/s eta 0:00:00

#11 23.78 Collecting importlib-metadata==4.10.0

#11 23.81   Downloading importlib_metadata-4.10.0-py3-none-any.whl (17 kB)

#11 24.01 Collecting ipython==7.30.1

#11 24.04   Downloading ipython-7.30.1-py3-none-any.whl (791 kB)

#11 24.26      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 791.7/791.7 KB 3.9 MB/s eta 0:00:00

#11 24.36 Collecting jedi==0.18.1

#11 24.41   Downloading jedi-0.18.1-py2.py3-none-any.whl (1.6 MB)

#11 24.76      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 4.6 MB/s eta 0:00:00

#11 24.85 Collecting jmespath==0.10.0

#11 24.89   Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)

#11 25.00 Collecting Markdown==3.3.6

#11 25.03   Downloading Markdown-3.3.6-py3-none-any.whl (97 kB)

#11 25.05      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.8/97.8 KB 6.2 MB/s eta 0:00:00

#11 25.10 Collecting matplotlib-inline==0.1.3

#11 25.14   Downloading matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)

#11 25.23 Collecting oauthlib==3.1.1

#11 25.26   Downloading oauthlib-3.1.1-py2.py3-none-any.whl (146 kB)

#11 25.34      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 146.2/146.2 KB 1.8 MB/s eta 0:00:00

#11 25.47 Collecting parso==0.8.3

#11 25.52   Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)

#11 25.57      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 KB 3.5 MB/s eta 0:00:00

#11 25.64 Collecting pickleshare==0.7.5

#11 25.67   Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)

#11 26.23 Collecting Pillow==8.4.0

#11 26.25   Downloading Pillow-8.4.0.tar.gz (49.4 MB)

#11 38.44      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 MB 3.5 MB/s eta 0:00:00

#11 41.05   Preparing metadata (setup.py): started

#11 42.10   Preparing metadata (setup.py): finished with status 'done'

#11 42.24 Collecting prompt-toolkit==3.0.24

#11 42.28   Downloading prompt_toolkit-3.0.24-py3-none-any.whl (374 kB)

#11 42.38      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 374.7/374.7 KB 3.7 MB/s eta 0:00:00

#11 42.44 Collecting pycparser==2.21

#11 42.47   Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)

#11 42.52      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 KB 2.7 MB/s eta 0:00:00

#11 42.62 Collecting Pygments==2.11.1

#11 42.66   Downloading Pygments-2.11.1-py3-none-any.whl (1.1 MB)

#11 42.98      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 3.3 MB/s eta 0:00:00

#11 43.07 Collecting PyJWT==2.3.0

#11 43.10   Downloading PyJWT-2.3.0-py3-none-any.whl (16 kB)

#11 43.16 Collecting python3-openid==3.2.0

#11 43.20   Downloading python3_openid-3.2.0-py3-none-any.whl (133 kB)

#11 43.30      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.7/133.7 KB 1.8 MB/s eta 0:00:00

#11 43.50 Collecting pytz==2021.3

#11 43.55   Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)

#11 43.67      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 KB 4.2 MB/s eta 0:00:00

#11 43.84 Collecting requests==2.27.1

#11 43.88   Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)

#11 43.90      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 KB 4.5 MB/s eta 0:00:00

#11 43.96 Collecting requests-oauthlib==1.3.0

#11 44.02   Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)

#11 44.11 Collecting soupsieve==2.3.1

#11 44.16   Downloading soupsieve-2.3.1-py3-none-any.whl (37 kB)

#11 44.24 Collecting sqlparse==0.4.2

#11 44.29   Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)

#11 44.33      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.3/42.3 KB 1.5 MB/s eta 0:00:00

#11 44.39 Collecting traitlets==5.1.1

#11 44.43   Downloading traitlets-5.1.1-py3-none-any.whl (102 kB)

#11 44.47      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.0/102.0 KB 3.4 MB/s eta 0:00:00

#11 44.52 Collecting tzdata==2021.5

#11 44.57   Downloading tzdata-2021.5-py2.py3-none-any.whl (339 kB)

#11 44.68      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.4/339.4 KB 3.4 MB/s eta 0:00:00

#11 44.80 Collecting urllib3==1.26.8

#11 44.83   Downloading urllib3-1.26.8-py2.py3-none-any.whl (138 kB)

#11 44.87      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.7/138.7 KB 3.4 MB/s eta 0:00:00

#11 44.92 Collecting wcwidth==0.2.5

#11 44.96   Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)

#11 45.05 Collecting zipp==3.7.0

#11 45.09   Downloading zipp-3.7.0-py3-none-any.whl (5.3 kB)

#11 45.64 Collecting pexpect>4.3

#11 45.67   Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)

#11 45.69      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 KB 4.8 MB/s eta 0:00:00

#11 45.71 Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python3.8/site-packages (from ipython==7.30.1->-r requirements.txt (line 21)) (45.1.0)

#11 46.35 Collecting ptyprocess>=0.5

#11 46.37   Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)

#11 46.45 Building wheels for collected packages: aliyun-python-sdk-core, backports.zoneinfo, cffi, django-allauth, Pillow

#11 46.45   Building wheel for aliyun-python-sdk-core (setup.py): started

#11 47.85   Building wheel for aliyun-python-sdk-core (setup.py): finished with status 'done'

#11 47.86   Created wheel for aliyun-python-sdk-core: filename=aliyun_python_sdk_core-2.13.36-py3-none-any.whl size=533182 sha256=f63885801cf6d53eee23ce174e8a8f8457a0cfdcf1c4464703912ce534ed5ada

#11 47.86   Stored in directory: /root/.cache/pip/wheels/50/51/7d/304d0c92509363ab568526b81e53573e2e1e249ce35d492ea4

#11 47.87   Building wheel for backports.zoneinfo (pyproject.toml): started

#11 51.10   Building wheel for backports.zoneinfo (pyproject.toml): finished with status 'done'

#11 51.10   Created wheel for backports.zoneinfo: filename=backports.zoneinfo-0.2.1-cp38-cp38-linux_x86_64.whl size=85875 sha256=6b036cdde2d16d7d36e38363e3e934ee32aa6a0d442a6df2039ab9d3b155b104

#11 51.10   Stored in directory: /root/.cache/pip/wheels/c7/de/cc/c405827ed64f81b56142f1e0075a970b2731b00d21983d54fb

#11 51.11   Building wheel for cffi (setup.py): started

#11 52.27   Building wheel for cffi (setup.py): finished with status 'error'

#11 52.29   error: subprocess-exited-with-error

#11 52.29

#11 52.29   × python setup.py bdist_wheel did not run successfully.

#11 52.29   │ exit code: 1

#11 52.29   ╰─> [58 lines of output]

#11 52.29       Package libffi was not found in the pkg-config search path.

#11 52.29       Perhaps you should add the directory containing `libffi.pc'

#11 52.29       to the PKG_CONFIG_PATH environment variable

#11 52.29       Package 'libffi', required by 'virtual:world', not found

#11 52.29       Package libffi was not found in the pkg-config search path.

#11 52.29       Perhaps you should add the directory containing `libffi.pc'

#11 52.29       to the PKG_CONFIG_PATH environment variable

#11 52.29       Package 'libffi', required by 'virtual:world', not found

#11 52.29       Package libffi was not found in the pkg-config search path.

#11 52.29       Perhaps you should add the directory containing `libffi.pc'

#11 52.29       to the PKG_CONFIG_PATH environment variable

#11 52.29       Package 'libffi', required by 'virtual:world', not found

#11 52.29       Package libffi was not found in the pkg-config search path.

#11 52.29       Perhaps you should add the directory containing `libffi.pc'

#11 52.29       to the PKG_CONFIG_PATH environment variable

#11 52.29       Package 'libffi', required by 'virtual:world', not found

#11 52.29       Package libffi was not found in the pkg-config search path.

#11 52.29       Perhaps you should add the directory containing `libffi.pc'

#11 52.29       to the PKG_CONFIG_PATH environment variable

#11 52.29       Package 'libffi', required by 'virtual:world', not found

#11 52.29       running bdist_wheel

#11 52.29       running build

#11 52.29       running build_py

#11 52.29       creating build

#11 52.29       creating build/lib.linux-x86_64-3.8

#11 52.29       creating build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi

#11 52.29       warning: build_py: byte-compiling is disabled, skipping.

#11 52.29

#11 52.29       running build_ext

#11 52.29       building '_cffi_backend' extension

#11 52.29       creating build/temp.linux-x86_64-3.8

#11 52.29       creating build/temp.linux-x86_64-3.8/c

#11 52.29       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o

#11 52.29       c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory

#11 52.29          15 | #include <ffi.h>

#11 52.29             |          ^~~~~~~

#11 52.29       compilation terminated.

#11 52.29       error: command 'gcc' failed with exit status 1

#11 52.29       [end of output]

#11 52.29

#11 52.29   note: This error originates from a subprocess, and is likely not a problem with pip.

#11 52.29   ERROR: Failed building wheel for cffi

#11 52.29   Running setup.py clean for cffi

#11 53.20   Building wheel for django-allauth (setup.py): started

#11 55.59   Building wheel for django-allauth (setup.py): finished with status 'done'

#11 55.60   Created wheel for django-allauth: filename=django_allauth-0.47.0-py3-none-any.whl size=970045 sha256=62f403fc15af75a9cb430a471cf94429eff34aa4e3e8a9011018564989ef50bf

#11 55.60   Stored in directory: /root/.cache/pip/wheels/c9/b1/cc/22388d6723886e133c1e30ad5941deb82b0e793a52b45bff5e

#11 55.62   Building wheel for Pillow (setup.py): started

#11 97.63   Building wheel for Pillow (setup.py): finished with status 'done'

#11 97.63   Created wheel for Pillow: filename=Pillow-8.4.0-cp38-cp38-linux_x86_64.whl size=1241315 sha256=a8b84f7c5ee7dcddb210b6c2c6db2f9c23caea868a7cd4902ceb2b27304344c6

#11 97.63   Stored in directory: /root/.cache/pip/wheels/11/7a/78/3db63f4cb41c790e74beda816cb05f5e2d54bbe70c3e562c53

#11 97.64 Successfully built aliyun-python-sdk-core backports.zoneinfo django-allauth Pillow

#11 97.64 Failed to build cffi

#11 98.18 Installing collected packages: wcwidth, pytz, ptyprocess, pickleshare, certifi, backcall, zipp, urllib3, tzdata, traitlets, sqlparse, soupsieve, PyJWT, Pygments, pycparser, prompt-toolkit, Pillow, pexpect, parso, oauthlib, jmespath, idna, django-crispy-forms, defusedxml, decorator, colorama, charset-normalizer, backports.zoneinfo, asgiref, requests, python3-openid, matplotlib-inline, jedi, importlib-metadata, Django, cffi, beautifulsoup4, requests-oauthlib, Markdown, ipython, django-extensions, cryptography, django-markdownx, aliyun-python-sdk-core, django-allauth, aliyun-python-sdk-polardb

#11 107.3   Running setup.py install for cffi: started

#11 108.5   Running setup.py install for cffi: finished with status 'error'

#11 108.6   error: subprocess-exited-with-error

#11 108.6

#11 108.6   × Running setup.py install for cffi did not run successfully.

#11 108.6   │ exit code: 1

#11 108.6   ╰─> [58 lines of output]

#11 108.6       Package libffi was not found in the pkg-config search path.

#11 108.6       Perhaps you should add the directory containing `libffi.pc'

#11 108.6       to the PKG_CONFIG_PATH environment variable

#11 108.6       Package 'libffi', required by 'virtual:world', not found

#11 108.6       Package libffi was not found in the pkg-config search path.

#11 108.6       Perhaps you should add the directory containing `libffi.pc'

#11 108.6       to the PKG_CONFIG_PATH environment variable

#11 108.6       Package 'libffi', required by 'virtual:world', not found

#11 108.6       Package libffi was not found in the pkg-config search path.

#11 108.6       Perhaps you should add the directory containing `libffi.pc'

#11 108.6       to the PKG_CONFIG_PATH environment variable

#11 108.6       Package 'libffi', required by 'virtual:world', not found

#11 108.6       Package libffi was not found in the pkg-config search path.

#11 108.6       Perhaps you should add the directory containing `libffi.pc'

#11 108.6       to the PKG_CONFIG_PATH environment variable

#11 108.6       Package 'libffi', required by 'virtual:world', not found

#11 108.6       Package libffi was not found in the pkg-config search path.

#11 108.6       Perhaps you should add the directory containing `libffi.pc'

#11 108.6       to the PKG_CONFIG_PATH environment variable

#11 108.6       Package 'libffi', required by 'virtual:world', not found

#11 108.6       running install

#11 108.6       running build

#11 108.6       running build_py

#11 108.6       creating build

#11 108.6       creating build/lib.linux-x86_64-3.8

#11 108.6       creating build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi

#11 108.6       warning: build_py: byte-compiling is disabled, skipping.

#11 108.6

#11 108.6       running build_ext

#11 108.6       building '_cffi_backend' extension

#11 108.6       creating build/temp.linux-x86_64-3.8

#11 108.6       creating build/temp.linux-x86_64-3.8/c

#11 108.6       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o

#11 108.6       c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory

#11 108.6          15 | #include <ffi.h>

#11 108.6             |          ^~~~~~~

#11 108.6       compilation terminated.

#11 108.6       error: command 'gcc' failed with exit status 1

#11 108.6       [end of output]

#11 108.6

#11 108.6   note: This error originates from a subprocess, and is likely not a problem with pip.

#11 108.6 error: legacy-install-failure

#11 108.6

#11 108.6 × Encountered error while trying to install package.

#11 108.6 ╰─> cffi

#11 108.6

#11 108.6 note: This is an issue with the package mentioned above, not pip.

#11 108.6 hint: See above for output from the failure.

------

failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1

로 에러가 나서 1주째 헤매는중입니다. 윈도우 파이썬 3.8.1에서 하는중입니다.


libffi? 얘는 도대체뭐고, cffi가 문제라는데 뭔지 모르겠습니다..

docker-compose.yml

version: '3'

services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env.dev

requirements.txt

aliyun-python-sdk-core==2.13.36
aliyun-python-sdk-polardb==1.8.15
asgiref==3.4.1
backcall==0.2.0
backports.zoneinfo==0.2.1
beautifulsoup4==4.10.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.10
colorama==0.4.4
cryptography==36.0.1
decorator==5.1.0
defusedxml==0.7.1
Django==3.2
django-allauth==0.47.0
django-crispy-forms==1.13.0
django-extensions==3.1.5
django-markdownx==3.0.1
idna==3.3
importlib-metadata==4.10.0
ipython==7.30.1
jedi==0.18.1
jmespath==0.10.0
Markdown==3.3.6
matplotlib-inline==0.1.3
oauthlib==3.1.1
parso==0.8.3
pickleshare==0.7.5
Pillow==8.4.0
prompt-toolkit==3.0.24
pycparser==2.21
Pygments==2.11.1
PyJWT==2.3.0
python3-openid==3.2.0
pytz==2021.3
requests==2.27.1
requests-oauthlib==1.3.0
soupsieve==2.3.1
sqlparse==0.4.2
traitlets==5.1.1
tzdata==2021.5
urllib3==1.26.8
wcwidth==0.2.5
zipp==3.7.0

taegon
taegon   2 years, 9 months ago

안녕하세요.

답변이 늦어서 죄송합니다. 여전히 문제를 겪고 계신지 모르겠습니다.

해당 에러는 cryptography라는 암호화 관련 기능을 이용하기 위해서 필요한 라이브러리를 설치하는 과정에서 발생하는 문제입니다.

대문 글에서 안내해 드린 방식을 적용해보셨는지 궁금합니다.

https://doitdjango.com/blog/4/

혹시 계속 문제가 되신다면, 관련 소스코드를 공유해주시면, 조금 더 빠르게 진단해서 도와드릴 수 있을 것 같습니다.

그리고 AWS lightsail에서 작업하고 계시다면, 반복적인 작업으로 메모리가 부족한 경우가 있습니다. 이 경우, sudo reboot를 통해서 인스턴스를 재부팅해서 다시 시도해보시면 되는 경우가 종종 있습니다. 가장 저렴한 플랜으로 작업하다보니 경우에 따라 메모리가 다소 부족한 경우가 발생하는 것으로 보입니다.

고맙습니다.

Updated: Feb. 25, 2022, 10:52 a.m.

Leave a Comment:
목록보기
Search
  • 자유게시판
  • Q&A