Skip to content

ModuleNotFoundError: No module named 'undetected_chromedriver' #72

Open

Description

@johentsch

After pip-installing PPB on a Windows 11 machine without Chrome browser installed and running any command, the exception cited in the title is thrown. For example:

>>> C:\Users\user>python -m PyPaperBot --query query
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\miniconda3\Lib\site-packages\PyPaperBot\__main__.py", line 11, in <module>
    from .Scholar import ScholarPapersInfo
  File "C:\Users\user\miniconda3\Lib\site-packages\PyPaperBot\Scholar.py", line 4, in <module>
    import undetected_chromedriver as uc
ModuleNotFoundError: No module named 'undetected_chromedriver'

I managed to fix it by running pip install undetected_chromedriver so I guess it simply needs to be added to the dependencies.

Activity

  1. MaNikhilHo commented on Mar 12, 2025

    @MaNikhilHo

    If someone still stumbles upon this issue, you might have to use an older version of python and then run it.
    python3.10 -m venv venv310 | source venv310/bin/activate | pip install undetected-chromedriver PyPaperBot
    it did not work with python 3.17 but is working with 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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