Skip to content

ModuleNotFoundError: No module named 'undetected_chromedriver' #72

@johentsch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions