解决WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
当我想把生成的html保存为图片时,并导入了一下第三方库,
from pyecharts.render import make_snapshot
from snapshot_selenium import snapshot
py代码中仅仅使用了make_snapshot(snapshot, funnel.render(), "funnel.png"),运行后报错:
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
搞了蛮久最后发现直接把chromedriver.exe复制到项目文件所在文件夹即可!!!
参考:
如果本文对您有帮助,可不可以给萌新点一个赞,鼓励小萌新坚持写博客的热情!
解决WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
当我想把生成的html保存为图片时,并导入了一下第三方库,
from pyecharts.render import make_snapshot
from snapshot_selenium import snapshot
py代码中仅仅使用了make_snapshot(snapshot, funnel.render(), "funnel.png"),运行后报错:
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
搞了蛮久最后发现直接把chromedriver.exe复制到项目文件所在文件夹即可!!!
参考:
如果本文对您有帮助,可不可以给萌新点一个赞,鼓励小萌新坚持写博客的热情!
发布评论