Hi everyone, I got this error when I tried to run the ‘sudo python3 erpnext_sync.py’
2024-07-22 16:41:46,438 ERROR exception when calling pull_process_and_push_data function for device{"device_id": "K30/ID", "ip": "192.168.1.201", "punch_direction": "AUTO", "clear_from_device_on_fetch": false}
Traceback (most recent call last):
File "/home/syngo/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 62, in main
pull_process_and_push_data(device, device_attendance_logs)
File "/home/syngo/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 86, in pull_process_and_push_data
attendance_success_logger = setup_logger(attendance_success_log_file, '/'.join([config.LOGS_DIRECTORY, attendance_success_log_file])+'.log')
File "/home/syngo/frappe-bench/biometric-attendance-sync-tool/erpnext_sync.py", line 281, in setup_logger
handler = RotatingFileHandler(log_file, maxBytes=10000000, backupCount=50)
File "/usr/lib/python3.10/logging/handlers.py", line 155, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
File "/usr/lib/python3.10/logging/handlers.py", line 58, in __init__
logging.FileHandler.__init__(self, filename, mode=mode,
File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: '/home/syngo/frappe-bench/biometric-attendance-sync-tool/logs/attendance_success_log_K30/ID.log'
Please help me with it, thank you.