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

"HTTP Error 404: Not Found" Showing when driver is initialised #1744

Closed
omkmorendha opened this issue Feb 15, 2024 · 2 comments
Closed

"HTTP Error 404: Not Found" Showing when driver is initialised #1744

omkmorendha opened this issue Feb 15, 2024 · 2 comments

Comments

@omkmorendha
Copy link
Contributor

For this simple code:


import undetected_chromedriver as uc
import time

if __name__ == '__main__':
    driver = uc.Chrome()
    
    time.sleep(20)

I get this error:

Traceback (most recent call last):
  File "/home/omkmorendha/Desktop/Work/JSX_scraping/exp.py", line 5, in <module>
    driver = uc.Chrome()
  File "/home/omkmorendha/.local/share/virtualenvs/JSX_scraping-34LRwH2V/lib/python3.10/site-packages/undetected_chromedriver/__init__.py", line 258, in __init__
    self.patcher.auto()
  File "/home/omkmorendha/.local/share/virtualenvs/JSX_scraping-34LRwH2V/lib/python3.10/site-packages/undetected_chromedriver/patcher.py", line 178, in auto
    self.unzip_package(self.fetch_package())
  File "/home/omkmorendha/.local/share/virtualenvs/JSX_scraping-34LRwH2V/lib/python3.10/site-packages/undetected_chromedriver/patcher.py", line 287, in fetch_package
    return urlretrieve(download_url)[0]
  File "/usr/lib/python3.10/urllib/request.py", line 241, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
@opemvbs
Copy link

opemvbs commented Feb 15, 2024

#1743 see here

@omkmorendha
Copy link
Contributor Author

Thank you @opemvbs

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

2 participants