Try ERPNext Buy Support Partners Foundation

ERPNext Biometric Integration Windows Service Error

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

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

windows-service-msg

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\erpnext_sync_win.py”, line 4, in
from erpnext_sync import main
File “C:\TimeAttendance\biometric-attendance-sync-tool-master\erpnext_sync.py”, line 305, in
status = pickledb.load(’/’.join([config.LOGS_DIRECTORY, ‘status.json’]), True)
File “C:\Program Files\Python36\lib\site-packages\pickledb.py”, line 43, in load
return PickleDB(location, auto_dump, sig)
File “C:\Program Files\Python36\lib\site-packages\pickledb.py”, line 57, in init
self.set_sigterm_handler()
File “C:\Program Files\Python36\lib\site-packages\pickledb.py”, line 77, in set_sigterm_handler
signal.signal(signal.SIGTERM, sigterm_handler)
File “C:\Program Files\Python36\lib\signal.py”, line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
%2: %3