You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread Thread-1 (test):
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/Users/joaander/test/test-gsd-thread.py", line 4, intest
import gsd
File "/Users/joaander/venv/lib/python3.11/site-packages/gsd/__init__.py", line 21, in<module>
signal.signal(signal.SIGTERM, lambda n, f: sys.exit(1))
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/signal.py", line 56, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: signal only works in main thread of the main interpreter
Expected output
none
Platform
Linux, macOS
Installation method
PyPI package
GSD
3.0.0
Python version
3.11.3
The text was updated successfully, but these errors were encountered:
Description
ValueError: signal only works in main thread of the main interpreter
when importing gsd in a non-main thread.Script
Input files
No response
Output
Expected output
none
Platform
Linux, macOS
Installation method
PyPI package
GSD
3.0.0
Python version
3.11.3
The text was updated successfully, but these errors were encountered: