Zm problem after upgrade to python3

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
stonygate
Posts: 15
Joined: Wed Mar 05, 2014 1:52 pm

Zm problem after upgrade to python3

Post by stonygate »

I had a problem with python, I had to reinstall it, unfortunately it caused zoneminder problems.
in practice zoneminder deletes the recordings after a very short time (I have no active filters), in the fail log I always find the same entries:

Code: Select all

21-02-14 19:29:29.394687	zmesdetect_m2		283845	FAT	error: Traceback:Traceback (most recent call last): File "/usr/lib/python3.8/urllib/request.py", line 1350, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.8/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.8/http/client.py", line 950, in send self.connect() File "/usr/lib/python3.8/http/client.py", line 1417, in connect super().connect() File "/usr/lib/python3.8/http/client.py", line 921, in connect self.sock = self._create_connection( File "/usr/lib/python3.8/socket.py", line 787, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 242, in main_handler filename1, filename2, filename1_bbox, filename2_bbox = utils.download_files( File "/usr/local/lib/python3.8/dist-packages/zmes_hook_helpers/utils.py", line 178, in download_files input_file = opener.open(url) File "/usr/lib/python3.8/urllib/request.py", line 525, in open response = self._open(req, data) File "/usr/lib/python3.8/urllib/request.py", line 542, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain result = func(*args) File "/usr/lib/python3.8/urllib/request.py", line 1393, in https_open return self.do_open(http.client.HTTPSConnection, req, File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open raise URLError(err) urllib.error.URLError:	zm_detect.py	246
2021-02-14 19:29:29.269214	zmesdetect_m2		283845	ERR	Error downloading files:	zm_detect.py	245
What can I do?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Zm problem after upgrade to python3

Post by Magic919 »

Thanks not ZM. The logs are for https://zmeventnotification.readthedocs.io/en/latest/

Run through the manual checks and look for any Python related dependencies.
-
Post Reply