sagemath / cysignals

cysignals: interrupt and signal handling for Cython. Source repository for https://pypi.org/project/cysignals/
GNU Lesser General Public License v3.0
43 stars 23 forks source link

cannot init_cysignals() in (embedded) python sub-shell #115

Open dimpase opened 5 years ago

dimpase commented 5 years ago

The scenario is the following: Macaulay2 starts a subprocess to run (Sage's) Python in, and then from sage.all import * stops with

ValueError: signal only works in main thread

coming from init_cysignals(). Is there a way around it?

Reported by @antonleykin