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

Bug with automatic chromedriver installation #2449

Open
andreighinea1 opened this issue Aug 29, 2024 · 0 comments
Open

Bug with automatic chromedriver installation #2449

andreighinea1 opened this issue Aug 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andreighinea1
Copy link

Describe the bug

I get the error FileNotFoundError: [Errno 2] No such file or directory: '...\\.wdm\\drivers\\chromedriver\\win64\\128.0.6613.86\\chromedriver-win32/THIRD_PARTY_NOTICES.chromedriver.exe'.
This seems to be from an automatic chromedriver installation, and I checked and the file THIRD_PARTY_NOTICES.chromedriver without the .exe exists.
But I believe the THIRD_PARTY_NOTICES.chromedriver.exe is incorrect, it should run chromedriver.exe instead.

This seems to only affect sources which require using an webdriver to crawl.

Full log:

? Enter novel page url or query novel: https://ranobes.top/novels/1206066-getting-a-technology-system-in-modern-day.html

Retrieving novel info...
Exception in thread Thread-1:
Traceback (most recent call last):
  File "...\anaconda3\lib\site-packages\lncrawl\templates\browser\basic.py", line 88, in read_novel_info
    self.read_novel_info_in_scraper()
  File "...\anaconda3\lib\site-packages\lncrawl\templates\browser\general.py", line 18, in read_novel_info_in_scraper
    soup = self.get_novel_soup()
  File "...\anaconda3\lib\site-packages\lncrawl\templates\soup\general.py", line 41, in get_novel_soup
    return self.get_soup(self.novel_url)
  File "...\anaconda3\lib\site-packages\lncrawl\core\scraper.py", line 306, in get_soup
    response = self.get_response(url, headers=headers, **kwargs)
  File "...\anaconda3\lib\site-packages\lncrawl\core\scraper.py", line 201, in get_response
    return self.__process_request(
  File "...\anaconda3\lib\site-packages\lncrawl\core\scraper.py", line 130, in __process_request
    raise e
  File "...\anaconda3\lib\site-packages\lncrawl\core\scraper.py", line 123, in __process_request
    response.raise_for_status()
  File "...\anaconda3\lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://ranobes.top/novels/1206066-getting-a-technology-system-in-modern-day.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...\anaconda3\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "...\anaconda3\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "...\anaconda3\lib\site-packages\lncrawl\templates\browser\basic.py", line 95, in read_novel_info
    self.read_novel_info_in_browser()
  File "...\anaconda3\lib\site-packages\lncrawl\templates\browser\general.py", line 47, in read_novel_info_in_browser
    self.visit_novel_page_in_browser()
  File "...\anaconda3\lib\site-packages\sources\en\r\ranobes.py", line 55, in visit_novel_page_in_browser
    self.visit(self.novel_url)
  File "...\anaconda3\lib\site-packages\lncrawl\templates\browser\basic.py", line 65, in visit
    self._visit(url)
  File "...\anaconda3\lib\site-packages\lncrawl\core\browser.py", line 174, in visit
    self._init_browser()
  File "...\anaconda3\lib\site-packages\lncrawl\core\browser.py", line 65, in _init_browser
    self._driver = create_new(
  File "...\anaconda3\lib\site-packages\lncrawl\webdriver\__init__.py", line 35, in create_new
    return create_local(
  File "...\anaconda3\lib\site-packages\lncrawl\webdriver\local.py", line 115, in create_local
    chrome = Chrome(
  File "...\anaconda3\lib\site-packages\undetected_chromedriver\__init__.py", line 258, in __init__
    self.patcher.auto()
  File "...\anaconda3\lib\site-packages\undetected_chromedriver\patcher.py", line 150, in auto
    return self.patch_exe()
  File "...\anaconda3\lib\site-packages\undetected_chromedriver\patcher.py", line 347, in patch_exe
    with io.open(self.executable_path, "r+b") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '...\\.wdm\\drivers\\chromedriver\\win64\\128.0.6613.86\\chromedriver-win32/THIRD_PARTY_NOTICES.chromedriver.exe'

 ! Error: No chapters found
<class 'Exception'>
File "...\anaconda3\lib\site-packages\lncrawl\bots\console\integration.py", line 107, in start
    raise e
  File "...\anaconda3\lib\site-packages\lncrawl\bots\console\integration.py", line 101, in start
    _download_novel()
  File "...\anaconda3\lib\site-packages\lncrawl\bots\console\integration.py", line 85, in _download_novel
    self.app.get_novel_info()
  File "...\anaconda3\lib\site-packages\lncrawl\core\app.py", line 137, in get_novel_info
    raise Exception("No chapters found")

Let us know

App source: PIP and EXE
App version: 3.7.2
Your OS: Windows

@andreighinea1 andreighinea1 added the bug Something isn't working label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant