Hello,
after many months without my server, i try to use smarthomeNG in production.
in the older version i loved used the interactive mode -i, but with the last version i cannot run smarthome in interactive :/
When i start with smarthome.py --start it work's well without interactive for sure.
I try with python 3.5 and 3.6 with same issue, i already upgrade all my python package with pip upgrade ... :/
Can you help me ?
Thanks a lot for your help
after many months without my server, i try to use smarthomeNG in production.
in the older version i loved used the interactive mode -i, but with the last version i cannot run smarthome in interactive :/
Code:
python3.6 bin/smarthome.py -i Python 3.6.1 (default, Jul 8 2017, 17:38:58) [GCC 4.7.2] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) sh.start() >>> [01/Nov/2018:08:58:15] ENGINE Bus STARTING [01/Nov/2018:08:58:15] ENGINE Serving on http://192.168.2.103:8384 [01/Nov/2018:08:58:15] ENGINE Serving on http://192.168.2.103:8383 [01/Nov/2018:08:58:15] ENGINE Bus STARTED Exception in thread Main: Traceback (most recent call last): File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/local/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "bin/smarthome.py", line 491, in start signal.signal(signal.SIGHUP, self.logics.reload_logics) File "/usr/local/lib/python3.6/signal.py", line 47, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread [01/Nov/2018:08:58:33] ENGINE Bus STOPPING [01/Nov/2018:08:58:33] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.2.103', 8384)) shut down [01/Nov/2018:08:58:33] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.2.103', 8383)) shut down [01/Nov/2018:08:58:33] ENGINE Bus STOPPED [01/Nov/2018:08:58:33] ENGINE Bus EXITING [01/Nov/2018:08:58:33] ENGINE Bus EXITED
I try with python 3.5 and 3.6 with same issue, i already upgrade all my python package with pip upgrade ... :/
Can you help me ?
Thanks a lot for your help
Kommentar