명령어 등등
chromedriver 악성코드 에러 xattr -d com.apple.quarantine chromedriver
mcdn
2022. 3. 31. 19:39
반응형
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 96
Current browser version is 99.0.4844.84 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
이건 크롬 버전 안 맞을 때 에러
공식 사이트 가서 크롬 버전에 맞게 다운 받으면 된다.
내 경우에는 99 버전
팝업창이 뜨면서 악성코드 검사 못함~이 나오면
Traceback (most recent call last):
File "/Users/a/Documents/imagehtml/aistages.py", line 17, in <module>
driver = webdriver.Chrome(options=opts, executable_path=chrome_driver)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 109, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service ./chromedriver unexpectedly exited. Status code was: -9
이 에러로 나가게 된다.
그럼 이 코드를 쓴다.
xattr -d com.apple.quarantine chromedriver
해결.
반응형