내에서 바이너리를 실행할 수 없습니다. 이것을 시도하고 나는 pyinstaller를 실행하여 희망대로 실행할 수있는 바이너리를 생성했다. 이 파일의 이름은 map_reader
이며 람다 압축 패키지의 최상위에 있습니다. 다음은 내가 람다 함수 내에서이 도구를 실행하려고 파이썬 AWS의 람다 함수
command = 'chmod 755 map_reader'
args = shlex.split(command)
print subprocess.Popen(args)
command = './map_reader -g "{}" -t "{}"'.format('/tmp/mapFiles', '/tmp/tiles')
args = shlex.split(command)
print subprocess.Popen(args)
을 그리고 여기에 두 번째 subprocess.Popen
호출에 발생하는 오류입니다 :
<subprocess.Popen object at 0x7f08fa100d10>
[Errno 13] Permission denied: OSError
가 어떻게 실행할 수 있습니다 이게 정확히 무엇입니까?
당신이하고있는 환경이 맞을 것 같아요. 로컬 파일을 실행 파일로 설정할 수 없습니다. "허가가 거부되었습니다"라는 말은 정확하게 의미 할 수 있습니다. – Blckknght