|
发表于 2022-11-6 11:44:14
|
显示全部楼层
docker方式
重新gitclone了一下,再build了docker有错误,webdriver有错
2022-11-06 11:42:01 [INFO ] ---- Service start!
2022-11-06 11:42:06 [INFO ] ---- patching driver executable /root/.local/share/undetected_chromedriver/1e496e09a0e62392_chromedriver
2022-11-06 11:42:07 [ERROR ] ---- Webdriver quit abnormly, reason: [Errno 8] Exec format error: '/root/.local/share/undetected_chromedriver/1e496e09a0e62392_chromedriver'. 4 retry times left.
2022-11-06 11:42:19 [INFO ] ---- patching driver executable /root/.local/share/undetected_chromedriver/848ff8f102c13f31_chromedriver
Traceback (most recent call last):
File "/app/data_fetcher.py", line 28, in fetch
return self._fetch()
File "/app/data_fetcher.py", line 40, in _fetch
driver = self._get_webdriver()
File "/app/data_fetcher.py", line 63, in _get_webdriver
driver = uc.Chrome(options = chrome_options, version_main = self._chromium_version)
File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/__init__.py", line 409, in __init__
super(Chrome, self).__init__(
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in __init__
self.service.start()
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/root/.local/share/undetected_chromedriver/1e496e09a0e62392_chromedriver'
2022-11-06 11:42:19 [ERROR ] ---- Webdriver quit abnormly, reason: [Errno 8] Exec format error: '/root/.local/share/undetected_chromedriver/848ff8f102c13f31_chromedriver'. 3 retry times left.
|
|