heathdbrown / research

Things to look at it or that interest me.
0 stars 0 forks source link

Error with Docker + Suzieq + Raspberry-pi #39

Closed heathdbrown closed 1 year ago

heathdbrown commented 2 years ago

Issue

Working with https://github.com/netenglabs/suzieq and attempting to run docker on my raspberry-pi 4 received the following error.

Error

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error
heathdbrown commented 2 years ago

Solution Attempted: bulding on arm platform

# Also built a python3 -m venv .venv locally in the project
$python3 -m venv .venv
# Instlalled poetry
$pip install poetry
# Had to modify as the build-docker.sh cd $PYTHONPATH but this does not exist.
vim build-docker.sh
# comment out line 3
https://github.com/netenglabs/suzieq/blob/master/build-docker.sh#L3
# Build script
./build-docker.sh
Building suzieq (0.16.0)
  - Building sdist
  - Built suzieq-0.16.0.tar.gz
  - Building wheel
  - Built suzieq-0.16.0-py3-none-any.whl
Building image suzieq-base:0.16.0
Sending build context to Docker daemon  303.5MB
Step 1/6 : FROM python:3.7.11-slim-buster AS sqbase
3.7.11-slim-buster: Pulling from library/python
2215ad7863d9: Pull complete
a8dab4727654: Pull complete
45e7540bedb5: Pull complete
cbb59c61951e: Pull complete
78863922defd: Pull complete
Digest: sha256:a895c28b3106f53509907f6ec19dee625e449857c2a104f741a2c17cbe8ba72e
Status: Downloaded newer image for python:3.7.11-slim-buster
 ---> f79218f9ae44
Step 2/6 : ENV PATH=/root/.local/bin:$PATH
 ---> Running in 147faf604b04
Removing intermediate container 147faf604b04
 ---> 52b0c1f47f42
Step 3/6 : ENV PYTHONPATH=/root/.local/lib
 ---> Running in 0aab9ad1e12e
Removing intermediate container 0aab9ad1e12e
 ---> 7b9b26951cdf
Step 4/6 : RUN apt-get update &&     pip install --upgrade pip
 ---> Running in 0f92bdf5f2d4
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main armhf Packages [312 kB]
Get:5 http://deb.debian.org/debian buster/main armhf Packages [7698 kB]
Get:6 http://deb.debian.org/debian buster-updates/main armhf Packages [8792 B]
Fetched 8257 kB in 6s (1398 kB/s)
Reading package lists...
Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (21.2.4)
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-21.3.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
Removing intermediate container 0f92bdf5f2d4
 ---> 44398c2eac70
Step 5/6 : COPY build/requirements.txt /requirements.txt
 ---> 6f4c42c8af8e
Step 6/6 : RUN pip install --disable-pip-version-check -r /requirements.txt
 ---> Running in 09e48d78842d
Ignoring appnope: markers 'sys_platform == "darwin" and python_version >= "3.7" and platform_system == "Darwin"' don't match your environment
Ignoring cffi: markers 'python_full_version >= "3.6.1" and python_version >= "3.7" and implementation_name == "pypy"' don't match your environment
Ignoring py: markers 'python_full_version >= "3.6.1" and python_version >= "3.7" and implementation_name == "pypy"' don't match your environment
Ignoring pywin32: markers 'sys_platform == "win32" and platform_python_implementation != "PyPy" and python_full_version >= "3.6.1" and python_version >= "3.7"' don't match your environment
Ignoring pywinpty: markers 'os_name == "nt" and python_version >= "3.7"' don't match your environment
Collecting aiofiles==0.8.0
  Downloading aiofiles-0.8.0-py3-none-any.whl (13 kB)
Collecting aiohttp==3.7.4
  Downloading aiohttp-3.7.4.tar.gz (1.1 MB)
  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 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting altair==4.1.0
  Downloading altair-4.1.0-py3-none-any.whl (727 kB)
Collecting argon2-cffi==21.1.0
  Downloading argon2-cffi-21.1.0.tar.gz (1.8 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /tmp/pip-standalone-pip-aee1cpp0/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l2__m43q/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0'
       cwd: None
  Complete output (126 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-60.5.0-py3-none-any.whl (958 kB)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting cffi>=1.0
    Downloading cffi-1.15.0.tar.gz (484 kB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Collecting pycparser
    Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-dnnd67ru
         cwd: /tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/
    Complete output (48 lines):
    unable to execute 'gcc': No such file or directory
    unable to execute 'gcc': No such file or directory

        No working compiler found, or bogus compiler options passed to
        the compiler from Python's standard "distutils" module.  See
        the error messages above.  Likely, the problem is not related
        to CFFI but generic to the setup.py of any Python package that
        tries to compile C code.  (Hints: on OS/X 10.8, for errors about
        -mno-fused-madd see http://stackoverflow.com/questions/22313407/
        Otherwise, see https://wiki.python.org/moin/CompLangPython or
        the IRC channel #python on irc.libera.chat.)

        Trying to continue anyway.  If you are trying to install CFFI from
        a build done in a different context, you can ignore this warning.

    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/c
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: pycparser, wheel, setuptools, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bwnyszat/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-l2__m43q/overlay --compile --install-headers /tmp/pip-build-env-l2__m43q/overlay/include/python3.7m/cffi
           cwd: /tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/
      Complete output (48 lines):
      unable to execute 'gcc': No such file or directory
      unable to execute 'gcc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.libera.chat.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.7
      creating build/lib.linux-armv7l-3.7/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.7
      creating build/temp.linux-armv7l-3.7/c
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m93i8u5v/cffi_a0026f8e4c23470db27e2705036ccb99/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bwnyszat/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-l2__m43q/overlay --compile --install-headers /tmp/pip-build-env-l2__m43q/overlay/include/python3.7m/cffi Check the logs for full command output.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7b/39/a26aaef5c3f0c6cfd67c80599b5b40a794fdab46f4ee3be925d71e2f9596/argon2-cffi-21.1.0.tar.gz#sha256=f710b61103d1a1f692ca3ecbd1373e28aa5e545ac625ba067ff2feca1b2bb870 (from https://pypi.org/simple/argon2-cffi/) (requires-python:>=3.5). Command errored out with exit status 1: /usr/local/bin/python /tmp/pip-standalone-pip-aee1cpp0/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l2__m43q/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement argon2-cffi==21.1.0 (from versions: 15.0.0b5, 15.0.0, 15.0.1, 16.0.0, 16.1.0, 16.2.0, 16.3.0, 18.1.0, 18.2.0, 18.3.0, 19.1.0, 19.2.0, 20.1.0, 21.1.0, 21.2.0, 21.3.0)
ERROR: No matching distribution found for argon2-cffi==21.1.0
heathdbrown commented 2 years ago

new Error seems to be happening when building

The command '/bin/sh -c pip install --disable-pip-version-check -r /requirements.txt' returned a non-zero code: 1
Building image suzieq-base:0.16.0
Sending build context to Docker daemon  303.5MB
Step 1/6 : FROM python:3.7.11-slim-buster AS sqbase
 ---> f79218f9ae44
Step 2/6 : ENV PATH=/root/.local/bin:$PATH
 ---> Using cache
 ---> 52b0c1f47f42
Step 3/6 : ENV PYTHONPATH=/root/.local/lib
 ---> Using cache
 ---> 7b9b26951cdf
Step 4/6 : RUN apt-get update &&     pip install --upgrade pip
 ---> Using cache
 ---> 44398c2eac70
Step 5/6 : COPY build/requirements.txt /requirements.txt
 ---> Using cache
 ---> 6f4c42c8af8e
Step 6/6 : RUN pip install --disable-pip-version-check -r /requirements.txt
 ---> Running in 9acafa665ae9
Ignoring appnope: markers 'sys_platform == "darwin" and python_version >= "3.7" and platform_system == "Darwin"' don't match your environment
Ignoring cffi: markers 'python_full_version >= "3.6.1" and python_version >= "3.7" and implementation_name == "pypy"' don't match your environment
Ignoring py: markers 'python_full_version >= "3.6.1" and python_version >= "3.7" and implementation_name == "pypy"' don't match your environment
Ignoring pywin32: markers 'sys_platform == "win32" and platform_python_implementation != "PyPy" and python_full_version >= "3.6.1" and python_version >= "3.7"' don't match your environment
Ignoring pywinpty: markers 'os_name == "nt" and python_version >= "3.7"' don't match your environment
Collecting aiofiles==0.8.0
  Downloading aiofiles-0.8.0-py3-none-any.whl (13 kB)
Collecting aiohttp==3.7.4
  Downloading aiohttp-3.7.4.tar.gz (1.1 MB)
  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 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting altair==4.1.0
  Downloading altair-4.1.0-py3-none-any.whl (727 kB)
Collecting argon2-cffi==21.1.0
  Downloading argon2-cffi-21.1.0.tar.gz (1.8 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /tmp/pip-standalone-pip-p5o9ym3z/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-udw5qwds/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0'
       cwd: None
  Complete output (126 lines):
  Collecting setuptools>=40.6.0
    Using cached setuptools-60.5.0-py3-none-any.whl (958 kB)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting cffi>=1.0
    Downloading cffi-1.15.0.tar.gz (484 kB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Collecting pycparser
    Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kwuznqw2
         cwd: /tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/
    Complete output (48 lines):
    unable to execute 'gcc': No such file or directory
    unable to execute 'gcc': No such file or directory

        No working compiler found, or bogus compiler options passed to
        the compiler from Python's standard "distutils" module.  See
        the error messages above.  Likely, the problem is not related
        to CFFI but generic to the setup.py of any Python package that
        tries to compile C code.  (Hints: on OS/X 10.8, for errors about
        -mno-fused-madd see http://stackoverflow.com/questions/22313407/
        Otherwise, see https://wiki.python.org/moin/CompLangPython or
        the IRC channel #python on irc.libera.chat.)

        Trying to continue anyway.  If you are trying to install CFFI from
        a build done in a different context, you can ignore this warning.

    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/c
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: pycparser, wheel, setuptools, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-zbz9924e/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-udw5qwds/overlay --compile --install-headers /tmp/pip-build-env-udw5qwds/overlay/include/python3.7m/cffi
           cwd: /tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/
      Complete output (48 lines):
      unable to execute 'gcc': No such file or directory
      unable to execute 'gcc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.libera.chat.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.7
      creating build/lib.linux-armv7l-3.7/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.7
      creating build/temp.linux-armv7l-3.7/c
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oq92ck41/cffi_9827037ad50b429d9e0dcef3173d6dcd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-zbz9924e/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-udw5qwds/overlay --compile --install-headers /tmp/pip-build-env-udw5qwds/overlay/include/python3.7m/cffi Check the logs for full command output.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7b/39/a26aaef5c3f0c6cfd67c80599b5b40a794fdab46f4ee3be925d71e2f9596/argon2-cffi-21.1.0.tar.gz#sha256=f710b61103d1a1f692ca3ecbd1373e28aa5e545ac625ba067ff2feca1b2bb870 (from https://pypi.org/simple/argon2-cffi/) (requires-python:>=3.5). Command errored out with exit status 1: /usr/local/bin/python /tmp/pip-standalone-pip-p5o9ym3z/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-udw5qwds/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement argon2-cffi==21.1.0 (from versions: 15.0.0b5, 15.0.0, 15.0.1, 16.0.0, 16.1.0, 16.2.0, 16.3.0, 18.1.0, 18.2.0, 18.3.0, 19.1.0, 19.2.0, 20.1.0, 21.1.0, 21.2.0, 21.3.0)
ERROR: No matching distribution found for argon2-cffi==21.1.0
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] commented 1 year ago

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.