Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Can not support the Raspbian Buster system #250

Open
yuxiangfriend opened this issue Sep 5, 2019 · 5 comments
Open

Can not support the Raspbian Buster system #250

yuxiangfriend opened this issue Sep 5, 2019 · 5 comments

Comments

@yuxiangfriend
Copy link

I can sucessfully install the pyppeteer, but when run, it report error:
OSError: [Errno 8] Exec format error: '/home/pi/.local/share/pyppeteer/local-chromium/575458/chrome-linux/chrome'

@watson-sam
Copy link

watson-sam commented Sep 10, 2019

Also getting this on a pi - standard Rasapian / Linux install

@MaaSTaaR
Copy link

I've encountered this issue when tried to use https://github.com/psf/requests-html. This message shows because pyppeteer downloads an x86 version of Chromium and not ARM version. Also, version >= 62 of Chrome is needed and the official repositories of Raspbian doesn't offer a new version of Chromium. A quick fix for this issue is using Chromium packages from Ubuntu by following these steps:

  1. Download the two packages: chromium-codecs-ffmpeg and chromium-browser from here and here. Make sure that you download a version >= 62. I've used version 65 and it works fine.
  2. Install chromium-codecs-ffmpeg first, then chromium-browser by using the command "dpkg -i".
  3. After the installation of Chromium from Ubuntu packages, grab its path by running "whereis chromium-browser". Most probably, it's going to be on "/usr/bin/chromium-browser".
  4. Go to the directory where pyppeteer downloaded x86 Chromium on it. In your case it is "/home/pi/.local/share/pyppeteer/local-chromium/575458/chrome-linux/". Delete all its files.
  5. In the same directory. Create a symbol link which has the name "chrome" and points to Ubuntu's Chromium (you have got its path in step 3). Example: ln -s /usr/bin/chromium-browser chrome

After performing those steps, everything should work fine.

@qudarr
Copy link

qudarr commented Nov 7, 2019

Came here to write, that @MaaSTaaR 's comment solved the issue. In the mean time you can also install chromium via apt-get. There seems to be no necessity to install it via the links he provided.

@master0v
Copy link

Thanks @MaaSTaaR

To the original developer: thanks for the port. Good job there. I don't know what's going to be easier in terms of fixing this. The wrong things to do is to download 100mb of i386 code when you on an Arm platform. You can offer the user to use the locally installed browser, like @MaaSTaaR suggests.

I was pretty pissed that I wasted 100 mb of my bandwidth for nothing.

@venkatpolisetti
Copy link

Came here to write, that @MaaSTaaR 's comment solved the issue. In the mean time you can also install chromium via apt-get. There seems to be no necessity to install it via the links he provided.

@qudarr

Can you please list the apt-get commands to install it here?

Thank you folks so much.

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

No branches or pull requests

6 participants