Cant seem to run the library on an ubuntu vm (the regular chrome webdriver works) #1189
Unanswered
Lolegandolfo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HTTPError Traceback (most recent call last)
Cell In[10], line 1
----> 1 driver = uc.Chrome()
File ~/.local/lib/python3.10/site-packages/undetected_chromedriver/init.py:246, in Chrome.init(self, options, user_data_dir, driver_executable_path, browser_executable_path, port, enable_cdp_events, service_args, service_creationflags, desired_capabilities, advanced_elements, service_log_path, keep_alive, log_level, headless, version_main, patcher_force_close, suppress_welcome, use_subprocess, debug, no_sandbox, **kw)
240 self.debug = debug
241 self.patcher = Patcher(
242 executable_path=driver_executable_path,
243 force=patcher_force_close,
244 version_main=version_main,
245 )
--> 246 self.patcher.auto()
247 # self.patcher = patcher
248 if not options:
File ~/.local/lib/python3.10/site-packages/undetected_chromedriver/patcher.py:124, in Patcher.auto(self, executable_path, force, version_main)
121 except FileNotFoundError:
122 pass
--> 124 release = self.fetch_release_number()
125 self.version_main = release.version[0]
126 self.version_full = release
File ~/.local/lib/python3.10/site-packages/undetected_chromedriver/patcher.py:145, in Patcher.fetch_release_number(self)
143 path = path.upper()
...
File /usr/lib/python3.10/urllib/request.py:643, in HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs)
642 def http_error_default(self, req, fp, code, msg, hdrs):
--> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
It says it's an http error(? Please help. Im able to run the regular webdriver library.
Beta Was this translation helpful? Give feedback.
All reactions