Error while running "wd = uc.Chrome(options=options)"
hi, when I run the following code:
import undetected_chromedriver.v2 as uc from pyvirtualdisplay import Display
display = Display(visible=0, size=(800, 600)) display.start()
options = uc.ChromeOptions() options.add_argument("--no-sandbox") wd = uc.Chrome(options=options)
I enconter this error :
WebDriverException Traceback (most recent call last)
4 frames /usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self) 117 return_code = self.process.poll() 118 if return_code: --> 119 raise WebDriverException(f"Service {self.path} unexpectedly exited. Status code was: {return_code}") 120 121 def is_connectable(self) -> bool:
WebDriverException: Message: Service /root/.local/share/undetected_chromedriver/1b2da929686a5f20_chromedriver unexpectedly exited. Status code was: 1
I would be thankful if anyone could help me.