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

[rebrowser-playwright-python] playwright not installed #67

Open
ilyakamens opened this issue Nov 26, 2024 · 1 comment
Open

[rebrowser-playwright-python] playwright not installed #67

ilyakamens opened this issue Nov 26, 2024 · 1 comment

Comments

@ilyakamens
Copy link

I installed via uv add rebrowser-playwright. In pyproject.toml, I have:

dependencies = [
    ...
    "rebrowser-playwright>=1.48.100",
    ...
]

In my Dockerfile, I have the following, which installs the browser:

RUN uv run playwright install --with-deps

When I build my container, I get the following error:

 => ERROR [<redacted> stage-0 9/9] RUN uv run playwright install --with-deps          0.1s
------
 > [<redacted> stage-0 9/9] RUN uv run playwright install --with-deps:
0.118 error: Failed to spawn: `playwright`
0.118   Caused by: No such file or directory (os error 2)
------
failed to solve: process "/bin/sh -c uv run playwright install --with-deps" did not complete successfully: exit code: 2

All I did was replace playwright with rebrowser-playwright. Am I doing something obviously wrong? Thanks.

@nwebson
Copy link
Contributor

nwebson commented Dec 5, 2024

Shouldn't you replace it in your command, too?
RUN uv run rebrowser_playwright install --with-deps

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

No branches or pull requests

2 participants