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

what version of python should I use? #334

Open
LinXin04 opened this issue Dec 9, 2024 · 2 comments
Open

what version of python should I use? #334

LinXin04 opened this issue Dec 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LinXin04
Copy link

LinXin04 commented Dec 9, 2024

No description provided.

@LinXin04 LinXin04 changed the title what version of python and cuda should I use? what version of python should I use? Dec 9, 2024
@LinXin04
Copy link
Author

LinXin04 commented Dec 9, 2024

BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
You are using a frozen webkit browser which does not receive updates anymore on ubuntu20.04-x64. Please update to the latest version of your operating system to test up-to-date browsers.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
Playwright Host validation warning:
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ playwright install-deps ║
║ ║
║ Alternatively, use apt: ║
║ apt-get install libatk-bridge2.0-0\ ║
║ libxkbcommon0\ ║
║ libatspi2.0-0 ║
║ ║
║ <3 Playwright Team ║
╚══════════════════════════════════════════════════════╝
at validateDependenciesLinux (/root/miniconda3/lib/python3.10/site-packages/playwright/driver/package/lib/server/registry/dependencies.js:216:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Registry._validateHostRequirements (/root/miniconda3/lib/python3.10/site-packages/playwright/driver/package/lib/server/registry/index.js:753:43)
at async Registry._validateHostRequirementsForExecutableIfNeeded (/root/miniconda3/lib/python3.10/site-packages/playwright/driver/package/lib/server/registry/index.js:851:7)
at async Registry.validateHostRequirementsForExecutablesIfNeeded (/root/miniconda3/lib/python3.10/site-packages/playwright/driver/package/lib/server/registry/index.js:840:43)
at async t. (/root/miniconda3/lib/python3.10/site-packages/playwright/driver/package/lib/cli/program.js:137:7)

@unclecode
Copy link
Owner

unclecode commented Dec 9, 2024

@LinXin04 Regarding Python version, I suggest 3.10 and above, although its tested on 3.9 as well. However this message indicates that your current OS environment does not meet Playwright’s officially supported requirements. It’s not an issue with the code itself but rather with missing dependencies on your system or Docker image.

Try running:

playwright install-deps

or install the recommended packages:

apt-get install libatk-bridge2.0-0 libxkbcommon0 libatspi2.0-0

If you’re building a Docker image, add these dependencies to your Dockerfile’s build steps. Also consider using a newer Ubuntu base image so Playwright can run its browsers without fallback builds.

Once you have these dependencies in place, the warnings should disappear. Let me know if you still experiencing the issue.

@unclecode unclecode self-assigned this Dec 9, 2024
@unclecode unclecode added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants