Creating a bug report/issue
Required Information
-
DietPi version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=12
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘applied’ -
Distro version
bullseye 1 -
Kernel version
Linux DietPi 4.14.58v7-aufs #1 SMP Sat Jul 28 20:40:59 CEST 2018 armv7l GNU/Linux -
SBC model
RPi 3 Model B (armv7l) -
Power supply used | 5V 1A
SD card used Kingston class 1
Additional Information (if applicable)
- Software title
Home Assistant - Was the software title installed freshly or updated/migrated?
Yes - Can this issue be replicated on a fresh installation of DietPi?
Yes
I am running dietpi under berryboot environment. I have tried install home assistant 2 different times but both times similar error. Unfortunately reinstall option doesn’t work for me as dietpi backup fails dur to lack of aufs filesystem support. so basically uninstalled first version and tried installing again. But getting same error. Let me know if you need any additional information.
Steps to reproduce
Use Home Assistant software from dietpi-softwares install.
Expected behaviour
Home Assistant should be installed with no error in logs
Actual behaviour
Multiple errors are reported in logs. One of them was pointing to numpy not able to install.
Extra details
To get numpy installed, I have tried activating python environment and install numpy manually but got following error.
sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install numpy
homeassistant@DietPi:~$ pip3 install numpy
Collecting numpy
Downloading numpy-1.24.1.tar.gz (10.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 3.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [281 lines of output]
Running from numpy source directory.
setup.py:67: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/mtrand.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_sfc64.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/_mt19937.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_common.pyx
Processing numpy/random/_bounded_integers.pyx.in
Cythonizing sources
INFO: blas_opt_info:
INFO: blas_armpl_info:
INFO: customize UnixCCompiler
INFO: libraries armpl_lp64_mp not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: blas_mkl_info:
INFO: libraries mkl_rt not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: blis_info:
INFO: libraries blis not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_info:
INFO: libraries openblas not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: accelerate_info:
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries tatlas not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf/atlas', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_blas_info:
INFO: libraries satlas not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf/atlas', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: atlas_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries ptf77blas,ptcblas,atlas not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf/atlas', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: atlas_blas_info:
INFO: get_default_fcompiler: matching types: '['arm', 'gnu95', 'intel', 'lahey', 'pg', 'nv', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor', 'fujitsu']'
INFO: customize ArmFlangCompiler
WARN: Could not locate executable armflang
INFO: customize Gnu95FCompiler
WARN: Could not locate executable gfortran
WARN: Could not locate executable f95
INFO: customize IntelFCompiler
WARN: Could not locate executable ifort
WARN: Could not locate executable ifc
INFO: customize LaheyFCompiler
WARN: Could not locate executable lf95
INFO: customize PGroupFCompiler
WARN: Could not locate executable pgfortran
INFO: customize NVHPCFCompiler
WARN: Could not locate executable nvfortran
INFO: customize AbsoftFCompiler
WARN: Could not locate executable f90
WARN: Could not locate executable f77
INFO: customize NAGFCompiler
INFO: customize VastFCompiler
INFO: customize CompaqFCompiler
WARN: Could not locate executable fort
INFO: customize IntelItaniumFCompiler
WARN: Could not locate executable efort
WARN: Could not locate executable efc
INFO: customize IntelEM64TFCompiler
INFO: customize GnuFCompiler
WARN: Could not locate executable g77
INFO: customize G95FCompiler
WARN: Could not locate executable g95
INFO: customize PathScaleFCompiler
WARN: Could not locate executable pathf95
INFO: customize NAGFORCompiler
WARN: Could not locate executable nagfor
INFO: customize FujitsuFCompiler
WARN: Could not locate executable frt
WARN: don't know how to compile Fortran code on platform 'posix'
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
INFO: C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
INFO: compile options: '-c'
INFO: gcc: _configtest.c
INFO: gcc -pthread _configtest.o -L/usr/lib/arm-linux-gnueabihf -lf77blas -lcblas -latlas -o _configtest
INFO: FOUND:
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
INFO: libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
INFO: library_dirs = ['/usr/lib/arm-linux-gnueabihf']
INFO:
INFO: FOUND:
INFO: language = c
INFO: define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
INFO: libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
INFO: library_dirs = ['/usr/lib/arm-linux-gnueabihf']
INFO:
non-existing path in 'numpy/distutils': 'site.cfg'
INFO: lapack_opt_info:
INFO: lapack_armpl_info:
INFO: libraries armpl_lp64_mp not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: lapack_mkl_info:
INFO: libraries mkl_rt not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_lapack_info:
INFO: libraries openblas not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_clapack_info:
INFO: libraries openblas,lapack not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: flame_info:
INFO: libraries flame not found in ['/home/homeassistant/.pyenv/versions/3.10.9/lib', '/usr/local/lib', '/usr/lib', '/usr/lib/arm-linux-gnueabihf']
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries tatlas,tatlas not found in /home/homeassistant/.pyenv/versions/3.10.9/lib
INFO: libraries tatlas,tatlas not found in /usr/local/lib
INFO: libraries tatlas,tatlas not found in /usr/lib
INFO: libraries tatlas,tatlas not found in /usr/lib/arm-linux-gnueabihf/atlas
INFO: libraries tatlas,tatlas not found in /usr/lib/arm-linux-gnueabihf
INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_info:
INFO: libraries satlas,satlas not found in /home/homeassistant/.pyenv/versions/3.10.9/lib
INFO: libraries satlas,satlas not found in /usr/local/lib
INFO: libraries satlas,satlas not found in /usr/lib
INFO: libraries satlas,satlas not found in /usr/lib/arm-linux-gnueabihf/atlas
INFO: libraries satlas,satlas not found in /usr/lib/arm-linux-gnueabihf
INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries ptf77blas,ptcblas,atlas not found in /home/homeassistant/.pyenv/versions/3.10.9/lib
INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/lib
INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/lib/arm-linux-gnueabihf/atlas
INFO: libraries ptf77blas,ptcblas,atlas not found in /usr/lib/arm-linux-gnueabihf
INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_info:
INFO: libraries f77blas,cblas,atlas not found in /home/homeassistant/.pyenv/versions/3.10.9/lib
INFO: libraries f77blas,cblas,atlas not found in /usr/local/lib
INFO: libraries f77blas,cblas,atlas not found in /usr/lib
INFO: libraries f77blas,cblas,atlas not found in /usr/lib/arm-linux-gnueabihf/atlas
INFO: <class 'numpy.distutils.system_info.atlas_info'>
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
INFO: C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
INFO: compile options: '-c'
INFO: gcc: _configtest.c
INFO: gcc -pthread _configtest.o -L/usr/lib/arm-linux-gnueabihf -lf77blas -lcblas -latlas -o _configtest
INFO: FOUND:
INFO: language = f77
INFO: libraries = ['lapack', 'f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
INFO: library_dirs = ['/usr/lib/arm-linux-gnueabihf']
INFO: define_macros = [('NO_ATLAS_INFO', -1)]
INFO:
INFO: FOUND:
INFO: language = f77
INFO: libraries = ['lapack', 'f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
INFO: library_dirs = ['/usr/lib/arm-linux-gnueabihf']
INFO: define_macros = [('NO_ATLAS_INFO', -1)]
INFO:
Warning: attempted relative import with no known parent package
/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
INFO: build_src
INFO: building py_modules sources
creating build
creating build/src.linux-armv7l-3.10
creating build/src.linux-armv7l-3.10/numpy
creating build/src.linux-armv7l-3.10/numpy/distutils
INFO: building library "npymath" sources
[Errno 2] No such file or directory: 'g++'
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 479, in <module>
setup_package()
File "setup.py", line 471, in setup_package
setup(**metadata)
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
dist.run_commands()
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/command/build.py", line 62, in run
old_build.run(self)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-ohg5ms6c/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "/tmp/pip-install-zlrfzyu3/numpy_28f411b33fec4cba9f28e22b91558003/numpy/core/setup.py", line 755, in get_mathlib_info
raise RuntimeError(
RuntimeError: Broken toolchain: cannot link a simple C++ program. note: A compiler with support for C++11 language features is required.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
=============================================================================
Additional errors from home assisant logs
=============================================================================
Logger: homeassistant.setup
Source: setup.py:200
First occurred: December 26, 2022 at 11:49:51 PM (1 occurrences)
Last logged: December 26, 2022 at 11:49:51 PM
Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, mobile_app
Logger: homeassistant.setup
Source: setup.py:202
First occurred: December 26, 2022 at 11:49:45 PM (3 occurrences)
Last logged: December 26, 2022 at 11:49:51 PM
* Setup failed for cloud: Requirements for camera not found: ['PyTurboJPEG==1.6.7'].
* Setup failed for mobile_app: Requirements for camera not found: ['PyTurboJPEG==1.6.7'].
* Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: cloud, mobile_app')
Logger: homeassistant
Source: requirements.py:162
First occurred: December 27, 2022 at 8:52:46 AM (12 occurrences)
Last logged: December 27, 2022 at 8:52:46 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 226, in async_init
flow, result = await task
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/data_entry_flow.py", line 244, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/config_entries.py", line 829, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/setup.py", line 379, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/requirements.py", line 51, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/requirements.py", line 162, in async_get_integration_with_requirements
raise IntegrationNotFound(domain)
homeassistant.loader.IntegrationNotFound: Integration 'wemo' not found.
Logger: homeassistant.util.package
Source: util/package.py:98
First occurred: December 26, 2022 at 11:42:44 PM (9 occurrences)
Last logged: December 27, 2022 at 7:32:32 PM
* Unable to install package PyTurboJPEG==1.6.7: error: subprocess-exited-with-error × Building wheel for numpy (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [281 lines of output] Running from numpy source directory. setup.py:86: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html import numpy.distutils.command.sdist Processing numpy/random/_bounded_integers.pxd.in