nishizhumagu
Results
1
issues of
nishizhumagu
我将程序部署在服务器后,发现运行make_snapshot提示:DevToolsActivePort file doesn't exist。 通过分析发现,在docker容器root权限下,chrome无法运行,需要在使用selenium调用chromedriver时为其添加参数”—no-sandbox”。 建议在get_chrome_driver函数在添加“—headless”参数的同时,加上上述参数。或者,为get_chrome_driver函数添加关键字参数,让使用者可以自行添加参数。
enhancement