Skip to content

Uncaught ImportError in __init__.py line 29 #5105

@BardBox

Description

@BardBox

Aider version: 0.86.2
Python version: 3.11.9
Platform: Windows-10-10.0.26200-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 10 (64bit)
Git version: git version 2.54.0.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 4, in <module>
    main()
  File "main.py", line 1162, in main
    coder.run()
  File "base_coder.py", line 887, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 928, in run_one
    message = self.preproc_user_input(user_message)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 920, in preproc_user_input
    inp = self.check_for_urls(inp)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 980, in check_for_urls
    inp += self.commands.cmd_web(url, return_content=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "commands.py", line 243, in cmd_web
    content = self.scraper.scrape(url) or ""
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "scrape.py", line 107, in scrape
    content, mime_type = self.scrape_with_playwright(url)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "scrape.py", line 145, in scrape_with_playwright
    from playwright.sync_api import Error as PlaywrightError
  File "__init__.py", line 25, in <module>
    import playwright.sync_api._generated
  File "_generated.py", line 42, in <module>
    from playwright._impl._assertions import (
  File "_assertions.py", line 25, in <module>
    from playwright._impl._connection import format_call_log
  File "_connection.py", line 42, in <module>
    from playwright._impl._greenlets import EventGreenlet
  File "_greenlets.py", line 17, in <module>
    import greenlet
  File "__init__.py", line 29, in <module>
    from ._greenlet import _C_API # pylint:disable=no-name-in-module
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing _greenlet: The specified module could not be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions