Giter VIP home page Giter VIP logo

Comments (15)

mxschmitt avatar mxschmitt commented on June 7, 2024 9

This will be available in v1.45. Experimental support has been landed on our Canary channel: https://playwright.dev/docs/canary-releases

from playwright.

mxschmitt avatar mxschmitt commented on June 7, 2024 6

We are currently blocked by GitHub Actions, that they add support for it in their runner-images repository: actions/runner-images#9691.

from playwright.

man-qa avatar man-qa commented on June 7, 2024 3

Same for me, stuck on ubuntu:22.04 for the moment

from playwright.

rotemgrim avatar rotemgrim commented on June 7, 2024 3

I'm stuck with ubuntu 24.04. any one has a workaround maybe?

from playwright.

fawazahmed0 avatar fawazahmed0 commented on June 7, 2024 3

ubuntu-24.04 is available now in GitHub Actions

from playwright.

LostInDarkMath avatar LostInDarkMath commented on June 7, 2024 2

I have the same issue. Any news on this?

from playwright.

jamieredding avatar jamieredding commented on June 7, 2024 2

Hi @WithMarcel, I've made progress with the steps you provided so thank you very much.

I encountered exactly your issue when reaching this point:

For libasound2, I initially attempted to install libasound2t64, only to discover it was already present. Subsequently, I checked liboss4-salsa-asound2, but refrained from installing it as it would entail the removal of over 70 other packages, which was not my intended outcome.

However playwright install --with-deps still continues to complain about libasound2 not being installed, instead of encountering the next round of absent packages that you ran into here:

Proceeding with playwright install --with-deps, I encountered additional absent packages: libvpx7 and libevent-2.1-7. After obtaining and installing them, I was finally able to execute playwright install without encountering any further issues.

Further steps

I proceeded to instead run npx playwright install without --with-deps and I reached the libvpx7 and libevent-2.1.7 missing packages that are mentioned above.

I then installed them manually the same way as the earlier ones by visiting https://packages.ubuntu.com/.

After that point, npx playwright install ran without errors.

Running tests

I am able to run npx playwright test on the example tests generated when you add playwright to a project. 5/6 pass except [webkit] › example.spec.ts:10:5 › get started link fails when trying to click a link.

I'll proceed for now despite this as I'm at least able to test with chromium.

from playwright.

WithMarcel avatar WithMarcel commented on June 7, 2024 1

I encountered a similar issue on Ubuntu 24.04, albeit with a wider range of missing packages: libicu70, libffi7, and libx264-163. To resolve this, I downloaded them from https://packages.ubuntu.com/, specifically for the 22.04 version. While this method isn't advisable due to its deviation from best practices, I managed to install them using apt install ./<package>.deb.

For libasound2, I initially attempted to install libasound2t64, only to discover it was already present. Subsequently, I checked liboss4-salsa-asound2, but refrained from installing it as it would entail the removal of over 70 other packages, which was not my intended outcome.

Proceeding with playwright install --with-deps, I encountered additional absent packages: libvpx7 and libevent-2.1-7. After obtaining and installing them, I was finally able to execute playwright install without encountering any further issues.

It's worth noting that while this workaround worked for me, I don't recommend it universally, nor can I guarantee its seamless functionality for all users. Probably as soon as Ubuntu 24.04 is officially supported, I would try to remove the above packages and reinstall playwright.

from playwright.

Mister-Hope avatar Mister-Hope commented on June 7, 2024 1

We are currently blocked by GitHub Actions, that they add support for it in their runner-images repository: actions/runner-images#9691.

It seems that there is still a time period before GitHub support 24.04. See here: actions/runner-images#9691 (comment)

It would be great that we can have Ubuntu 24.04 supported in playwright first, then adding a CI test once it supports.

Even a workaround is better than no support. For me, I feel hard when I am switching devices between office, home and my laptop. I have all upgraded them to 24.04, and I have to repeat the above solution 3 times.

from playwright.

ajrowland avatar ajrowland commented on June 7, 2024

I can run on 24.04 via the UI, or just using the --project firefox flag.

from playwright.

mwanago avatar mwanago commented on June 7, 2024

I'm stuck with ubuntu 24.04. any one has a workaround maybe?

I was able to run it on 23.10 with this advice:
#23296 (comment)

I had to compile libx264-163 from the source code though.

from playwright.

wangfuxin8080 avatar wangfuxin8080 commented on June 7, 2024

hi @mxschmitt , do you know when the github issue will be fixed, I encouter the same error when running
apt-get update && apt-get upgrade -y && apt-get install -y libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libatk1.0-0 libgtk-3-0

error:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Package libasound2 is a virtual package provided by:
liboss4-salsa-asound2 4.2-build2020-1ubuntu3
libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)

E: Package 'libasound2' has no installation candidate

from playwright.

MarcosIgnacioo avatar MarcosIgnacioo commented on June 7, 2024

wep ya lo arreglaron??

from playwright.

NoahNim avatar NoahNim commented on June 7, 2024

Hello, it seems that the --install-deps command and playwright has issues getting the packages from what's in the default ubuntu.sources file in /etc/apt/sources.list.d

I updated my ubuntu.sources file in /etc/apt/sources.list.d to look like this:

Types: deb
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://mirrors.kernel.org/ubuntu/
Suites: focal
Components: main universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

This got every dependency to install except libicu70 and libx264-163. Ubuntu 24.04 comes with libicu74 and libx264-164, so libicu70 and libx264-163 can't be installed unless a user reverts to those versions but I don't want to break other things by doing this.

from playwright.

vkWeb avatar vkWeb commented on June 7, 2024

@mxschmitt please try getting playwright ready for Ubuntu 24.04. Thanks!

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.