Emacs, PyX, and Python together result in a dead Python
novak at dionysus.ucolick.org
Thu Nov 18 02:51:34 CET 2004
I realize that this is a pretty esoteric question, but I'm not even
getting any traction on it by myself. I believe that the problem has
to do with signal handling for programs run underneath Python, and how
these signals may (or may not) percolate up to higher levels, which
for me means Emacs.
PyX is a Python package for drawing graphs
(http://pyx.sourceforge.net). It runs TeX behind the scenes to
When I run python as an inferior process under Emacs and try to use
PyX, I get a mysterious error:
Process Python hangup
and the Python process is dead. My suspicion is that this has
something to do with the fact that PyX is running TeX behind the
scenes, but I can't confirm that. Another useful piece of information
is that if I run a plain old inferior shell under Emacs and then run
Python, it works. Perusing the python-mode.el, shell-mode.el, and
comint.el source files didn't produce an obvious reason for the
different behavior. Nor can I find the snippet of code that's
actually producing this error message.
I'm running emacs 21.3, the stock python-shell.el mode, and PyX 0.7.
I run Python with 'M-x py-shell'
If anyone sees fit to reply to this, please copy to my e-mail address
as well, novak at ucolick.org.
More information about the Python-list