Zm EventNotification Error

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
parsmanlin
Posts: 6
Joined: Tue Jul 11, 2023 4:39 am

Zm EventNotification Error

Post by parsmanlin »

I have installed zoneminder and opencv gpu, but when I type the following command, it gives an error and does not run, what is the problem?

Ubuntu 22.04.2 LTS
ZoneMinder v1.36.33
Opencv 4.8 ( CUDA Version: 12.1 )
Python 3.10.6

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh  1 1
Traceback (most recent call last):
  File "/var/lib/zmeventnotification/bin/zm_detect.py", line 15, in <module>
    import imutils
  File "/usr/local/lib/python3.10/dist-packages/imutils/__init__.py", line 8, in <module>
    from .convenience import translate
  File "/usr/local/lib/python3.10/dist-packages/imutils/convenience.py", line 65, in <module>
    def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
AttributeError: module 'cv2' has no attribute 'INTER_AREA'
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Zm EventNotification Error

Post by Magic919 »

Sounds like you messed up the OpenCV install and missed something off.
-
parsmanlin
Posts: 6
Joined: Tue Jul 11, 2023 4:39 am

Re: Zm EventNotification Error

Post by parsmanlin »

Magic919 wrote: Tue Jul 11, 2023 7:38 am Sounds like you messed up the OpenCV install and missed something off.
No, all compilation steps were completed without errors.

(opencv_cuda):
>>> import cv2
>>> cv2.__version__
'4.8.0'
User avatar
makers_mark
Posts: 21
Joined: Sun Jul 05, 2020 7:23 pm

Re: Zm EventNotification Error

Post by makers_mark »

parsmanlin wrote: Tue Jul 11, 2023 5:14 am I have installed zoneminder and opencv gpu, but when I type the following command, it gives an error and does not run, what is the problem?

Ubuntu 22.04.2 LTS
ZoneMinder v1.36.33
Opencv 4.8 ( CUDA Version: 12.1 )
Python 3.10.6

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh  1 1
Traceback (most recent call last):
  File "/var/lib/zmeventnotification/bin/zm_detect.py", line 15, in <module>
    import imutils
  File "/usr/local/lib/python3.10/dist-packages/imutils/__init__.py", line 8, in <module>
    from .convenience import translate
  File "/usr/local/lib/python3.10/dist-packages/imutils/convenience.py", line 65, in <module>
    def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
AttributeError: module 'cv2' has no attribute 'INTER_AREA'
Do you have other old manual installations?
parsmanlin
Posts: 6
Joined: Tue Jul 11, 2023 4:39 am

Re: Zm EventNotification Error

Post by parsmanlin »

No, I did the installation process myself with the latest updates and the problem was solved.
Post Reply