Unable to install hx711-rpi-py
PeturCh opened this issue · 0 comments
Hi,
I'm using RPi Zero 2 with Bullseye Lite x64 and Python 3.9.2.
After downloading, building and installing the cpp lib and running the ldconfig command I am still not able to install the library. It stuck (freezes) here:
`
pip3 --verbose install --upgrade hx711-rpi-py
Using pip 24.1.2 from /home/trep/.local/lib/python3.9/site-packages/pip (python 3.9)
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting hx711-rpi-py
Using cached hx711-rpi-py-1.65.0.tar.gz (6.7 kB)
Running command pip subprocess to install build dependencies
Using pip 24.1.2 from /home/trep/.local/lib/python3.9/site-packages/pip (python 3.9)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
Collecting bump2version>=1.0.1
Using cached https://www.piwheels.org/simple/bump2version/bump2version-1.0.1-py2.py3-none-any.whl (22 kB)
Collecting setuptools>=42
Using cached https://www.piwheels.org/simple/setuptools/setuptools-71.1.0-py3-none-any.whl (2.3 MB)
Collecting wheel
Using cached https://www.piwheels.org/simple/wheel/wheel-0.43.0-py3-none-any.whl (65 kB)
Collecting pybind11>=2.7.0
Using cached https://www.piwheels.org/simple/pybind11/pybind11-2.13.1-py3-none-any.whl (238 kB)
Installing collected packages: wheel, setuptools, pybind11, bump2version
Creating /tmp/pip-build-env-jta0_2os/overlay/bin
changing mode of /tmp/pip-build-env-jta0_2os/overlay/bin/wheel to 755
changing mode of /tmp/pip-build-env-jta0_2os/overlay/bin/pybind11-config to 755
changing mode of /tmp/pip-build-env-jta0_2os/overlay/bin/bump2version to 755
changing mode of /tmp/pip-build-env-jta0_2os/overlay/bin/bumpversion to 755
Successfully installed bump2version-1.0.1 pybind11-2.13.1 setuptools-71.1.0 wheel-0.43.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing src/hx711_rpi_py.egg-info/PKG-INFO
writing dependency_links to src/hx711_rpi_py.egg-info/dependency_links.txt
writing top-level names to src/hx711_rpi_py.egg-info/top_level.txt
reading manifest file 'src/hx711_rpi_py.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src/hx711_rpi_py.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info
writing /tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-csz1ist0/hx711_rpi_py-1.65.0.dist-info'
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: hx711-rpi-py
Running command Building wheel for hx711-rpi-py (pyproject.toml)
running bdist_wheel
running build
running build_ext
building 'HX711' extension
creating build
creating build/temp.linux-aarch64-cpython-39
creating build/temp.linux-aarch64-cpython-39/src
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-jta0_2os/overlay/lib/python3.9/site-packages/pybind11/include -I/usr/include/python3.9 -c src/bindings.cpp -o build/temp.linux-aarch64-cpython-39/src/bindings.o -fvisibility=hidden -g0
aarch64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
error: subprocess-exited-with-error
× Building wheel for hx711-rpi-py (pyproject.toml) 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.
full command: /usr/bin/python3 /home/trep/.local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpq6fsyl_t
cwd: /tmp/pip-install-ml6jsv_1/hx711-rpi-py_f07c8925c5624cfd85f082d15c839adf
Building wheel for hx711-rpi-py (pyproject.toml) ... error
ERROR: Failed building wheel for hx711-rpi-py
Failed to build hx711-rpi-py
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (hx711-rpi-py)
`