Skip to content

Python Playwright doesn't work in my computer #2364

@PyScriptZenith

Description

@PyScriptZenith

Good afternoon! I have a very strange situation - the playwright library does not work for me. I run the script with an example from the documentation and nothing happens, the script does not complete. I tried adding print(), but it also doesn't output anything to the console. I wrote to my friend and sent my script - everything works for him. Please help me, I don't understand at all what the problem might be, because obviously there are no errors? The process does not complete and the console output remains in the same state as in the screenshot. Tell me, please, how can I try to fix this?

Playwright Version 1.42.0 | Python 3.11.4 | Windows 10

app.py

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
  browser = p.chromium.launch(headless=False)
  print(browser)
  page = browser.new_page()
  print(page)
  page.goto("https://playwright.dev/python/docs/input")
  browser.close()

playwright_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions