Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Suggest documenting x11 and other libs must be present #547

Open
ddurham2 opened this issue Apr 26, 2023 · 0 comments
Open

Suggest documenting x11 and other libs must be present #547

ddurham2 opened this issue Apr 26, 2023 · 0 comments

Comments

@ddurham2
Copy link

ddurham2 commented Apr 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant