question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry Pi render error

See original GitHub issue

Hi, I’m using requests_html on my Raspberry Pi to do some easy web querying. However, calling html.render() results in the following error:

[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 106826418/106826418 [00:18<00:00, 5766874.83it/s]
[W:pyppeteer.chromium_downloader]
chromium download done.
[W:pyppeteer.chromium_downloader] chromium extracted to: /home/pi/.local/share/pyppeteer/local-chromium/575458
Traceback (most recent call last):
  File "test.py", line 37, in <module>
    r2.html.render()
  File "/home/pi/.local/lib/python3.7/site-packages/requests_html.py", line 586, in render
    self.browser = self.session.browser  # Automatically create a event loop and browser
  File "/home/pi/.local/lib/python3.7/site-packages/requests_html.py", line 730, in browser
    self._browser = self.loop.run_until_complete(super().browser)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/home/pi/.local/lib/python3.7/site-packages/requests_html.py", line 714, in browser
    self._browser = await pyppeteer.launch(ignoreHTTPSErrors=not(self.verify), headless=True, args=self.__browser_args)
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/launcher.py", line 311, in launch
    return await Launcher(options, **kwargs).launch()
  File "/home/pi/.local/lib/python3.7/site-packages/pyppeteer/launcher.py", line 169, in launch
    **options,
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/pi/.local/share/pyppeteer/local-chromium/575458/chrome-linux/chrome'

It seems like the downloaded chromium is not an arm executable. Has anyone ideas on how to fix this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
Phoenix1747commented, Sep 28, 2019

Also I want to add: the issue seems to be from pyppeteer installing the wrong architecture of chrome. Pi uses arm variants but the chrome architecture is x84-64.

Yeah that seems to be the problem according to the things I researched too.

How is the performance with selenium on your Pi?

It’s ok. I’m looking for JS generated text which works absolutely fine on a Pi 2. It may take some time for chromium to start but everything else works. Don’t know how good the objective performance is or something, but it just works.

0reactions
r-ookcommented, Sep 28, 2019

Thanks, will give it a try! It’d work for our cases where we have the flexibility to change or write the scripts, but I’d imagine those who are porting existing scripts over might still prefer a solution within the library. Hope this gets looked into in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Chromium render errors? - Raspberry Pi Forums
Hello everyone, I've notice some rendering errors with the latest version of Chromium. chromium_err.jpg. This screen shot show the error theΒ ...
Read more >
Not rendering on Raspberry Pi 3B Β· Issue #9 - GitHub
I'm trying to get this module to work on my mirror that runs on a Raspi 3B. Setup is default using up-to-date MM...
Read more >
Rendering issues with hardware WebRender on Raspberry Pi 4
This bug was about the OpenGL compositor. Similar bug with Hardware WebRender was bug 1738816. Remaining HW WR bug is bug 1784327. Status:...
Read more >
egl_rpi on Raspberry Pi 4 - Google Groups
I've been unsuccessfully trying to get my app to render directly to the framebuffer on the Raspberry Pi 4. (it worked fine on...
Read more >
Fatal Render Error on Raspberry Pi 3 : r/pokemmo - Reddit
I saw some youtube video of a guy running it a year ago, I guess the new version has something that renders it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found