Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

크롬드라이버 win x64,129.0.6668.58 버전 이상에서 '[WinError 193] %1은(는) 올바른 Win32 응용 프로그램이 아닙니다' 오류발생 #10

Open
ydj515 opened this issue Sep 25, 2024 · 1 comment
Assignees

Comments

@ydj515
Copy link
Member

ydj515 commented Sep 25, 2024

현상

  • 환경 : window x64, python 3.10, chrome version: 129.0.6668.59
  • 코드 : driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
  • 오류메시지 : [WinError 193] %1은(는) 올바른 Win32 응용 프로그램이 아닙니다

해결 방안

  1. C:\Users\{사용자}\.wdm\drivers.json을 연다.
  2. AS-Is 부분의 json을 TO-BE처럼 마지막 부분을 THIRD_PARTY_NOTICES.chromedriver -> chromedriver.exe 로 변경
  • AS-IS
"win64_chromedriver_129.0.6668.58_for_129.0.6668": {
    "timestamp": "25/09/2024",
    "binary_path": "C:\\Users\\{사용자}\\.wdm\\drivers\\chromedriver\\win64\\129.0.6668.58\\chromedriver-win32/THIRD_PARTY_NOTICES.chromedriver"
  }
  • TO-BE
"win64_chromedriver_129.0.6668.58_for_129.0.6668": {
    "timestamp": "25/09/2024",
    "binary_path": "C:\\Users\\{사용자}\\.wdm\\drivers\\chromedriver\\win64\\129.0.6668.58\\chromedriver-win32/chromedriver.exe"
  }

관련 github issue link

SergeyPirogov/webdriver_manager#670

@ydj515 ydj515 self-assigned this Sep 25, 2024
@ydj515 ydj515 converted this from a draft issue Sep 25, 2024
@ydj515
Copy link
Member Author

ydj515 commented Oct 7, 2024

만약 안될 경우에는 그냥 아래와 같이 코드 수정.

  • as-is
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
  • to-be
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService

service = ChromeService(executable_path="REAL_PATH/chrome-win64/chrome_proxy.exe")
driver = webdriver.Chrome(service=service)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issues
Development

No branches or pull requests

1 participant