On 04/22/2010 11:38 AM, VictorMiller wrote:
I have some old Python programs that I've been using, and would like
to use them as part of SAGE. One particular function I have uses the
standard python module subprocess to call an external program, and
then process the output from that. This has worked fine in python for
a number of years (through various python version changes). However,
when I try to use it from within SAGE, when subprocess is finished
with the process and it tries to close the process handle it gets an
error
OSError: [Errno 2] No such file or directory.
[Actually I'm not sure if it's even able to spawn the process at all]
Is there a known issue with using subprocess from within SAGE?
What if you invoke them using sage -python? That will just launch the
Sage's version of python, and will narrow down the problem to being
(possibly) just a problem with python 2.6.4 (the version that comes with
Sage).
Thanks,
Jason
--
Jason Grout
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org