Description
Issue guidelines
- I've read the Issue Guidelines and wholeheartedly agree.
Issue Checklist
- I have searched open or closed issues for my problem and found nothing related or helpful.
- I have read the Documentation and found nothing related to my problem.
- I have gone through the Bonus Examples and FAQs and found nothing related or helpful.
Describe your Question
In my code, I used Netgear for video transfer in the cloud. On that code, I received a NetGear thread error in the long run.
Terminal log output(Optional)
Exception in thread NetGear:
Traceback (most recent call last):
File "C:\Users\SchneiderElectric\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\SchneiderElectric\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "C:\DefectScanner\venv3\Lib\site-packages\vidgear\gears\netgear.py", line 972, in __recv_handler
msg_json = self.__msg_socket.recv_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\DefectScanner\venv3\Lib\site-packages\zmq\sugar\socket.py", line 941, in recv_json
msg = self.recv(flags)
^^^^^^^^^^^^^^^^
File "zmq\backend\cython\socket.pyx", line 809, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 845, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 199, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\socket.pyx", line 194, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\checkrc.pxd", line 22, in zmq.backend.cython.checkrc._check_rc
zmq.error.Again: Resource temporarily unavailable
Python Code(Optional)
from vidgear.gears import NetGear
options = {"max_retries":2,"request_timeout":5,"flag":1,"copy": False, "track": False}
client = NetGear(receive_mode=True, address="0.0.0.0", port="12345",protocol="tcp",pattern=1,**options,)
frame = client.recv()
VidGear Version
0.3.2
Python version
3.11.6
Operating System version
windows10
Any other Relevant Information?
I dont want to use pattern 2 and how can I solve this error or how can I catch this error in a try, exception block pls suggest