Hello! I'm trying to run Django inside of the Sage python and import the sage libraries. (Idea: "Hey, look, a web server that can find derivatives!") The Django install into my Sage install went fine, but I'm getting an error when trying to import the Sage libraries: http://dpaste.com/1038581/
It sounds like this is because of the signal handling when importing sage.all produces some conflict with the signal handlers in the Django server thread. http://stackoverflow.com/questions/8572830/pythondjango-signal-handler-and-main-thread (Trying to run 'sage --python manage.py runserver --noreload' as suggested in that thread doesn't help.) The problem seems to be at: from sage.ext.c_lib import _init_csage, sig_on_count _init_csage() which is explicitly using the signal library and doing signal handling stuff for Sage. Any idea how deep this goes? Some of the online suggestions are about using some different libraries for signal handling, which might be a bit more sensitive about whether Sage is the main process or not. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.