Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

ValueError: signal only works in main thread #111

@bin

Description

@bin

Describe the bug
When running on arch linux with /opt/botamusique/venv/bin/python /opt/botamusique/mumbleBot.py --config /opt/botamusique/configuration.ini, python version 3.8, 3.7, or 3.6, I get the following error: Exception in thread WebThread: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/opt/botamusique/mumbleBot.py", line 586, in start_web_interface interface.web.run(port=port, host=addr) File "/opt/botamusique/venv/lib/python3.6/site-packages/flask/app.py", line 990, in run run_simple(host, port, self, **options) File "/opt/botamusique/venv/lib/python3.6/site-packages/werkzeug/serving.py", line 1050, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File "/opt/botamusique/venv/lib/python3.6/site-packages/werkzeug/_reloader.py", line 330, in run_with_reloader signal.signal(signal.SIGTERM, lambda *args: sys.exit(0)) File "/usr/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

Affected version
Tested on latest release and commit ID d24f109.

To Reproduce
Run the above command described on arch with python 3.6, 3.7, or 3.8.

Expected behavior
The web interface starts.

Happy to provide any additional info as needed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions