ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Using on Raspberry Pi4:

core-2021.8.6
Home Assistant OS 6.2

I have an error that prevent me restarting Home Assistant Server. I don’t understand where the error is coming from exactly :

Logger: aiohttp.server
Source: components/influxdb/__init__.py:13 
First occurred: 17:34:42 (2 occurrences) 
Last logged: 17:42:02

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 84, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/core.py", line 29, in post
    errors = await async_check_ha_config_file(request.app["hass"])
  File "/usr/src/homeassistant/homeassistant/config.py", line 923, in async_check_ha_config_file
    res = await check_config.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 133, in async_check_ha_config_file
    component = integration.get_component()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 490, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/influxdb/__init__.py", line 13, in <module>
    from influxdb import InfluxDBClient, exceptions
  File "/usr/local/lib/python3.9/site-packages/influxdb/__init__.py", line 10, in <module>
    from .dataframe_client import DataFrameClient
  File "/usr/local/lib/python3.9/site-packages/influxdb/dataframe_client.py", line 12, in <module>
    import pandas
  File "/usr/local/lib/python3.9/site-packages/pandas/__init__.py", line 22, in <module>
    from pandas.compat import (
  File "/usr/local/lib/python3.9/site-packages/pandas/compat/__init__.py", line 15, in <module>
    from pandas.compat.numpy import (
  File "/usr/local/lib/python3.9/site-packages/pandas/compat/numpy/__init__.py", line 7, in <module>
    from pandas.util.version import Version
  File "/usr/local/lib/python3.9/site-packages/pandas/util/__init__.py", line 1, in <module>
    from pandas.util._decorators import (  # noqa
  File "/usr/local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 14, in <module>
    from pandas._libs.properties import cache_readonly  # noqa
  File "/usr/local/lib/python3.9/site-packages/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Looks like the InfluxDB integration (not addon) might not be set up correctly. Or it is having trouble communicating with the addon. Is the addon started? Have you tried restarting it? Can you show your sanitised influxdb integration config?

1 Like

I restarted the influxdb addon and it seems to work but I still have the same error in the log when I verify configuration or try to restart home server.

> 
> 
> [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
> [s6-init] ensuring user provided files have correct perms...exited 0.
> [fix-attrs.d] applying ownership & permissions fixes...
> [fix-attrs.d] done.
> [cont-init.d] executing container initialization scripts...
> [cont-init.d] 00-banner.sh: executing... 
> -----------------------------------------------------------
>  Add-on: InfluxDB
>  Scalable datastore for metrics, events, and real-time analytics
> -----------------------------------------------------------
>  Add-on version: 3.7.9
>  You are running the latest version of this add-on.
>  System: Home Assistant OS 6.2  (aarch64 / raspberrypi4-64)
>  Home Assistant Core: 2021.8.6
>  Home Assistant Supervisor: 2021.06.8
> -----------------------------------------------------------
>  Please, share the above information when looking for help
>  or support in, e.g., GitHub, forums or the Discord chat.
> -----------------------------------------------------------
> [cont-init.d] 00-banner.sh: exited 0.
> [cont-init.d] 01-log-level.sh: executing... 
> [cont-init.d] 01-log-level.sh: exited 0.
> [cont-init.d] create-users.sh: executing... 
> [cont-init.d] create-users.sh: exited 0.
> [cont-init.d] influxdb.sh: executing... 
> [cont-init.d] influxdb.sh: exited 0.
> [cont-init.d] kapacitor.sh: executing... 
> [cont-init.d] kapacitor.sh: exited 0.
> [cont-init.d] nginx.sh: executing... 
> [cont-init.d] nginx.sh: exited 0.
> [cont-init.d] done.
> [services.d] starting services
> [services.d] done.
> [19:13:35] INFO: Chronograf is waiting until InfluxDB is available...
> [19:13:35] INFO: Kapacitor is waiting until InfluxDB is available...
> [19:13:35] INFO: Starting the InfluxDB

Updated to Hole Assistant 2021.08.7 this morning and the problem has deseapered.

1 Like

After rebooting home assistant server, the error came back.

Found exactly save error message here:

Hi, I had the same issue and it was related with ha-samsungtv-tizen integration. After uninstalling worked again. A week later the owner upgraded requirements for numpy and now I have both influx and samsung working.

I hope this helps you.