frigate: [Support]: Frigate fails to start, Runtime error with numpy

Describe the problem you are having

HA OS 9.4

Fails to start with errors around numpy

Version

Frigate (Full Access) Beta (0.12.0)

Frigate config file

mqtt:
  host: homeassistant.local
  user: ray
  password: password

ffmpeg:
  #hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/card0 -hwaccel_output_format yuv420p
  #hwaccel_args:
    #-hwaccel h264_rkmpp
    #-hwaccel_device /dev/dri/card0
    #-hwaccel_output_format yuv420p
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1

detect:
  width: 704
  height: 480
  fps: 5

snapshots:
  enabled: True

objects:
  filters:
    person:
      min_area: 800
  track:
    - car
    - person
    - dog

cameras:
  front_porch:
    motion:
      mask:
        - 0,0,0,74,70,52,173,32,274,29,416,33,530,57,653,92,704,85,704,0
    zones:
      front_street:
        coordinates: 139,39,163,31,206,36,247,23,327,25,416,34,515,51,592,72,644,89,674,97,658,172,634,163,566,138,443,112,286,76,144,86,142,66
        objects:
          - person
          - car
          - dog
      front_porch_area:
        coordinates: 0,480,0,76,140,41,140,82,258,86,430,111,652,172,704,90,704,480
        objects:
          - person
          - dog
    snapshots:
      required_zones:
        - front_street
        - front_porch_area
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.20:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

  driveway:
    motion:
      mask:
        - 0,0,704,0,704,166,0,184
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.21:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp
    zones:
      front_street:
        coordinates: 0,250,704,239,704,170,0,181
        objects:
          - person
          - car
          - dog
      driveway_area:
        coordinates: 704,480,0,480,0,226,704,233
        objects:
          - person
          - car
          - dog
    snapshots:
      required_zones:
        - front_street
        - driveway_area

  south_side:
    motion:
      mask:
        - 0,0,0,56,38,45,114,42,345,76,629,156,704,238,704,0
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.22:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

  back_north:
    motion:
      mask:
        - 626,173,630,156,629,134,543,110,449,97,316,69,171,67,78,63,0,79,0,0,704,0,704,203
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.23:554/cam/realmonitor?channel=1&subtype=1
          roles:
            - detect
            - rtmp

  garage:
    ffmpeg:
      inputs:
        - path: rtsp://admin:password@192.168.1.24:554/h264Preview_01_sub
          roles:
            - detect
            - rtmp

Relevant log output

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service go2rtc successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service frigate: starting
[INFO] Preparing go2rtc config...
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
[INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
[WARN] Failed to get IP address from supervisor
[INFO] Starting go2rtc...
2023-01-24 20:06:39.052740843  20:06:39.051 INF go2rtc version 0.1-rc.9 linux/arm
2023-01-24 20:06:39.065172311  20:06:39.061 INF [api] listen addr=:1984
2023-01-24 20:06:39.065214602  20:06:39.062 INF [rtsp] listen addr=:8554
2023-01-24 20:06:39.065239103  20:06:39.063 INF [webrtc] listen addr=:8555
2023-01-24 20:06:39.065255436  20:06:39.064 INF [srtp] listen addr=:8443
2023-01-24 20:06:39.863981461  RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
2023-01-24 20:06:39.864886215  Traceback (most recent call last):
2023-01-24 20:06:39.864958548    File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-01-24 20:06:39.866919140      return _run_code(code, main_globals, None,
2023-01-24 20:06:39.867631684    File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2023-01-24 20:06:39.867652393      exec(code, run_globals)
2023-01-24 20:06:39.867667851    File "/opt/frigate/frigate/__main__.py", line 9, in <module>
2023-01-24 20:06:39.869245774      from frigate.app import FrigateApp
2023-01-24 20:06:39.869988361    File "/opt/frigate/frigate/app.py", line 16, in <module>
2023-01-24 20:06:39.870009652      from frigate.comms.dispatcher import Communicator, Dispatcher
2023-01-24 20:06:39.870025986    File "/opt/frigate/frigate/comms/dispatcher.py", line 9, in <module>
2023-01-24 20:06:39.870978865      from frigate.config import FrigateConfig
2023-01-24 20:06:39.871000448    File "/opt/frigate/frigate/config.py", line 9, in <module>
2023-01-24 20:06:39.872434287      import matplotlib.pyplot as plt
2023-01-24 20:06:39.873153249    File "/usr/local/lib/python3.9/dist-packages/matplotlib/__init__.py", line 113, in <module>
2023-01-24 20:06:39.873874543      from . import _api, _version, cbook, _docstring, rcsetup
2023-01-24 20:06:39.873899043    File "/usr/local/lib/python3.9/dist-packages/matplotlib/rcsetup.py", line 27, in <module>
2023-01-24 20:06:39.874812547      from matplotlib.colors import Colormap, is_color_like
2023-01-24 20:06:39.874836464    File "/usr/local/lib/python3.9/dist-packages/matplotlib/colors.py", line 56, in <module>
2023-01-24 20:06:39.876267386      from matplotlib import _api, _cm, cbook, scale
2023-01-24 20:06:39.877000056    File "/usr/local/lib/python3.9/dist-packages/matplotlib/scale.py", line 22, in <module>
2023-01-24 20:06:39.877020764      from matplotlib.ticker import (
2023-01-24 20:06:39.877037681    File "/usr/local/lib/python3.9/dist-packages/matplotlib/ticker.py", line 138, in <module>
2023-01-24 20:06:39.878886855      from matplotlib import transforms as mtransforms
2023-01-24 20:06:39.879721900    File "/usr/local/lib/python3.9/dist-packages/matplotlib/transforms.py", line 49, in <module>
2023-01-24 20:06:39.879743776      from matplotlib._path import (
2023-01-24 20:06:39.879759526  ImportError: numpy.core.multiarray failed to import
Service Frigate exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
s6-rc: info: service nginx-log successfully stopped
2023-01-24 20:06:40.253380224  exit OK
s6-rc: info: service frigate-log successfully stopped
Service go2rtc exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

FFprobe output from your camera

none

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

amcrest

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (1 by maintainers)

Most upvoted comments

I get the same error on Docker 24.0.2 on a 64bit raspbian

root@pi4:~# docker --version
Docker version 24.0.2, build cb74dfc
root@pi4:~# uname -a
Linux pi4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

Same issue for me. Running Armbian on Odroid HC2. Worked fine before the upgrade.