Skip to content

Uncaught ModuleNotFoundError in scrape.py line 135 #3577

@VGraupera

Description

@VGraupera

Aider version: 0.77.1
Python version: 3.12.8
Platform: macOS-15.3.2-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 24.3.0 (64bit)
Git version: git version 2.47.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 1078, in main
    coder.run()
  File "base_coder.py", line 856, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 897, in run_one
    message = self.preproc_user_input(user_message)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 889, in preproc_user_input
    inp = self.check_for_urls(inp)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 947, in check_for_urls
    inp += self.commands.cmd_web(url, return_content=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "commands.py", line 187, in cmd_web
    content = self.scraper.scrape(url) or ""
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "scrape.py", line 97, in scrape
    content, mime_type = self.scrape_with_playwright(url)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "scrape.py", line 135, in scrape_with_playwright
    from playwright.sync_api import Error as PlaywrightError
ModuleNotFoundError: No module named 'playwright.sync_api'

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