Address some runtime issues

This commit is contained in:
Daniel Nowak 2024-05-08 22:57:28 -04:00
parent 6f25bc3b36
commit 7f057de53d
3 changed files with 9 additions and 2 deletions

View File

@ -155,6 +155,8 @@ RUN PIP_IGNORE_INSTALLED=0 pip3 install -r /requirements.txt
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps filterpy norfair==2.1.1 RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps filterpy norfair==2.1.1
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps onvif
RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps zeep==3.0.0 onvif_zeep RUN PIP_IGNORE_INSTALLED=0 pip3 install --no-deps zeep==3.0.0 onvif_zeep
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
@ -191,6 +193,8 @@ RUN --mount=type=bind,source=docker/main/install_deps.sh,target=/deps/install_de
COPY --from=wheels /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages COPY --from=wheels /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY --from=wheels /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages COPY --from=wheels /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages
COPY --from=wheels /usr/share/matplotlib /usr/share/matplotlib
COPY --from=wheels /etc/matplotlibrc /etc/matplotlibrc
RUN --mount=type=bind,from=wheels,source=/wheels,target=/deps/wheels \ RUN --mount=type=bind,from=wheels,source=/wheels,target=/deps/wheels \
python3 -m pip install --upgrade pip && \ python3 -m pip install --upgrade pip && \

View File

@ -14,7 +14,10 @@ apt-get -qq install --no-install-recommends -y \
python3-pip \ python3-pip \
curl \ curl \
jq \ jq \
nethogs nethogs \
libopencv-*4.5
# libopencv-core4.5 libopencv-contrib4.5 libopencv-shape4.5 libopencv-stitching4.5
# ensure python3 defaults to python3.9 # ensure python3 defaults to python3.9
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1

View File

@ -19,7 +19,7 @@ class DetectionTypeEnum(str, Enum):
class DetectionProxyRunner(threading.Thread): class DetectionProxyRunner(threading.Thread):
def __init__(self, context: zmq.Context[zmq.Socket]) -> None: def __init__(self, context ) -> None:
threading.Thread.__init__(self) threading.Thread.__init__(self)
self.name = "detection_proxy" self.name = "detection_proxy"
self.context = context self.context = context