添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
俊逸的杯子  ·  Me and My Launcher - ...·  1 周前    · 
知识渊博的跑步鞋  ·  How to Replace the ...·  1 周前    · 
威武的钥匙扣  ·  Pin apps to your ...·  1 周前    · 
很酷的蚂蚁  ·  Python 3.8 安装详解 | ...·  2 周前    · 
正直的牙膏  ·  Loading...·  3 周前    · 
憨厚的香烟  ·  南京市浦口区人民政府·  2 周前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since it's not entirely obvious, and really just an artifact of running chrome, it would be nice if the readme would indicate that x11 libs must be present else chrome will not run.

I only found this out by enabling stdout/stderr when chrome is spawned which showed
error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
Additionally, after fixing this, the following other libs are missing libXcomposite.so.1 , libXdamage.so.1 , libXi.so.6 , libXtst.so.6 , libXcursor.so.1 , libXss.so.1 , libXrandr.so.2 , libatk-1.0.so.0 , libatk-bridge-2.0.so.0 , libgtk-3-0 , and libnss3.so are also required.

The symptom otherwise was a 30 second timeout with the following error.

   File "/usr/local/lib/python3.8/dist-packages/pyppeteer/launcher.py", line 307, in launch
     return await Launcher(options, **kwargs).launch()
   File "/usr/local/lib/python3.8/dist-packages/pyppeteer/launcher.py", line 168, in launch
     self.browserWSEndpoint = get_ws_endpoint(self.url)
   File "/usr/local/lib/python3.8/dist-packages/pyppeteer/launcher.py", line 227, in get_ws_endpoint
     raise BrowserError('Browser closed unexpectedly:\n')
 pyppeteer.errors.BrowserError: Browser closed unexpectedly:

On debian, one must install the libx11-xcb1, libxcursor1, libxdamage1, libxi6, libxtst6, libxcomposite1, libxss1,libxrandr2, libatk1.0-0, libatk-bridge2.0-0, libgtk-3.so.0, libgtk-3-0, and libnss3 packages. I was running in a container which typically doesn't typically have x11 libs present.

Or at least it's here in an issue that can be found later on.

Cheers