Python

셀레니움 크롬드라이버 문제

ki

kia_se
답변 완료
30 XP

아직 해결 안됐습니다

어제까지 동작하던 웹 크롤링 프로젝트에서
해당 에러와 함께 셀레니움 크롬창이 실행되지 않아서 동작하지 않습니다
(프로젝트 경로, 인터프리터 경로는 임의로 대체했습니다)

문제 코드

28 | options = webdriver.ChromeOptions()
29 | options.add_experimental_option("excludeSwitches", ["enable-logging"])
30 | service = Service(chromedriver_autoinstaller.install())
31 | driver = webdriver.Chrome(service=service, options=options)

에러 코드

Traceback (most recent call last):
  File "J:\projectPath\main.py", line 31, in <module>
    driver = webdriver.Chrome(
  File "C:\PythonInterpreter39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 70, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "C:\PythonInterpreter39\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 90, in __init__
    self.service.start()
  File "C:\PythonInterpreter39\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "C:\PythonInterpreter39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\PythonInterpreter39\lib\subprocess.py", line 1360, in _execute_child
    args = list2cmdline(args)
  File "C:\PythonInterpreter39\lib\subprocess.py", line 565, in list2cmdline
    for arg in map(os.fsdecode, seq):
  File "C:\PythonInterpreter39\lib\os.py", line 822, in fsdecode
    filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not NoneType```

인터넷에 좀 찾아보니 크롬 115.0 버전 문제라는거 같은데 제 크롬을 다운그레이드하는것 말고는 해결할 방법이 없나요?
여러명이 작업중인 프로젝트인데, 이것 때문에 모두가 크롬을 다운그레이드할수는 없을것 같아 질문합니다

어제까지 정상동작했던 프로젝트인지라 난감하네요...

불러오는 중...