evmer/perlego-downloader

Crash on Ubuntu 22.04

Opened this issue · 0 comments

Running on Ubuntu 22.04 on an AWS VM. It downloads all the pieces but then when it launches the Chromium module it crashes.

`Traceback (most recent call last):
File "/home/ubuntu/src/perlego-downloader/downloader.py", line 250, in
asyncio.run(html2pdf())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/ubuntu/src/perlego-downloader/downloader.py", line 171, in html2pdf
browser = await launch(options={
File "/home/ubuntu/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 307, in launch
return await Launcher(options, **kwargs).launch()
File "/home/ubuntu/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 168, in launch
self.browserWSEndpoint = get_ws_endpoint(self.url)
File "/home/ubuntu/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 227, in get_ws_endpoint
raise BrowserError('Browser closed unexpectedly:\n')
pyppeteer.errors.BrowserError: Browser closed unexpectedly:

`