Python子流程检查调用退出状态48

2024-09-29 22:18:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试用python运行subprocess.check_call,但是一直得到exit status 48。此命令通过OSX中的终端正常工作,退出状态为0:

/Users/me/Desktop/Python/ChannelAssign /Volumes/GRAID/_PREVIEWS/MASTER.mov

但这一直给我exit status 48

import subprocess
subprocess.check_call(['/Users/me/Desktop/Python/ChannelAssign', '/Volumes/GRAID/_PREVIEWS/MASTER.mov'])

这给了我:

CalledProcessError: Command '['/Users/me/Desktop/Python/ChannelAssign', '/Volumes/GRAID/_PREVIEWS/MASTER.mov']' returned non-zero exit status 48

Tags: 命令mastercheckstatusexitcallusersme

热门问题