Erpnext Biometric Attendance Tool Error

Need to Fetch all the Attendance log from eSSL Biometric Device. so i have used
erpnext biometric attendance tool for all this process but when i try to run script with python3 erpnext_sync.py . i got error everytime like .
the ip i have config in local_config file is static and when i have check the ping of this ip in terminal it works.

Traceback (most recent call last):
File “/home/rakesh/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py”, line 229, in get_all_attendance_from_device
conn = zk.connect()
File “/home/rakesh/.local/lib/python3.10/site-packages/zk/base.py”, line 373, in connect
cmd_response = self.__send_command(const.CMD_CONNECT)
File “/home/rakesh/.local/lib/python3.10/site-packages/zk/base.py”, line 260, in __send_command
raise ZKNetworkError(str(e))
zk.exception.ZKNetworkError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/rakesh/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py”, line 90, in main
pull_process_and_push_data(device, device_attendance_logs)
File “/home/rakesh/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py”, line 135, in pull_process_and_push_data
device_attendance_logs = get_all_attendance_from_device(
File “/home/rakesh/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py”, line 259, in get_all_attendance_from_device
raise Exception(“Device fetch failed.”)
Exception: Device fetch failed.