frigate: [Support]: Import error with numpy
Describe the problem you are having
Trying to update to the RC1 docker image. I run compose and get an error saying that numpy failed to import
Version
0.12.0-rc1
Frigate config file
mqtt:
host: 192.168.1.193
user: USER
password: PASSWORD
record:
retain:
days: 15
mode: all
cameras:
# front_yard:
# ffmpeg:
# inputs:
# - path: rtsp://USERNAME:PASSWORD@192.168.1.XXX:554/h264Preview_01_main
# roles:
# - record
# - rtmp
# rtmp:
# enabled: False
driveway:
ffmpeg:
inputs:
- path: rtsp://USERNAE:PASSWORD@192.168.1.xxx:554/h264Preview_01_main
roles:
- record
- rtmp
rtmp:
enabled: False
Relevant log output
[+] Running 2/2
⠿ Network "frigate_default" Created 0.7s
⠿ frigate Created 1.7s
Attaching to frigate
frigate | s6-rc: info: service s6rc-fdholder: starting
frigate | s6-rc: info: service s6rc-oneshot-runner: starting
frigate | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate | s6-rc: info: service fix-attrs: starting
frigate | s6-rc: info: service s6rc-fdholder successfully started
frigate | s6-rc: info: service fix-attrs successfully started
frigate | s6-rc: info: service legacy-cont-init: starting
frigate | s6-rc: info: service legacy-cont-init successfully started
frigate | s6-rc: info: service log-prepare: starting
frigate | s6-rc: info: service log-prepare successfully started
frigate | s6-rc: info: service nginx-log: starting
frigate | s6-rc: info: service go2rtc-log: starting
frigate | s6-rc: info: service frigate-log: starting
frigate | s6-rc: info: service nginx-log successfully started
frigate | s6-rc: info: service frigate-log successfully started
frigate | s6-rc: info: service go2rtc-log successfully started
frigate | s6-rc: info: service go2rtc: starting
frigate | s6-rc: info: service go2rtc successfully started
frigate | s6-rc: info: service go2rtc-healthcheck: starting
frigate | s6-rc: info: service frigate: starting
frigate | s6-rc: info: service go2rtc-healthcheck successfully started
frigate | s6-rc: info: service frigate successfully started
frigate | s6-rc: info: service nginx: starting
frigate | s6-rc: info: service nginx successfully started
frigate | s6-rc: info: service legacy-services: starting
frigate | s6-rc: info: service legacy-services successfully started
frigate | 2023-03-30 14:09:21.640806100 [INFO] Starting Frigate...
frigate | 2023-03-30 14:09:21.640806100 [INFO] Preparing go2rtc config...
frigate | 2023-03-30 14:09:21.640806100 [INFO] Starting NGINX...
frigate | 2023-03-30 14:09:22.685940200 2023/03/30 14:09:22 [alert] 135#135: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.685981300 2023/03/30 14:09:22 [alert] 136#136: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.687376600 2023/03/30 14:09:22 [alert] 137#137: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.687905700 2023/03/30 14:09:22 [alert] 139#139: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.689715900 2023/03/30 14:09:22 [alert] 140#140: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.690296000 2023/03/30 14:09:22 [alert] 138#138: pthread_create() failed (1: Operation not permitted)
frigate | 2023-03-30 14:09:22.725120600 2023/03/30 14:09:22 [alert] 117#117: worker process 135 exited with fatal code 2 and cannot be respawned
frigate | 2023-03-30 14:09:22.725173200 2023/03/30 14:09:22 [alert] 117#117: worker process 136 exited with fatal code 2 and cannot be respawned
frigate | 2023-03-30 14:09:22.725199300 2023/03/30 14:09:22 [alert] 117#117: worker process 137 exited with fatal code 2 and cannot be respawned
frigate | 2023-03-30 14:09:22.725922500 2023/03/30 14:09:22 [alert] 117#117: worker process 139 exited with fatal code 2 and cannot be respawned
frigate | 2023-03-30 14:09:22.727780600 2023/03/30 14:09:22 [alert] 117#117: worker process 140 exited with fatal code 2 and cannot be respawned
frigate | 2023-03-30 14:09:22.731863900 2023/03/30 14:09:22 [alert] 117#117: worker process 138 exited with fatal code 2 and cannot be respawned
frigate | OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 6: Operation not permitted
frigate | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 6: Operation not permitted
frigate | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 6: Operation not permitted
frigate | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 6: Operation not permitted
frigate | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 6: Operation not permitted
frigate | OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | ImportError: numpy.core.multiarray failed to import
frigate | Traceback (most recent call last):
frigate | File "/usr/local/go2rtc/create_config.py", line 10, in <module>
frigate | from frigate.ffmpeg_presets import parse_preset_hardware_acceleration_encode
frigate | File "/opt/frigate/frigate/ffmpeg_presets.py", line 10, in <module>
frigate | from frigate.util import vainfo_hwaccel
frigate | File "/opt/frigate/frigate/util.py", line 19, in <module>
frigate | import cv2
frigate | File "/usr/local/lib/python3.9/dist-packages/cv2/__init__.py", line 8, in <module>
frigate | from .cv2 import *
frigate | ImportError: numpy.core.multiarray failed to import
frigate | 2023-03-30 14:09:24.749815500 [INFO] The go2rtc service exited with code 1 (by signal 0)
frigate | 2023-03-30 14:09:24.886014600 OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 6: Operation not permitted
frigate | 2023-03-30 14:09:24.886044900 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | 2023-03-30 14:09:24.886071100 OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 6: Operation not permitted
frigate | 2023-03-30 14:09:24.886096900 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | 2023-03-30 14:09:24.886122800 OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 6: Operation not permitted
frigate | 2023-03-30 14:09:24.886148300 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | 2023-03-30 14:09:24.886190300 OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 6: Operation not permitted
frigate | 2023-03-30 14:09:24.886214800 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | 2023-03-30 14:09:24.886239000 OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 6: Operation not permitted
frigate | 2023-03-30 14:09:24.886284600 OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
frigate | 2023-03-30 14:09:24.891027300 Traceback (most recent call last):
frigate | 2023-03-30 14:09:24.891056000 File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
frigate | 2023-03-30 14:09:24.891219900 return _run_code(code, main_globals, None,
frigate | 2023-03-30 14:09:24.891243400 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
frigate | 2023-03-30 14:09:24.891451200 exec(code, run_globals)
frigate | 2023-03-30 14:09:24.891478300 File "/opt/frigate/frigate/__main__.py", line 9, in <module>
frigate | 2023-03-30 14:09:24.891980600 from frigate.app import FrigateApp
frigate | 2023-03-30 14:09:24.892006300 File "/opt/frigate/frigate/app.py", line 17, in <module>
frigate | 2023-03-30 14:09:24.892030300 from frigate.comms.dispatcher import Communicator, Dispatcher
frigate | 2023-03-30 14:09:24.892054000 File "/opt/frigate/frigate/comms/dispatcher.py", line 9, in <module>
frigate | 2023-03-30 14:09:24.892081200 from frigate.config import FrigateConfig
frigate | 2023-03-30 14:09:24.892111800 File "/opt/frigate/frigate/config.py", line 9, in <module>
frigate | 2023-03-30 14:09:24.892796000 import matplotlib.pyplot as plt
frigate | 2023-03-30 14:09:24.892848300 File "/usr/local/lib/python3.9/dist-packages/matplotlib/__init__.py", line 108, in <module>
frigate | 2023-03-30 14:09:24.892943000 import numpy
frigate | 2023-03-30 14:09:24.892969800 File "/usr/local/lib/python3.9/dist-packages/numpy/__init__.py", line 144, in <module>
frigate | 2023-03-30 14:09:24.892994500 from . import core
frigate | 2023-03-30 14:09:24.893272100 File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 23, in <module>
frigate | 2023-03-30 14:09:24.893297400 from . import multiarray
frigate | 2023-03-30 14:09:24.893324400 File "/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py", line 10, in <module>
frigate | 2023-03-30 14:09:24.893351000 from . import overrides
frigate | 2023-03-30 14:09:24.893378600 File "/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py", line 6, in <module>
frigate | 2023-03-30 14:09:24.893686400 from numpy.core._multiarray_umath import (
frigate | 2023-03-30 14:09:24.893941000 KeyboardInterrupt
frigate | 2023-03-30 14:09:24.959317300 [INFO] Service Frigate exited with code 256 (by signal 2)
frigate | s6-rc: info: service legacy-services: stopping
frigate | s6-rc: info: service legacy-services successfully stopped
frigate | s6-rc: info: service nginx: stopping
frigate | s6-rc: info: service go2rtc-healthcheck: stopping
frigate | 2023-03-30 14:09:24.985178200 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
frigate | s6-rc: info: service go2rtc-healthcheck successfully stopped
frigate | 2023-03-30 14:09:24.991629900 [INFO] Service NGINX exited with code 0 (by signal 0)
frigate | s6-rc: info: service nginx successfully stopped
frigate | s6-rc: info: service nginx-log: stopping
frigate | s6-rc: info: service frigate: stopping
frigate | s6-rc: info: service frigate successfully stopped
frigate | s6-rc: info: service go2rtc: stopping
frigate | s6-rc: info: service frigate-log: stopping
frigate | s6-rc: info: service nginx-log successfully stopped
frigate | s6-rc: info: service go2rtc successfully stopped
frigate | s6-rc: info: service go2rtc-log: stopping
frigate | s6-rc: info: service go2rtc-log successfully stopped
frigate | s6-rc: info: service frigate-log successfully stopped
frigate | s6-rc: info: service log-prepare: stopping
frigate | s6-rc: info: service s6rc-fdholder: stopping
frigate | s6-rc: info: service log-prepare successfully stopped
frigate | s6-rc: info: service legacy-cont-init: stopping
frigate | s6-rc: info: service s6rc-fdholder successfully stopped
frigate | s6-rc: info: service legacy-cont-init successfully stopped
frigate | s6-rc: info: service fix-attrs: stopping
frigate | s6-rc: info: service fix-attrs successfully stopped
frigate | s6-rc: info: service s6rc-oneshot-runner: stopping
frigate | s6-rc: info: service s6rc-oneshot-runner successfully stopped
FFprobe output from your camera
ffprobe version 4.4.2 Copyright (c) 2007-2021 the FFmpeg developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-libzimg --enable-libzvbi --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-zlib --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-libdav1d --enable-libaom --enable-librav1e --enable-libsvtav1 --arch=x86_64 --enable-x86asm --enable-gpl --enable-postproc --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvidstab
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[rtsp @ 0x7fface813e00] max delay reached. need to consume packet
[rtsp @ 0x7fface813e00] RTP: missed 20 packets
[rtsp @ 0x7fface813e00] max delay reached. need to consume packet
[rtsp @ 0x7fface813e00] RTP: missed 60 packets
[h264 @ 0x7fface817a00] cabac decode of qscale diff failed at 29 80
[h264 @ 0x7fface817a00] error while decoding MB 29 80, bytestream 11712
[h264 @ 0x7fface817a00] concealing 164 DC, 164 AC, 164 MV errors in I frame
Input #0, rtsp, from 'rtsp://user:password@192.168.1.xxx:554/h264Preview_01_main':
Metadata:
title : Session streamed by "preview"
comment : h264Preview_01_main
Duration: N/A, start: 0.000313, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(progressive), 2304x1296, 24.92 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
Frigate stats
N/A
Operating system
Other
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Reolink 810A
Any other information that may be helpful
I had it running and camera working but no recordings on the stable docker container from docker hub. Wanted to try the beta to see if it would fix the recording problem and try out the UI.
I am running in docker on an old mac mini it does have the intel i7 with intel graphics and is 64 bit.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (2 by maintainers)
@NickM-27 @blakeblackshear I evidently had a really old version of docker. I updated and I am no longer getting the errors.