Errno 13权限被拒绝:“ scripts / real_time_object_detection.py”

时间:2019-07-15 06:41:45

标签: python-3.x heroku

我正在使用不带虚拟环境的烧瓶后端在Heroku上部署我的应用程序。并获得[Errno 13] Permission denied: 'scripts/real_time_object_detection.py' 在使用subprocess.call(['real_time_object_detection'])

我很困惑,因为没有可用的解决方案

@app.route('/theft.html',methods=['GET','POST'])
def theft():
    flag=0
    if request.method=="POST":
        try:
            flag=1
            process=subprocess.call(['scripts/real_time_object_detection.py'])
            return render_template("Theft.html")
        except Exception as e:
            return str(e)
    if (flag!=1):
        return render_template("Theft.html")```

i am getting [Errno 13] Permission denied: 'scripts/real_time_object_detection.py' but i want my script to run

0 个答案:

没有答案