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.

can't install on Alpine3.12

See original GitHub issue
# 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'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
arjunattamcommented, Oct 13, 2020

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.

0reactions
jtomekcommented, Jul 28, 2022

Is Alpine still out of scope?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install Python package on Alpine Docker anymore
You are trying to use the python (alias) library instead of python3 . Try to use apk update && apk upgrade && apk...
Read more >
Image Layer Details - python:3.8.5-alpine3.12 | Docker Hub
python:3.8.5-alpine3.12 ... ADD file ... in /. 2.66 MB. 2. CMD ["/bin/sh"] ... /bin/sh -c apk add --no-cache. 274.78 KB.
Read more >
How to install curl on Alpine Linux - nixCraft
Installing curl on Alpine. Open the terminal application. For remote server use the ssh command for login purposes. For instance:
Read more >
[Docker Course 4-13] Issue on npm install step
Hello there, I've facing an issue while installing the app ... FROM node:14.19.0-alpine3.14 #RUN apk add sudo WORKDIR /app/ #Does not work: ...
Read more >
Unable to install proj related Python packages in a Linux ...
1-alpine3.12][1] . Error is, e.g. for pyproj itself here: # pip install -U pyproj Collecting pyproj>= ...
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 Hashnode Post

No results found