octo4a
octo4a copied to clipboard
Build Error with cffi
I get build errors when trying to install Octo4a. Seems to be related to cffi?
🐸 Collecting argon2-cffi-bindings
🐸 Downloading argon2-cffi-bindings-21.2.0.tar.gz (1.8 MB)
🐸 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 3.4 MB/s eta 0:00:00
🐸 Installing build dependencies: started
🐸 Installing build dependencies: still running...
🐸 Installing build dependencies: still running...
🐸 Installing build dependencies: finished with status 'error'
🐸 error: subprocess-exited-with-error
🐸
🐸 × pip subprocess to install build dependencies did not run successfully.
🐸 │ exit code: 1
🐸 ╰─> [89 lines of output]
🐸 Collecting setuptools>=45
🐸 Using cached setuptools-69.5.1-py3-none-any.whl (894 kB)
🐸 Collecting setuptools_scm>=6.2
🐸 Downloading setuptools_scm-8.0.4-py3-none-any.whl (42 kB)
🐸 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 kB 155.4 kB/s eta 0:00:00
🐸 Collecting wheel
🐸 Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
🐸 Collecting cffi>=1.0.1
🐸 Downloading cffi-1.16.0.tar.gz (512 kB)
🐸 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 512.9/512.9 kB 926.6 kB/s eta 0:00:00
🐸 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'
🐸 Installing backend dependencies: started
🐸 Installing backend dependencies: finished with status 'done'
🐸 Preparing metadata (pyproject.toml): started
🐸 Preparing metadata (pyproject.toml): finished with status 'done'
🐸 Collecting tomli>=1
🐸 Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
🐸 Collecting packaging>=20
🐸 Using cached packaging-24.0-py3-none-any.whl (53 kB)
🐸 Collecting typing-extensions
🐸 Downloading typing_extensions-4.11.0-py3-none-any.whl (34 kB)
🐸 Collecting pycparser
🐸 Downloading pycparser-2.22-py3-none-any.whl (117 kB)
🐸 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 845.5 kB/s eta 0:00:00
🐸 Building wheels for collected packages: cffi
🐸 Building wheel for cffi (pyproject.toml): started
🐸 Building wheel for cffi (pyproject.toml): finished with status 'error'
🐸 error: subprocess-exited-with-error
🐸
🐸 × Building wheel for cffi (pyproject.toml) did not run successfully.
🐸 │ exit code: 1
🐸 ╰─> [48 lines of output]
🐸
🐸 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-cpython-310
🐸 creating build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/__init__.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_imp_emulation.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/api.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/commontypes.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/cparser.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/error.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/lock.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/model.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/recompiler.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/verifier.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_embedding.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 running build_ext
🐸 building '_cffi_backend' extension
🐸 creating build/temp.linux-armv7l-cpython-310
🐸 creating build/temp.linux-armv7l-cpython-310/src
🐸 creating build/temp.linux-armv7l-cpython-310/src/c
🐸 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -DTHREAD_STACK_SIZE=0x100000 -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-310/src/c/_cffi_backend.o
🐸 error: command 'gcc' failed: No such file or directory
🐸 [end of output]
🐸
🐸 note: This error originates from a subprocess, and is likely not a problem with pip.
🐸 ERROR: Failed building wheel for cffi
🐸 Failed to build cffi
🐸 ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
🐸 [end of output]
🐸
🐸 note: This error originates from a subprocess, and is likely not a problem with pip.
🐸 error: subprocess-exited-with-error
🐸
🐸 × pip subprocess to install build dependencies did not run successfully.
🐸 │ exit code: 1
🐸 ╰─> See above for output.
🐸
🐸 note: This error originates from a subprocess, and is likely not a problem with pip.
💻 An exception has occurred at:
java.lang.RuntimeException: Process exited with error code 1. [WARNING: linker: ./root/bin/proot: unused DT entr
at com.octo4a.utils.ProcessUtilsKt.waitAndPrintOutput(ProcessUtils.kt:43)
at com.octo4a.utils.ProcessUtilsKt.waitAndPrintOutput$default(ProcessUtils.kt:16)
at com.octo4a.repository.OctoPrintHandlerRepositoryImpl$beginInstallation$2.invokeSuspend(OctoPrintHandlerRepository.kt:168)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(Builders.common.kt:265)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:191)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:147)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:15)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Exception:
java.lang.RuntimeException: Process exited with error code 1. [WARNING: linker: ./root/bin/proot: unused DT entr
Here's the whole file if needed! <3 Octo4a.txt
Ditto on the error - installing octo4a 1.2.6 on an android 8.1 LG Q6
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
🐸 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 225.8 kB/s eta 0:00:00
🐸 Building wheels for collected packages: cffi
🐸 Building wheel for cffi (pyproject.toml): started
🐸 Building wheel for cffi (pyproject.toml): finished with status 'error'
🐸 error: subprocess-exited-with-error
🐸
🐸 × Building wheel for cffi (pyproject.toml) did not run successfully.
🐸 │ exit code: 1
🐸 ╰─> [48 lines of output]
🐸
🐸 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-cpython-310
🐸 creating build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/api.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/recompiler.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/model.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/verifier.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/init.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/error.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/commontypes.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/cparser.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/lock.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_imp_emulation.py -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_embedding.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 copying src/cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-310/cffi
🐸 running build_ext
🐸 building '_cffi_backend' extension
🐸 creating build/temp.linux-armv7l-cpython-310
🐸 creating build/temp.linux-armv7l-cpython-310/src
🐸 creating build/temp.linux-armv7l-cpython-310/src/c
🐸 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -Os -fomit-frame-pointer -g -O2 -DTHREAD_STACK_SIZE=0x100000 -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-310/src/c/_cffi_backend.o
🐸 error: command 'gcc' failed: No such file or directory
🐸 [end of output]
🐸
🐸 note: This error originates from a subprocess, and is likely not a problem with pip.
🐸 ERROR: Failed building wheel for cffi
🐸 Failed to build cffi
🐸 ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
🐸 [end of output]
🐸
🐸 note: This error originates from a subprocess, and is likely not a problem with pip.
🐸 error: subprocess-exited-with-error
🐸
🐸 × pip subprocess to install build dependencies did not run successfully.
🐸 │ exit code: 1
🐸 ╰─> See above for output.
https://github.com/feelfreelinux/octo4a/issues/483
Released https://github.com/feelfreelinux/octo4a/releases/tag/2.0.0 which should resolve this issue :)