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" when trying to download Chrome driver #574

Open
2 of 4 tasks
Nesonica opened this issue Jul 22, 2023 · 1 comment
Open
2 of 4 tasks

HTTP Error 404: Not Found" when trying to download Chrome driver #574

Nesonica opened this issue Jul 22, 2023 · 1 comment

Comments

@Nesonica
Copy link

Nesonica commented Jul 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

I'm submitting a ...

Description

Describe the bug
When running the youtube_viewer.py script, the application attempts to download the appropriate Chrome driver and fails with a "HTTP Error 404: Not Found" error.

To Reproduce
Steps to reproduce the behavior:

Navigate to the project directory '...\PycharmProjects\YouTube-Viewer'.
Run the script 'youtube_viewer.py'.
Observe the output.
Expected behavior
The script should successfully download the appropriate Chrome driver based on the user's system and continue with the execution.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version: Version 115.0.5790.102 (Offizieller Build) (64-Bit)
Additional context
Here is the traceback:

Getting Chrome Driver... Traceback (most recent call last): File "C:\Users\PC\PycharmProjects\YouTube-Viewer\youtube_viewer.py", line 1003, in <module> osname, exe_name = download_driver(patched_drivers=patched_drivers) File "C:\Users\PC\PycharmProjects\YouTube-Viewer\youtubeviewer\download_driver.py", line 112, in download_driver uc.install() File "C:\Users\PC\PycharmProjects\YouTube-Viewer\venv\Lib\site-packages\undetected_chromedriver\_compat.py", line 262, in install ChromeDriverManager(executable_path, target_version, *args, **kwargs).install() File "C:\Users\PC\PycharmProjects\YouTube-Viewer\venv\Lib\site-packages\undetected_chromedriver\_compat.py", line 192, in install self.fetch_chromedriver() File "C:\Users\PC\PycharmProjects\YouTube-Viewer\venv\Lib\site-packages\undetected_chromedriver\_compat.py", line 221, in fetch_chromedriver ver = self.get_release_version_number().vstring File "C:\Users\PC\PycharmProjects\YouTube-Viewer\venv\Lib\site-packages\undetected_chromedriver\_compat.py", line 211, in get_release_version_number return LooseVersion(urlopen(self.__class__.DL_BASE + path).read().decode()) File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 525, in open response = meth(req, response) File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 563, in error return self._call_chain(*args) File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Users\PC\AppData\Local\Programs\Python\Python311\Lib\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

Possible Solution
Check the URLs and paths where the script is trying to download the Chrome driver from. The server might have moved the file, or the file may no longer exist.

Environment

- OS : Windows 11
- Python : 3.11
- Script version : YouTube-Viewer_win_1.8.0

config.json

not applicable
@TaherTito96
Copy link

Related to issue #572

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