Can't run binary from within python aws lambda function

前端 未结 6 1719
一生所求
一生所求 2021-01-11 16:57

I am trying to run this tool within a lambda function: https://github.com/nicolas-f/7DTD-leaflet

The tool depends on Pillow which depends on imaging libraries not av

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 17:30

    copyfile('/var/task/yourbinary', '/tmp/yourbinary')
    os.chmod('/tmp/yourbinary', 0555)
    

    Moving the binary to /tmp and making it executable worked for me

提交回复
热议问题