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

can't install on Alpine3.12 #234

Closed
etishka opened this issue Oct 13, 2020 · 10 comments
Closed

can't install on Alpine3.12 #234

etishka opened this issue Oct 13, 2020 · 10 comments

Comments

@etishka
Copy link

etishka commented Oct 13, 2020

# python -m playwright install
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/site-packages/playwright/__main__.py", line 17, in <module>
    main()
  File "/usr/local/lib/python3.8/site-packages/playwright/main.py", line 145, in main
    st = os.stat(driver_executable)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/site-packages/playwright/drivers/driver-linux'
@arjunattam
Copy link
Contributor

Thanks for reporting this!

The driver executable was not download when pip install playwright was run. This is because the Python wheel does not support non-glibc based Linux distributions (including Alpine). Relevant issue and this article. I'm seeing this workaround in some public Dockerfiles based on Alpine, but it is probably not recommended.

We would have to rethink packaging to be able to support Alpine.

@kumaraditya303
Copy link
Contributor

Bump Is building browsers on alpine possible ?

@mxschmitt
Copy link
Member

Depends on the need, since not a lot of people are upvoting the feature, not much gets investigated into it. For WebKit and Firefox its not super easy, since there would be separate browser builds needed. For Chromium it could be possible when Chrome Canary gets used.

Do you want to use Playwright for Python with Alpine?

@kumaraditya303
Copy link
Contributor

@mxschmitt as much as I have used alpine with python there are too many issues to deal with mostly because of musl and many workarounds are required so we should not be investigating it anymore & I don't want to use alpine, Ubuntu is just fine, FYI I am on PR for playwright to install only selected browsers.

@mxschmitt
Copy link
Member

@kumaraditya303 I think the same way. (For the selected browsers, it's not an easy change, needs to be made upstream the change on the Playwright project and designed that it can be used with the other language providers too.)

@aleksandr-kotlyar
Copy link

aleksandr-kotlyar commented Jan 19, 2021

Bump Is building browsers on alpine possible ?

Hi, if the question was - is it possible to run ui-tests on chromium-alpine - so yes, it's possible. I did it on selenium. If the problem is with chromium webdriver - you can look at my PR SergeyPirogov/webdriver_manager#97 for webdriver_manager where i solved the same issue.
I hope I didn't miss the topic and my answer will be helpful :). I'm new in playwright project and just watching an activity here to see what i can do for the project.

@pavelfeldman
Copy link
Member

Alpine is currently out of scope for Playwright and the core team is not looking at it actively, hence closing.

@jtomek
Copy link

jtomek commented Jul 28, 2022

Is Alpine still out of scope?

@gerzha
Copy link

gerzha commented Mar 29, 2023

Any news about Alpine?

@jtomek
Copy link

jtomek commented Mar 30, 2023

It's not supported as per #1770.

I wonder why but I can guess that it has something to do with the increase in complexity.

I have moved on, but it's a pity because I remember that Alpine was one of the desired Linux distributions for my use case to run it on AWS Lambda.

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

No branches or pull requests

8 participants