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

Chromium downloadable not found #463

Open
sanyaswee opened this issue Feb 22, 2024 · 6 comments
Open

Chromium downloadable not found #463

sanyaswee opened this issue Feb 22, 2024 · 6 comments

Comments

@sanyaswee
Copy link

sanyaswee commented Feb 22, 2024

Hello, I am new to pyppeteer and whenever I try to launch browser with pyppeteer I get the followig error:
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>.
I also get the same error if I try to install chromium via pyppeteer-install in terminal.
Yes, I know that I can manually specify the path to .exe, but it seems to me that auto-install shuld work as well

@xvyang-z
Copy link

xvyang-z commented Feb 24, 2024

I also couldn't find version 1181205, but I tried a slightly higher version 1181217 and it worked.

  1. download chrome-win.zip from https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/1181217/

  2. unzip it to ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205.( Because 1181205 is written in the code, in order not to change the original library code, so here 1181205 is used as the directory name. )

  3. finally, it seem like this ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205/chrome-win/chrome.exe

  4. run the code again, it will be in the directory ~ /AppData/Local/pyppeteer/pyppeteer/local- chromium/1181205/chrome-win/ detection to chrome.exe, and skip over download

@SaifHasanat
Copy link

I also couldn't find version 1181205, but I tried a slightly higher version 1181217 and it worked.

  1. download chrome-win.zip from https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/1181217/
  2. unzip it to ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205.( Because 1181205 is written in the code, in order not to change the original library code, so here 1181205 is used as the directory name. )
  3. finally, it seem like this ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205/chrome-win/chrome.exe
  4. run the code again, it will be in the directory ~ /AppData/Local/pyppeteer/pyppeteer/local- chromium/1181205/chrome-win/ detection to chrome.exe, and skip over download

Thank you, this worked with me, but how did you know that this was the path?

@xvyang-z
Copy link

I also couldn't find version 1181205, but I tried a slightly higher version 1181217 and it worked.

  1. download chrome-win.zip from https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/1181217/
  2. unzip it to ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205.( Because 1181205 is written in the code, in order not to change the original library code, so here 1181205 is used as the directory name. )
  3. finally, it seem like this ~/AppData/Local/pyppeteer/pyppeteer/local-chromium/1181205/chrome-win/chrome.exe
  4. run the code again, it will be in the directory ~ /AppData/Local/pyppeteer/pyppeteer/local- chromium/1181205/chrome-win/ detection to chrome.exe, and skip over download

谢谢你,这对我有用,但你怎么知道这是一条路?

follow the error message, the path is in [python path]/Lib/site-packages/pyppeteer/chromium_downloader.py variable chromiumExecutable, about line 47.

@bingyang1
Copy link

  1. 通过 网站 https://chromium.woolyss.com/download/ 获取chromium版本,
  2. 通过 修改文件 [python path]/Lib/site-packages/pyppeteer/__init__.py中变量__chromium_revision__的值 例如 __chromium_revision__ = '1265049'
  3. 保存后重新运行pyppeteer相关脚本即可自动下载安装chromium。

  1. Get the chromium version from the website https://chromium.woolyss.com/download/.
  2. Modify the value of variable chromium_revisionin[python path]/Lib/site-packages/pyppeteer/init.py, __chromium_revision__ = '1265049'.
  3. Save and re-run the pyppeteer related script to automatically download and install chromium.

@Lilipus
Copy link

Lilipus commented Feb 26, 2024

  1. 通过 网站 https://chromium.woolyss.com/download/ 获取chromium版本,

  2. 通过 修改文件 [python path]/Lib/site-packages/pyppeteer/__init__.py中变量__chromium_revision__的值 例如 __chromium_revision__ = '1265049'

  3. 保存后重新运行pyppeteer相关脚本即可自动下载安装chromium。

  4. Get the chromium version from the website https://chromium.woolyss.com/download/.

  5. Modify the value of variable chromium_revisionin[python path]/Lib/site-packages/pyppeteer/init.py, __chromium_revision__ = '1265049'.

  6. Save and re-run the pyppeteer related script to automatically download and install chromium.

In my jupyter lab, when I convert from notebook to PDF from HTML I am getting this error: nbconvert failed: net::ERR_FAILED at file:///C:\Users\adson\AppData\Local\Temp\tmpneadpogl.html

@FreeM1ne
Copy link

FreeM1ne commented Mar 2, 2024

lastversion
1267552

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

6 participants