requests-html: OSError: Chromium downloadable not found

During the execution of the html.render() function (which downloads Chromium) I got the following error:

ite-packages\pyppeteer\chromium_downloader.py", line 82, in download_zip
    raise OSError(f'Chromium downloadable not found at {url}: ' f'Received {r.data.decode()}.\n')
OSError: Chromium downloadable not found at https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1181205/chrome-win.zip: Received <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: chromium-browser-snapshots/Win_x64/1181205/chrome-win.zip</Details></Error>.

It seems like they removed version 1181205. There is no maintainer of the pyppeteer library so I thin it makes sense to do one of the following things:

  • provide instruction how to download chromium manually
  • implement chromium_downloader.py in the requests-html module.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 17

Most upvoted comments

Hi,

For those who encounter this in August 2024, try replacing the url from: https://storage.googleapis.com to https://commondatastorage.googleapis.com

And for those of you encountering this in December 2024: Pypeteer is configured to a hardcoded Chromium revision, which appears to have been taken down from Google APIs (see link here).

  1. Replace the url in chromium_downloader.py as @DL33-14 suggested above, and
  2. Replace the chromium revision in init.py to whichever revision you choose. I used 1181217 because it was closest to the hardcoded revision, but that version is going on a year and a half old so I may use a more recent revision later.

https://commondatastorage.googleapis.com/

i tried like below,but not worked:

os.environ['PYPPETEER_DOWNLOAD_HOST'] = 'https://commondatastorage.googleapis.com/'
browser = await launch(headless=True, args=['--no-sandbox', '--disable-setuid-sandbox'])

Chromium downloadable not found at https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1181205/chrome-win.zip: Received <?xml version='1.0' encoding='UTF-8'?><Error><Cod e>NoSuchKey</Cod e><Message>The specified key does not exist.</Message><Detail s>No such object: chromium-browser-snapshots/Win_x64/1181205/chrome-win.zip</Detail s></Error>.

Hi,

For those who encounter this in August 2024, try replacing the url from: https://storage.googleapis.com to https://commondatastorage.googleapis.com