Home-Assistant - Dashboard does not open and Android app can't connect

Hi,
after I updated HA, the Dashboard stops at “loading data”.
When I try to login via Android app it says that the Mobile-App integration is not available.
I reinstalled it several times now, but it stays the same.

DietPi version | G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=0
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
Distro version | bookworm 1
Kernel version | Linux HyperPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture | armhf
SBC model | RPi 4 Model B (aarch64)

            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 685, in _load_services_files
    return [_load_services_file(hass, integration) for integration in integrations]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 663, in _load_services_file
    _SERVICES_SCHEMA(
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 330, in validate_mapping
    cval = cvalue(key_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 256, in _run
    return self._exec(self._compiled, value, path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 309, in _exec
    return func(path, v)
           ^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
           ^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 330, in validate_mapping
    cval = cvalue(key_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
           ^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 330, in validate_mapping
    cval = cvalue(key_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 256, in _run
    return self._exec(self._compiled, value, path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 309, in _exec
    return func(path, v)
           ^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
           ^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 330, in validate_mapping
    cval = cvalue(key_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 330, in validate_mapping
    cval = cvalue(key_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 590, in validate_sequence
    cval = validate(index_path, value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 256, in _run
    return self._exec(self._compiled, value, path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/validators.py", line 384, in _exec
    v = func(path, v)
        ^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
           ^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 164, in validate_supported_feature
    return _validate_option_or_feature(supported_feature, "supported feature")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 139, in _validate_option_or_feature
    base_components = _base_components()
                      ^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/helpers/service.py", line 88, in _base_components
    from homeassistant.components import (
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/components/camera/__init__.py", line 33, in <module>
    from homeassistant.components.stream import (
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 64, in <module>
    from .core import (
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/components/stream/core.py", line 15, in <module>
    import numpy as np
  File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

Dez 13 15:12:59 HyperPi Home Assistant[847]:   File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/components/stream/core.py", line 15, in <module>
Dez 13 15:12:59 HyperPi Home Assistant[847]:     import numpy as np
Dez 13 15:12:59 HyperPi Home Assistant[847]:   File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/numpy/__init__.py", line 119, in <module>
Dez 13 15:12:59 HyperPi Home Assistant[847]:     raise ImportError(msg) from e
Dez 13 15:12:59 HyperPi Home Assistant[847]: ImportError: Error importing numpy: you should not try to import numpy from
Dez 13 15:12:59 HyperPi Home Assistant[847]:         its source directory; please exit the numpy source tree, and relaunch
Dez 13 15:12:59 HyperPi Home Assistant[847]:         your python interpreter from there.
Dez 13 15:14:49 HyperPi Home Assistant[847]: 2024-12-13 15:14:49.683 ERROR (MainThread) [homeassistant.components.nmap_tracker] Nmap scanning failed: 'nmap program was not found in path. PATH is : /home/homeassistant/.pyenv/versions/3.12.7/bin:/home/homeassistant/.pyenv/libexec:/home/homeassistant/.pyenv/plugins/python-build/bin:/home/homeassistant/.cargo/bin:/home/homeassistant/.pyenv/shims:/home/homeassistant/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Dez 13 15:16:49 HyperPi Home Assistant[847]: 2024-12-13 15:16:49.682 ERROR (MainThread) [homeassistant.components.nmap_tracker] Nmap scanning failed: 'nmap program was not found in path. PATH is : /home/homeassistant/.pyenv/versions/3.12.7/bin:/home/homeassistant/.pyenv/libexec:/home/homeassistant/.pyenv/plugins/python-build/bin:/home/homeassistant/.cargo/bin:/home/homeassistant/.pyenv/shims:/home/homeassistant/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Dez 13 15:18:49 HyperPi Home Assistant[847]: 2024-12-13 15:18:49.684 ERROR (MainThread) [homeassistant.components.nmap_tracker] Nmap scanning failed: 'nmap program was not found in path. PATH is : /home/homeassistant/.pyenv/versions/3.12.7/bin:/home/homeassistant/.pyenv/libexec:/home/homeassistant/.pyenv/plugins/python-build/bin:/home/homeassistant/.cargo/bin:/home/homeassistant/.pyenv/shims:/home/homeassistant/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

What can I do here?

Thanks and regards
Hyper

pls can you share whole error log

home-assistant.log (2.8 MB)

Is the HA log enough or do u need other ones?

I reinstalled it again.
What’s really interesting is, that I can login via WebInterface if I try it right after the first startup when it was freshly reinstalled.
There are tons of config error messages and after about 5 minutes I am logged out and it stucks at loading screen.

First few lines from the log :sweat_smile:

2024-12-06 04:25:22.405 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration powercalc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.407 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration network_scanner which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.409 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration openweathermap_all which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.411 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwd_weather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.413 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration composite which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.415 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration measureit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.417 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.419 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration feedparser which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.421 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.423 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spook_inverse which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.425 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration huggingchat_conversation which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.427 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration magic_areas which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.431 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration switch_manager which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.433 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwd_pollenflug which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.436 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration saver which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.437 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration auto_backup which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.440 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.442 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.443 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webhook_service which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.445 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration watchman which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.447 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spook which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.449 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration philips_airpurifier_coap which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-12-06 04:25:22.451 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration entity_controller which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Did you try to disable any of these and see if its working then?

Then there are a lot of messages about no being able to load numpy and some other stuff, like

Setup failed for custom integration 'sonoff': Unable to import component: Exception importing custom_components.
Setup failed for custom integration 'dwd_weather': Unable to import component: Exception importing custom_components.dwd_weather
Traceback (most recent call last):
Setup failed for 'mobile_app': Unable to import component: Error importing numpy: you should not try to import numpy from

and a lot of other stuff, but for me it looks like numpy is the culprit and then it just cascades through all of your integrations.

You could try to reinstall numpy like shown in our docs:
https://dietpi.com/docs/software/home_automation/#home-assistant-customize-python-environment

Hi,
Yes, numpy seems to be the issue and makes all integrations fail. I tried now to force reinstall it which fails:

homeassistant@HyperPi:~$ pip3 install numpy --force-reinstall
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting numpy
  Downloading numpy-2.2.0.tar.gz (20.2 MB)
     ━━━━━━━━━━━━━━━━━━━━ 20.2/20.2 MB 31.3 MB/s eta 0:00:00  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      + /home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/vendored-meson/meson/meson.py setup /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73 /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/.mesonpy-xz87q5lb -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/.mesonpy-xz87q5lb/meson-python-native-file.ini
      The Meson build system
      Version: 1.5.2
      Source dir: /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73
      Build dir: /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/.mesonpy-xz87q5lb
      Build type: native build
      Project name: NumPy
      Project version: 2.2.0
      C compiler for the host machine: cc (gcc 12.2.0 "cc (Raspbian 12.2.0-14+rpi1) 12.2.0")
      C linker for the host machine: cc ld.bfd 2.40
      C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Raspbian 12.2.0-14+rpi1) 12.2.0")
      C++ linker for the host machine: c++ ld.bfd 2.40
      Cython compiler for the host machine: cython (cython 3.0.11)
      Host machine cpu family: arm
      Host machine cpu: arm
      Program python found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12)
      Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
      Run-time dependency python found: YES 3.12
      Has header "Python.h" with dependency python-3.12: YES      Compiler for C supports arguments -fno-strict-aliasing: YES
      Message: During parsing cpu-dispatch: The following CPU features were ignored due to platform incompatibility or lack of support:
      "XOP FMA4"
      Test features "NEON" : Supported
      Test features "NEON_FP16" : Supported
      Test features "NEON_VFPV4" : Supported
      Test features "ASIMD" : Unsupported due to Compiler fails against the test code of "ASIMD"
      Test features "ASIMDHP" : Unsupported due to Implied feature "ASIMD" is not supported
      Test features "ASIMDFHM" : Unsupported due to Implied feature "ASIMD" is not supported
      Test features "SVE" : Unsupported due to Implied feature "ASIMD" is not supported
      Configuring npy_cpu_dispatch_config.h using configuration
      Message:
      CPU Optimization Options
        baseline:
          Requested : min
          Enabled   :
        dispatch:
          Requested : max -xop -fma4
          Enabled   : NEON NEON_FP16 NEON_VFPV4

      Library m found: YES
      Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: YES 0.3.21
      Message: BLAS symbol suffix:
      Run-time dependency openblas found: YES 0.3.21
      Checking if "Check atomic builtins without -latomic" : links: NO
      Library atomic found: YES
      Checking if "Check atomic builtins with -latomic" with dependency -latomic: links: NO
      Program _build_utils/process_src_template.py found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/numpy/_build_utils/process_src_template.py)
      Program _build_utils/tempita.py found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/numpy/_build_utils/tempita.py)
      Configuring __config__.py using configuration

      ../numpy/_core/meson.build:145:31: ERROR: Can not run test applications in this cross environment.

      A full log can be found at /tmp/pip-install-rza6vram/numpy_c7a4ebf0056f44709dea87b3992e7c73/.mesonpy-xz87q5lb/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Can you try

pip3 install numpy --prefer-binary

:smiling_face_with_tear:

pip3 install numpy --prefer-binary --force-reinstall
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/
Collecting numpy
  Downloading numpy-2.2.0.tar.gz (20.2 MB)
     ━━━━━━━━━━━━━━━━━━━━ 20.2/20.2 MB 17.1 MB/s eta 0:00:00  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      + /home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/vendored-meson/meson/meson.py setup /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/.mesonpy-7x8d7syv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/.mesonpy-7x8d7syv/meson-python-native-file.ini
      The Meson build system
      Version: 1.5.2
      Source dir: /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b
      Build dir: /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/.mesonpy-7x8d7syv
      Build type: native build
      Project name: NumPy
      Project version: 2.2.0
      C compiler for the host machine: cc (gcc 12.2.0 "cc (Raspbian 12.2.0-14+rpi1) 12.2.0")
      C linker for the host machine: cc ld.bfd 2.40
      C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Raspbian 12.2.0-14+rpi1) 12.2.0")
      C++ linker for the host machine: c++ ld.bfd 2.40
      Cython compiler for the host machine: cython (cython 3.0.11)
      Host machine cpu family: arm
      Host machine cpu: arm
      Program python found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12)
      Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
      Run-time dependency python found: YES 3.12
      Has header "Python.h" with dependency python-3.12: YES      Compiler for C supports arguments -fno-strict-aliasing: YES
      Message: During parsing cpu-dispatch: The following CPU features were ignored due to platform incompatibility or lack of support:
      "XOP FMA4"
      Test features "NEON" : Supported
      Test features "NEON_FP16" : Supported
      Test features "NEON_VFPV4" : Supported
      Test features "ASIMD" : Unsupported due to Compiler fails against the test code of "ASIMD"
      Test features "ASIMDHP" : Unsupported due to Implied feature "ASIMD" is not supported
      Test features "ASIMDFHM" : Unsupported due to Implied feature "ASIMD" is not supported
      Test features "SVE" : Unsupported due to Implied feature "ASIMD" is not supported
      Configuring npy_cpu_dispatch_config.h using configuration
      Message:
      CPU Optimization Options
        baseline:
          Requested : min
          Enabled   :
        dispatch:
          Requested : max -xop -fma4
          Enabled   : NEON NEON_FP16 NEON_VFPV4

      Library m found: YES
      Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: YES 0.3.21
      Message: BLAS symbol suffix:
      Run-time dependency openblas found: YES 0.3.21
      Checking if "Check atomic builtins without -latomic" : links: NO
      Library atomic found: YES
      Checking if "Check atomic builtins with -latomic" with dependency -latomic: links: NO
      Program _build_utils/process_src_template.py found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/numpy/_build_utils/process_src_template.py)
      Program _build_utils/tempita.py found: YES (/home/homeassistant/.pyenv/versions/3.12.7/bin/python3.12 /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/numpy/_build_utils/tempita.py)
      Configuring __config__.py using configuration

      ../numpy/_core/meson.build:145:31: ERROR: Can not run test applications in this cross environment.

      A full log can be found at /tmp/pip-install-d0v1fy0d/numpy_64aebbf5164d4dccbe0ee00ef8d9068b/.mesonpy-7x8d7syv/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

OK looks like you always need to build it, there is no binary.

I’m not so familiar with building software, so somebody else needs to have a look at this.

Found "Can not run test applications in this cross environment" not consistent with meson.can_run_host_binaries() · Issue #13841 · mesonbuild/meson · GitHub looks like same issue.

It should be fixed in git.

As I see the issue is closed and there was a new release.
What do I have to do then?

maybe @MichaIng has an idea

The problem seems to be the usage of the 64-bit kernel on 32-bit OS, as the build fails with a hint that some check cannot be performed in “this cross environment”.

Can you try to switch to the 32-bit kernel:

G_CONFIG_INJECT 'arm_64bit=' 'arm_64bit=0' /boot/config.txt
reboot

Thanks to you all. :handshake: After changing

G_CONFIG_INJECT 'arm_64bit=' 'arm_64bit=0' /boot/config.txt

I was able to reinstall numpy and then the reinstallation of HA also succeeded.

1 Like

Thanks for testing. Also thanks @pulpe for the upstream link, good to know that it has been solved in this meson build system as well. The respective fix was released with meson v1.6.1, and numpy declares only a minimum version dependency:

So it the issue still happens without switching to the 32-bit kernel on 32-bit OS images, we’d need to check the exact meson version installed in the HA pyenv.