ChatGPT
ChatGPT copied to clipboard
Centos7.0 server can't work because of the unsupport of playwright?
I can't work the project out in my centos7.0 server, because missing dependencies for playwright wouldn't be fixed with all efforts?
It works . I can run the project in centos7 server
It works . I can run the project in centos7 server
@luckcul 你好,请问你有遇到这个错误:Host system is missing dependencies to run browsers,安装之后还是提醒的问题吗?怎么解决的?

你好,请问你有遇到这个错误:Host system is missing dependencies to run browsers,安装之后还是提醒的问题吗?怎么解决的?
少了Desktop environment.搜索Xvfb
@acheong08 安装Xvfb后还是有同样的报错,安装了那三个缺失依赖后也还是会提示同样的错误

sudo apt install libatk-bridge2.0-0
sudo apt install libatspi2.0-0
sudo apt install libxkbcommon0
centos我通过yum -y install libatk-bridge-2.0.so.0 libatspi.so.0 libxkbcommon.so.0 安装了,上面截图里面有。意思是yum install不可以?
名字应该错了。没有.so。更apt一样我猜想
网上搜一搜
请问一下
╔════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Looks like you launched a headed browser without having a XServer running. ║
║ Set either 'headless: true' or use 'xvfb-run <your-playwright-app>' before running Playwright. ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════════════════════════════════════════╝
是需要执行xvfb-run命令吗?<your-playwright-app>需要填什么?搜索没找到答案。
请问一下
╔════════════════════════════════════════════════════════════════════════════════════════════════╗ ║ Looks like you launched a headed browser without having a XServer running. ║ ║ Set either 'headless: true' or use 'xvfb-run <your-playwright-app>' before running Playwright. ║ ║ ║ ║ <3 Playwright Team ║ ╚════════════════════════════════════════════════════════════════════════════════════════════════╝是需要执行xvfb-run命令吗?
<your-playwright-app>需要填什么?搜索没找到答案。
已解决,直接xvfb-run python3 test.py