radinsky / broadlink-http-rest

Broadlink RM/RM2/RM Pro/RM3/BlackBean/A1 Web server with REST API (like..)
MIT License
156 stars 47 forks source link

'module' object has no attribute 'SIGUSR1' #21

Closed Harel-M closed 6 years ago

Harel-M commented 6 years ago

Hi, when running the script I get the following error:

Traceback (most recent call last): File "server.py", line 523, in signal.signal(signal.SIGUSR1,SigUsr1) AttributeError: 'module' object has no attribute 'SIGUSR1'

If I'm deleting line 523 the script is working... but I guess there should be better solution. I'm working on Windows 10. Maybe I'm missing any dependency package?

Thanks,

radinsky commented 6 years ago

@uudruid74 any chance you can take a look on it?

uudruid74 commented 6 years ago

Yes, SIGUSR1 is used to restart the server when a config has been changed. I guess Windows doesn't support it. I'll try to make it conditional