【发布时间】:2019-03-18 00:46:45
【问题描述】:
我在本地运行 pantheon,在 Linux 中遇到过这样的问题。在 subprocess.py 中发生错误引发 child_exception。他们有解决这个问题的办法吗?文件 tunnel_manager.py 是这样的:
from subprocess import Popen, PIPE
if cmd[2] == 'mm-tunnelclient' or cmd[2] == 'mm-tunnelserver':
# expand home directory
for i in xrange(len(cmd_to_run)):
if ('--ingress-log' in cmd_to_run[i] or
'--egress-log' in cmd_to_run[i]):
t = cmd_to_run[i].split('=')
cmd_to_run[i] = t[0] + '=' + path.expanduser(t[1])
procs[tun_id] = Popen(cmd_to_run, stdin=PIPE,
stdout=PIPE, preexec_fn=os.setsid)
【问题讨论】:
-
cmd_to_run的值是多少? -
尝试使用您正在运行的程序的完整路径名。