This seems to be back… I upgraded my venv to python 3.9 to prepare for the upcoming depreciation, and had all kinds of problems trying to get opencv-python-headless installed so decided to uninstall the integration until python 3.10 is supported by HA, but got an error (below)
I had to do the source compile of numpy to uninstall the integration.
As a side note is there a way to install the integration without any of the cameras so I can avoid opencv entirely?
*Edit - I re-added the integration and disabled the camera, and it didn’t need opencv.
Here is the error I got when removing it:
Nov 21 07:28:31 rpi04 hass[550]: 2021-11-21 07:28:31 ERROR (MainThread) [aiohttp.server] Error handling request
Nov 21 07:28:31 rpi04 hass[550]: Traceback (most recent call last):
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/numpy/core/__init__.py", line 22, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from . import multiarray
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from . import overrides
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from numpy.core._multiarray_umath import (
Nov 21 07:28:31 rpi04 hass[550]: ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /srv/homeassistant/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-arm-linux-gnueabihf.so)
Nov 21 07:28:31 rpi04 hass[550]: During handling of the above exception, another exception occurred:
Nov 21 07:28:31 rpi04 hass[550]: Traceback (most recent call last):
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
Nov 21 07:28:31 rpi04 hass[550]: resp = await self._request_handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
Nov 21 07:28:31 rpi04 hass[550]: resp = await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 78, in ban_middleware
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/auth.py", line 138, in auth_middleware
Nov 21 07:28:31 rpi04 hass[550]: return await handler(request)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/http/view.py", line 135, in handle
Nov 21 07:28:31 rpi04 hass[550]: result = await result
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/config/config_entries.py", line 71, in delete
Nov 21 07:28:31 rpi04 hass[550]: result = await hass.config_entries.async_remove(entry_id)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/config_entries.py", line 822, in async_remove
Nov 21 07:28:31 rpi04 hass[550]: await entry.async_remove(self.hass)
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/config_entries.py", line 478, in async_remove
Nov 21 07:28:31 rpi04 hass[550]: component = integration.get_component()
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 522, in get_component
Nov 21 07:28:31 rpi04 hass[550]: cache[self.domain] = importlib.import_module(self.pkg_path)
Nov 21 07:28:31 rpi04 hass[550]: File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
Nov 21 07:28:31 rpi04 hass[550]: return _bootstrap._gcd_import(name[level:], package, level)
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap_external>", line 850, in exec_module
Nov 21 07:28:31 rpi04 hass[550]: File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/environment_canada/__init__.py", line 6, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from env_canada import ECRadar, ECWeather, ec_exc
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/env_canada/__init__.py", line 4, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from .ec_radar import *
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/env_canada/ec_radar.py", line 11, in <module>
Nov 21 07:28:31 rpi04 hass[550]: import imageio
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/imageio/__init__.py", line 22, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from .core.imopen import imopen
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/imageio/core/__init__.py", line 10, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from .util import Image, Array, Dict, asarray, image_as_uint, urlopen
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/imageio/core/util.py", line 10, in <module>
Nov 21 07:28:31 rpi04 hass[550]: import numpy as np
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/numpy/__init__.py", line 150, in <module>
Nov 21 07:28:31 rpi04 hass[550]: from . import core
Nov 21 07:28:31 rpi04 hass[550]: File "/srv/homeassistant/lib/python3.9/site-packages/numpy/core/__init__.py", line 48, in <module>
Nov 21 07:28:31 rpi04 hass[550]: raise ImportError(msg)
Nov 21 07:28:31 rpi04 hass[550]: ImportError:
Nov 21 07:28:31 rpi04 hass[550]: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Nov 21 07:28:31 rpi04 hass[550]: Importing the numpy C-extensions failed. This error can happen for
Nov 21 07:28:31 rpi04 hass[550]: many reasons, often due to issues with your setup or how NumPy was
Nov 21 07:28:31 rpi04 hass[550]: installed.
Nov 21 07:28:31 rpi04 hass[550]: We have compiled some common reasons and troubleshooting tips at:
Nov 21 07:28:31 rpi04 hass[550]: https://numpy.org/devdocs/user/troubleshooting-importerror.html
Nov 21 07:28:31 rpi04 hass[550]: Please note and check the following:
Nov 21 07:28:31 rpi04 hass[550]: * The Python version is: Python3.9 from "/srv/homeassistant/bin/python3.9"
Nov 21 07:28:31 rpi04 hass[550]: * The NumPy version is: "1.21.4"
Nov 21 07:28:31 rpi04 hass[550]: and make sure that they are the versions you expect.
Nov 21 07:28:31 rpi04 hass[550]: Please carefully study the documentation linked above for further help.
Nov 21 07:28:31 rpi04 hass[550]: Original error was: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /srv/homeassistant/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-arm-linux-gnueabihf.so)
Thanks!