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

Uncaught ModuleNotFoundError in _htmlparser.py line 12 #3554

Open
dallarosa opened this issue Mar 16, 2025 · 0 comments
Open

Uncaught ModuleNotFoundError in _htmlparser.py line 12 #3554

dallarosa opened this issue Mar 16, 2025 · 0 comments

Comments

@dallarosa
Copy link

Aider version: 0.77.0
Python version: 3.12.0
Platform: macOS-15.3.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 24.3.0 (64bit)
Git version: git version 2.41.0

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 110, in scrape
    content = self.html_to_markdown(content)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "scrape.py", line 220, in html_to_markdown
    from bs4 import BeautifulSoup
  File "__init__.py", line 64, in <module>
    from .builder import (
  File "__init__.py", line 832, in <module>
    from . import _htmlparser # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "_htmlparser.py", line 12, in <module>
    from html.parser import HTMLParser
ModuleNotFoundError: No module named 'html.parser'

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

1 participant