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.

[Question] webKit dependencies available for fedora 36 ?

See original GitHub issue

I tried running below simple python code on webKit on OS: fedora version: 36 (latest)

def run(playwright: Playwright) -> None:
    browser = playwright.webkit.launch(headless=False)
    context = browser.new_context()
    page = context.new_page()
    page.goto("https://www.amazon.in/")
    print(page.title())
    # ---------------------
    context.close()
    browser.close()
with sync_playwright() as playwright:
    run(playwright)

Initially I get below error ->

 Missing libraries:                                   
     libpcre.so.3                                     
     libicui18n.so.66                                
     libicuuc.so.66                                  
     libjpeg.so.8                                    
     libwebp.so.6                                    
     libffi.so.7                            
     libx264.so  

So I created symblinks for all above mentioned dependencies like libpcre.so.3 -> libpcre.so file present in my system as mentioned in one of the solution. But after that I’m getting another error ->

Traceback (most recent call last):
  File "/home/pbadak/PycharmProjects/pythonProject1/main.py", line 21, in <module>
    run(playwright)
  File "/home/pbadak/PycharmProjects/pythonProject1/main.py", line 5, in run
    browser = playwright.webkit.launch(headless=False)
  File "/home/pbadak/PycharmProjects/pythonProject1/venv/lib/python3.7/site-packages/playwright/sync_api/_generated.py", line 11557, in launch
    firefoxUserPrefs=mapping.to_impl(firefox_user_prefs),
  File "/home/pbadak/PycharmProjects/pythonProject1/venv/lib/python3.7/site-packages/playwright/_impl/_sync_base.py", line 88, in _sync
    return task.result()
  File "/home/pbadak/PycharmProjects/pythonProject1/venv/lib/python3.7/site-packages/playwright/_impl/_browser_type.py", line 90, in launch
    Browser, from_channel(await self._channel.send("launch", params))
  File "/home/pbadak/PycharmProjects/pythonProject1/venv/lib/python3.7/site-packages/playwright/_impl/_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "/home/pbadak/PycharmProjects/pythonProject1/venv/lib/python3.7/site-packages/playwright/_impl/_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Browser closed.
==================== Browser output: ====================
<launching> /home/pbadak/.cache/ms-playwright/webkit-1641/pw_run.sh --inspector-pipe --no-startup-window
<launched> pid=207860
[pid=207860][err] /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/bin/MiniBrowser: /lib64/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/lib/libwebkit2gtk-4.0.so.37)
[pid=207860][err] /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/bin/MiniBrowser: /lib64/libffi.so.7: version `LIBFFI_BASE_7.0' not found (required by /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/sys/lib/libgobject-2.0.so.0)
=========================== logs ===========================
<launching> /home/pbadak/.cache/ms-playwright/webkit-1641/pw_run.sh --inspector-pipe --no-startup-window
<launched> pid=207860
[pid=207860][err] /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/bin/MiniBrowser: /lib64/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/lib/libwebkit2gtk-4.0.so.37)
[pid=207860][err] /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/bin/MiniBrowser: /lib64/libffi.so.7: version `LIBFFI_BASE_7.0' not found (required by /home/pbadak/.cache/ms-playwright/webkit-1641/minibrowser-gtk/sys/lib/libgobject-2.0.so.0)
============================================================

Process finished with exit code 1

Is there a workaround to use webkit with playwright on fedora OS?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
rsramkiscommented, Jun 20, 2022

I’m doing separate testing for Arch Linux and I noticed the following with Webkit:

~/Development/Playwright is πŸ“¦ v1.0.0 via  v16.15.0 took 21s ❯ npx playwright test --project=webkit

Running 25 tests using 2 workers

  1. [webkit] β€Ί example.spec.js:38:3 β€Ί New Todo β€Ί should clear text input field when an item is added
browserType.launch:
╔══════════════════════════════════════════════════════╗
β•‘ Host system is missing dependencies to run browsers. β•‘
β•‘ Missing libraries:                                   β•‘
β•‘     libpcre.so.3                                     β•‘
β•‘     libicui18n.so.66                                 β•‘
β•‘     libicuuc.so.66                                   β•‘
β•‘     libwebp.so.6                                     β•‘
β•‘     libenchant.so.1                                  β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Thought I would let you know has playwright support continues to grow.

0reactions
pbadakcommented, Nov 11, 2022

@nlhkabu No I did not find any alternative package for that even I’m stuck here .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing RPM Dependencies - Ask Fedora
Hello Everyone,. When I run the command rmp -Va a massive list of dependencies are missing. I need helping solving this problem. ......
Read more >
Solved: Fedora 28 - webkitgtk,xulrunner,mozjs17 problem.
Performing an Install of xulrunner has not been available since Fedora 26. Installing xulrunner with rpm produces this output. error: FailedΒ ...
Read more >
RPM broken on Fedora 27 - webkitgtk no longer provided
webkit -sharp is installed so I'm not too sure how to resolve that… It is recommended to port from webkit to webkit2, webkit...
Read more >
How to install webkitgtk and all its dependencies?
Which is the better way to install latest version of webkitgtk ... the output from your installation attempt (add to your question, please)?....
Read more >
Fedora Packages of R Software
The listing below shows all RPMs available for R packages on Fedora Linux 36 (Thirty Six), classified by the R repository that wouldΒ ......
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