fredrikbaberg / ha-3dprinter-addons

3DPrinter-related add-ons for Home Assistant.
14 stars 1 forks source link

Error during install #67

Closed mattia480 closed 1 year ago

mattia480 commented 1 year ago

Describe the issue you are experiencing

I tried installing on Home Assistant, but got an error while installing. Running on Home Assistant Supervised on Raspberry Pi4.

Which add-on are you reporting an issue with?

3DPrinter-OctoPrint

What is the version of the add-on?

2023.03.0

Steps to reproduce the issue

  1. Add repository to addon list
  2. Istall 3dprinter-octoprint
  3. Start the Addon

Anything in the add-on logs that might be useful?

s6-rc: info: service s6rc-oneshot-runner: starting,
s6-rc: info: service s6rc-oneshot-runner successfully started,
s6-rc: info: service fix-attrs: starting,
s6-rc: info: service fix-attrs successfully started,
s6-rc: info: service legacy-cont-init: starting,
cont-init: info: running /etc/cont-init.d/octoprint.sh,
/etc/cont-init.d/octoprint.sh: line 9: octoprint: command not found,
/etc/cont-init.d/octoprint.sh: line 12: python: command not found,
Collecting wheel,
  Downloading wheel-0.40.0-py3-none-any.whl (64 kB),
Installing collected packages: wheel,
Successfully installed wheel-0.40.0,
Collecting octoprint==1.8.7,
  Downloading OctoPrint-1.8.7-py2.py3-none-any.whl (3.9 MB),
Collecting OctoPrint-FirmwareCheck>=2021.10.11,
  Downloading OctoPrint_FirmwareCheck-2021.10.11-py2.py3-none-any.whl (33 kB),
Collecting future<1,>=0.18.2,
  Downloading future-0.18.3.tar.gz (840 kB),
Collecting zeroconf<0.34,>=0.33,
  Downloading zeroconf-0.33.4-py3-none-any.whl (89 kB),
Collecting zipstream-ng<2.0.0,>=1.3.4,
  Downloading zipstream_ng-1.4.0-py3-none-any.whl (21 kB),
Collecting watchdog<2,>=1,
  Downloading watchdog-1.0.2-py3-none-manylinux2014_armv7l.whl (72 kB),
Collecting unidecode,
  Downloading Unidecode-1.3.6-py3-none-any.whl (235 kB),
Collecting pylru<2,>=1.2,
  Downloading pylru-1.2.1-py3-none-any.whl (16 kB),
Collecting pyserial<4,>=3.4,
  Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB),
Collecting markdown<4,>=3.2.2,
  Downloading Markdown-3.4.1-py3-none-any.whl (93 kB),
Collecting sentry-sdk<2,>=1.5.7,
  Downloading sentry_sdk-1.17.0-py2.py3-none-any.whl (189 kB),
Collecting passlib<2,>=1.7.4,
  Downloading passlib-1.7.4-py2.py3-none-any.whl (525 kB),
Collecting regex,
  Downloading regex-2022.10.31.tar.gz (391 kB),
Collecting emoji<2,>=1.4.2,
  Downloading emoji-1.7.0.tar.gz (175 kB),
Collecting semantic-version<3,>=2.8.5,
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB),
Collecting OctoPrint-PiSupport>=2022.6.13,
  Downloading OctoPrint_PiSupport-2022.6.13-py2.py3-none-any.whl (33 kB),
Collecting pathvalidate<3,>=2.4.1,
  Downloading pathvalidate-2.5.2-py3-none-any.whl (20 kB),
Collecting Flask-Login<0.6,>=0.5,
  Downloading Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB),
Collecting colorlog<7,>=6,
  Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB),
Collecting Flask-Assets<3,>=2.0,
  Downloading Flask_Assets-2.0-py3-none-any.whl (8.5 kB),
Collecting blinker<2,>=1.4,
  Downloading blinker-1.5-py2.py3-none-any.whl (12 kB),
Collecting OctoPrint-FileCheck>=2021.2.23,
  Downloading OctoPrint_FileCheck-2021.2.23-py2.py3-none-any.whl (19 kB),
Collecting websocket-client<2,>=1.2.1,
  Downloading websocket_client-1.5.1-py3-none-any.whl (55 kB),
Collecting argon2-cffi<22,>=21.3.0,
  Downloading argon2_cffi-21.3.0-py3-none-any.whl (14 kB),
Collecting tornado<7,>=6.0.4,
  Downloading tornado-6.2.tar.gz (504 kB),
  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 wheel metadata: started,
    Preparing wheel metadata: finished with status 'done',
Collecting werkzeug<2.1,>=2.0,
  Downloading Werkzeug-2.0.3-py3-none-any.whl (289 kB),
Collecting requests<3,>=2.26.0,
  Downloading requests-2.28.2-py3-none-any.whl (62 kB),
Collecting wrapt<1.15,>=1.14,
  Downloading wrapt-1.14.1.tar.gz (50 kB),
Collecting cachelib<0.3,>=0.2,
  Downloading cachelib-0.2.0-py3-none-any.whl (12 kB),
Collecting flask<2.2,>=2.1,
  Downloading Flask-2.1.3-py3-none-any.whl (95 kB),
Collecting Flask-Babel<3,>=2.0,
  Downloading Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB),
Collecting Click<9,>=8.0.3,
  Downloading click-8.1.3-py3-none-any.whl (96 kB),
Collecting feedparser<7,>=6.0.8,
  Downloading feedparser-6.0.10-py3-none-any.whl (81 kB),
Collecting Flask-Limiter<3,>=2.6,
  Downloading Flask_Limiter-2.9.2-py3-none-any.whl (27 kB),
Collecting PyYAML<6,>=5.4.1,
  Downloading PyYAML-5.4.1.tar.gz (175 kB),
  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 wheel metadata: started,
    Preparing wheel metadata: finished with status 'done',
Collecting sarge==0.1.6,
  Downloading sarge-0.1.6.tar.gz (26 kB),
Collecting frozendict<3,>=2.0,
  Downloading frozendict-2.3.5.tar.gz (309 kB),
Collecting psutil<6,>=5.8,
  Downloading psutil-5.9.4.tar.gz (485 kB),
  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 wheel metadata: started,
    Preparing wheel metadata: finished with status 'done',
Collecting netaddr<0.9,>=0.8,
  Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB),
Collecting netifaces<1,>=0.11,
  Downloading netifaces-0.11.0.tar.gz (30 kB),
Collecting filetype<2,>=1.0.7,
  Downloading filetype-1.2.0-py2.py3-none-any.whl (19 kB),
Collecting pkginfo<2,>=1.7.1,
  Downloading pkginfo-1.9.6-py3-none-any.whl (30 kB),
Collecting argon2-cffi-bindings,
  Downloading argon2-cffi-bindings-21.2.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: /data/python/octoprint/bin/python3 /data/python/octoprint/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j_nvye70/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=45' 'setuptools_scm>=6.2' wheel 'cffi>=1.0.1',
       cwd: None,
  Complete output (110 lines):,
  Collecting setuptools>=45,
    Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB),
  Collecting setuptools_scm>=6.2,
    Downloading setuptools_scm-7.1.0-py3-none-any.whl (43 kB),
  Collecting wheel,
    Using cached wheel-0.40.0-py3-none-any.whl (64 kB),
  Collecting cffi>=1.0.1,
    Downloading cffi-1.15.1.tar.gz (508 kB),
  Collecting pycparser,
    Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB),
  Collecting packaging>=20.0,
    Downloading packaging-23.0-py3-none-any.whl (42 kB),
  Collecting tomli>=1.0.0,
    Downloading tomli-2.0.1-py3-none-any.whl (12 kB),
  Collecting typing-extensions,
    Downloading typing_extensions-4.5.0-py3-none-any.whl (27 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: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/setup.py'"'"'; __file__='"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/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-dim8edyt,
         cwd: /tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/,
    Complete output (38 lines):,
    running bdist_wheel,
    running build,
    running build_py,
    Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt,
    Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt,
    creating build,
    creating build/lib.linux-armv7l-3.9,
    creating build/lib.linux-armv7l-3.9/cffi,
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi,
    running build_ext,
    building '_cffi_backend' extension,
    creating build/temp.linux-armv7l-3.9,
    creating build/temp.linux-armv7l-3.9/c,
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/data/python/octoprint/include -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o,
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory,
       15 | #include <ffi.h>,
          |          ^~~~~~~,
    compilation terminated.,
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1,
    ----------------------------------------,
    ERROR: Failed building wheel for cffi,
    Running setup.py clean for cffi,
  Failed to build cffi,
  Installing collected packages: typing-extensions, tomli, setuptools, pycparser, packaging, wheel, setuptools-scm, 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: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/setup.py'"'"'; __file__='"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/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-uj6qvth8/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-j_nvye70/overlay --compile --install-headers /tmp/pip-build-env-j_nvye70/overlay/include/site/python3.9/cffi,
           cwd: /tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/,
      Complete output (36 lines):,
      running install,
      running build,
      running build_py,
      creating build,
      creating build/lib.linux-armv7l-3.9,
      creating build/lib.linux-armv7l-3.9/cffi,
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi,
      running build_ext,
      building '_cffi_backend' extension,
      creating build/temp.linux-armv7l-3.9,
      creating build/temp.linux-armv7l-3.9/c,
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/data/python/octoprint/include -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o,
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory,
         15 | #include <ffi.h>,
            |          ^~~~~~~,
      compilation terminated.,
      error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1,
      ----------------------------------------,
  ERROR: Command errored out with exit status 1: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/setup.py'"'"'; __file__='"'"'/tmp/pip-install-olcux_jt/cffi_148ce4d8dc564a3d82a2f9ee25d37284/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-uj6qvth8/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-j_nvye70/overlay --compile --install-headers /tmp/pip-build-env-j_nvye70/overlay/include/site/python3.9/cffi Check the logs for full command output.,
  ----------------------------------------,
WARNING: Discarding https://files.pythonhosted.org/packages/b9/e9/184b8ccce6683b0aa2fbb7ba5683ea4b9c5763f1356347f1312c32e3c66e/argon2-cffi-bindings-21.2.0.tar.gz#sha256=bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3 (from https://pypi.org/simple/argon2-cffi-bindings/) (requires-python:>=3.6). Command errored out with exit status 1: /data/python/octoprint/bin/python3 /data/python/octoprint/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j_nvye70/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=45' 'setuptools_scm>=6.2' wheel 'cffi>=1.0.1' Check the logs for full command output.,
  Downloading argon2-cffi-bindings-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: /data/python/octoprint/bin/python3 /data/python/octoprint/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z0ng_qe4/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=45' 'setuptools_scm>=6.2' wheel 'cffi>=1.0',
       cwd: None,
  Complete output (110 lines):,
  Collecting setuptools>=45,
    Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB),
  Collecting setuptools_scm>=6.2,
    Using cached setuptools_scm-7.1.0-py3-none-any.whl (43 kB),
  Collecting wheel,
    Using cached wheel-0.40.0-py3-none-any.whl (64 kB),
  Collecting cffi>=1.0,
    Using cached cffi-1.15.1.tar.gz (508 kB),
  Collecting pycparser,
    Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB),
  Collecting packaging>=20.0,
    Using cached packaging-23.0-py3-none-any.whl (42 kB),
  Collecting tomli>=1.0.0,
    Using cached tomli-2.0.1-py3-none-any.whl (12 kB),
  Collecting typing-extensions,
    Using cached typing_extensions-4.5.0-py3-none-any.whl (27 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: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/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-z7u9wrtn,
         cwd: /tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/,
    Complete output (38 lines):,
    running bdist_wheel,
    running build,
    running build_py,
    Generating grammar tables from /usr/lib/python3.9/lib2to3/Grammar.txt,
    Generating grammar tables from /usr/lib/python3.9/lib2to3/PatternGrammar.txt,
    creating build,
    creating build/lib.linux-armv7l-3.9,
    creating build/lib.linux-armv7l-3.9/cffi,
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi,
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi,
    running build_ext,
    building '_cffi_backend' extension,
    creating build/temp.linux-armv7l-3.9,
    creating build/temp.linux-armv7l-3.9/c,
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/data/python/octoprint/include -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o,
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory,
       15 | #include <ffi.h>,
          |          ^~~~~~~,
    compilation terminated.,
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1,
    ----------------------------------------,
    ERROR: Failed building wheel for cffi,
    Running setup.py clean for cffi,
  Failed to build cffi,
  Installing collected packages: typing-extensions, tomli, setuptools, pycparser, packaging, wheel, setuptools-scm, 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: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/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-2loknpv_/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-z0ng_qe4/overlay --compile --install-headers /tmp/pip-build-env-z0ng_qe4/overlay/include/site/python3.9/cffi,
           cwd: /tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/,
      Complete output (36 lines):,
      running install,
      running build,
      running build_py,
      creating build,
      creating build/lib.linux-armv7l-3.9,
      creating build/lib.linux-armv7l-3.9/cffi,
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi,
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi,
      running build_ext,
      building '_cffi_backend' extension,
      creating build/temp.linux-armv7l-3.9,
      creating build/temp.linux-armv7l-3.9/c,
      arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/data/python/octoprint/include -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o,
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory,
         15 | #include <ffi.h>,
            |          ^~~~~~~,
      compilation terminated.,
      error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1,
      ----------------------------------------,
  ERROR: Command errored out with exit status 1: /data/python/octoprint/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ec54953x/cffi_34fa5400a75c43acbfd63632d6a59106/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-2loknpv_/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-z0ng_qe4/overlay --compile --install-headers /tmp/pip-build-env-z0ng_qe4/overlay/include/site/python3.9/cffi Check the logs for full command output.,
  ----------------------------------------,
WARNING: Discarding https://files.pythonhosted.org/packages/fe/c7/1796c08bc2834424326bec6fffb81bd082cb6c78b278fd0a55b2a09b0454/argon2-cffi-bindings-21.1.0.tar.gz#sha256=5b3c72b092761e9aa8a8335096c409e9d68d127ae64520848d1d9d47459c4650 (from https://pypi.org/simple/argon2-cffi-bindings/) (requires-python:>=3.6). Command errored out with exit status 1: /data/python/octoprint/bin/python3 /data/python/octoprint/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z0ng_qe4/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=45' 'setuptools_scm>=6.2' wheel 'cffi>=1.0' Check the logs for full command output.,
INFO: pip is looking at multiple versions of sarge to determine which version is compatible with other requirements. This could take a while.,
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.,
INFO: pip is looking at multiple versions of octoprint to determine which version is compatible with other requirements. This could take a while.,
ERROR: Could not find a version that satisfies the requirement argon2-cffi-bindings (from argon2-cffi),
ERROR: No matching distribution found for argon2-cffi-bindings,
cont-init: info: /etc/cont-init.d/octoprint.sh exited 1,
cont-init: info: running /etc/cont-init.d/proxy.sh,
cont-init: info: /etc/cont-init.d/proxy.sh exited 0,
cont-init: warning: some scripts exited nonzero,
s6-rc: warning: unable to start service legacy-cont-init: command exited 1,
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.,
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.,
s6-rc: info: service fix-attrs: stopping,
s6-rc: info: service fix-attrs successfully stopped,
s6-rc: info: service s6rc-oneshot-runner: stopping,
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Additional information

No response

fredrikbaberg commented 1 year ago

That's strange, could be that I didn't notice it since I'm using a different architecture. I'll look into it, seems to be a missing dependency.

fredrikbaberg commented 1 year ago

I think I've found a solution to this, just want to check some things first. I'll get back on this tomorrow.

fredrikbaberg commented 1 year ago

Building now, it should be possible to update in 10-15 minutes. Please let me know if it doesn't help.

mattia480 commented 1 year ago

I confirm that now it works like a charm. Thank you so much @fredrikbaberg for the quick support!