ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
413 stars 129 forks source link

Error after 5.16.0-upgrade. #290

Closed jonasrubensson closed 4 years ago

jonasrubensson commented 4 years ago

Just updated to version 5.16.0 and I am getting below error.

The version of ZoneMinder you are using: 1.35.5

What is the nature of your issue

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh 25948 1 Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 310, in m = object_detection.Object(logger=g.logger, options=g.config) File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/object.py", line 26, in init self.model = yolo.Yolo(options=options, logger=logger) File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 55, in init self.lock.acquire() File "/usr/local/lib/python3.6/dist-packages/portalocker/utils.py", line 328, in acquire filenames = self.get_filenames() File "/usr/local/lib/python3.6/dist-packages/portalocker/utils.py", line 303, in get_filenames return [self.get_filename(n) for n in range(self.maximum)] TypeError: 'NoneType' object cannot be interpreted as an integer

jonasrubensson commented 4 years ago

Forgot to print logs:

==> /var/log/zm/zmesdetect_m1.log <== 08/02/20 21:32:49 zmesdetect_m1[19836] INF zm_detect.py:185 [---------| hook version: 0.1.21, ES version: 5.16.0 , OpenCV version: 4.4.0-pre|------------] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG1 utils.py:297 [secret filename: /etc/zm/secrets.ini] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:270 [Secret token found in config: !ZM_PORTAL] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:270 [Secret token found in config: !ZM_API_PORTAL] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:270 [Secret token found in config: !ZM_USER] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:270 [Secret token found in config: !ZM_PASSWORD] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:270 [Secret token found in config: !PLATEREC_ALPR_KEY] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG1 utils.py:318 [allowing self-signed certs to work...] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:382 [key [object_config] is '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg' after substitution] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:382 [key [object_weights] is '/var/lib/zmeventnotification/models/yolov4/yolov4.weights' after substitution] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:382 [key [object_labels] is '/var/lib/zmeventnotification/models/yolov4/coco.names' after substitution] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:382 [key [known_images_path] is '/var/lib/zmeventnotification/known_faces' after substitution] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG2 utils.py:382 [key [unknown_images_path] is '/var/lib/zmeventnotification/unknown_faces' after substitution] 08/02/20 21:32:50 zmesdetect_m1[19836] INF zm_detect.py:214 [Importing local classes for Object/Face] 08/02/20 21:32:50 zmesdetect_m1[19836] DBG1 utils.py:173 [Trying to download https://mydomain/zm/index.php?view=image&eid=25948&fid=alarm&username=user&password=] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 utils.py:192 [Trying to download https://mydomain/zm/index.php?view=image&eid=25948&fid=snapshot&username=user&password=] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 zm_detect.py:271 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1920, 0), (1920, 1080), (0, 1080)]}]] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 zm_detect.py:274 [resizing to 1200 before analysis...] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG2 utils.py:38 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (1200, 0), (1200, 675), (0, 675)]}]] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 zm_detect.py:295 [User ALPR if vehicle found: False] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 yolo.py:38 [Using CPU for detection] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 yolo.py:40 [Initializing Yolo] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG2 yolo.py:42 [config:/var/lib/zmeventnotification/models/yolov4/yolov4.cfg, weights:/var/lib/zmeventnotification/models/yolov4/yolov4.weights] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG2 yolo.py:50 [Semaphore: max:None, name:pyzm_cpu # or gpu_lock, timeout:120] 08/02/20 21:32:51 zmesdetect_m1[19836] DBG1 yolo.py:54 [Waiting for cpu # or gpu lock...]

pliablepixels commented 4 years ago

I haven’t released 5.16 yet. But https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html

jonasrubensson commented 4 years ago

Ok, then I will revert my update and wait until it is released. :)

pliablepixels commented 4 years ago

Note that even when I release it officially you’ll still have to read and follow breaking.md. The master is mostly stable.