Frappe Cloud Support Partners Foundation Frappe School

ERPNext Biometric Integration Windows Service Error

Hi, manually when is run in cmd line it works.

When installed as a windows service and try to start the service. The below msg displays,


Below is the error details which i got in event log,

Python could not import the service’s module
Traceback (most recent call last):
File “C:\TimeAttendance\biometric-attendance-sync-tool-master\”, line 4, in
from erpnext_sync import main
File “C:\TimeAttendance\biometric-attendance-sync-tool-master\”, line 305, in
status = pickledb.load(’/’.join([config.LOGS_DIRECTORY, ‘status.json’]), True)
File “C:\Program Files\Python36\lib\site-packages\”, line 43, in load
return PickleDB(location, auto_dump, sig)
File “C:\Program Files\Python36\lib\site-packages\”, line 57, in init
File “C:\Program Files\Python36\lib\site-packages\”, line 77, in set_sigterm_handler
signal.signal(signal.SIGTERM, sigterm_handler)
File “C:\Program Files\Python36\lib\”, line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
%2: %3

I have the same problem! Did you resolve it? Thank you