ÀÚ´äÀÔ´Ï´Ù
- Issue with Selenium and webdriver
- I'm trying to use the webdriver and Selenium, it was working fine a couple days ago but I'm currently facing this issue where I receive this error: [Errno 8] Exec format error: '/Users/[USER]/.wdm/
https://stackoverflow.com/questions/78789819/issue-with-selenium-and-webdriver/78796998
¸¦ º¸°í ÇØ°á Ç߳׿ä
-------------------------------------
Å©·Òµå¶óÀ̹ö¿Í Å©·ÒÀÇ ¹öÀüÀÌ ÀÏÄ¡ÇØ¾ß ÇÏ´Â °ÍÀº ¾Ë°í ÀÖ½À´Ï´Ù.
¹öÀü ÀÏÄ¡¸¦ À§Çؼ
±×µ¿¾È ChromeDriverManager ¶õ ³à¼®ÀÌ ÀÏÀ» Âü Àß ÇØÁÖ¾î¼,
¹öÀüÀ» ½Å°æ ¾²Áö ¾Ê¾Ò¾ú´Âµ¥¿ä,
¾ó¸¶Àü (¸îÁÖÀü?) ºÎÅÍ
¹öÀüÀÌ ¾È ¸Â¾Æ¼ °è¼Ó ¿À·ù°¡ ¹ß»ýÇÕ´Ï´Ù.
ChromeDriverManager °¡ ãÀº ¹öÀüÀº 127.0.6533.99 ÀÌ°í
Chrome ÀÇ ¹öÀüÀº 127.0.6533.100 ÀÔ´Ï´Ù
Á¶±Ý ±â´Ù¸®¸é ¹öÀüÀÌ ÀÏÄ¡ µÇ°ÚÁö ½Í¾úÁö¸¸,
ÀÌ·± ½ÄÀ¸·Î °è¼Ó ¾î±ß³ª¸é¼ ¾÷µ¥ÀÌÆ®°¡ µÇ´õ¶ó±¸¿ä (3ÁÖ Á¤µµ µÈ°Å °°À½)
´Ù¸¥ ºÐµéÀº ÀÌ·± ¹®Á¦°¡ ¾ø³ª¿ä? (¶ó°í ¹°¾îº¸±â¿£... Á¦°¡ »ç¿ëÇÏ´Â Àåºñ°¡ mac m2 ¶ó¼ ¸¹Àº ºÐµéÀÌ »ç¿ëÇÏ´Â ¹öÀüÀº ¾Æ´Ò ²¨ °°±ä ÇØ¿ä)
Å©·ÒÀ» ¾ïÁö·Î ´Ù¿î±×·¹À̵å Çغ¸·Á°í ÇßÀ¸³ª, ±×°Íµµ ½±Áö°¡ ¾Ê³×¿ä...
µµ¿ÍÁÖ¼¼¿ä.. ¤Ð¤Ð
¼Ò½º)
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
# ÀÌÁ¦ Selenium ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇÏ°í »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
driver.get("https://www.google.com")
print(driver.title)
¿À·ù¸Þ½ÃÁö)
OSError: [Errno 8] Exec format error: '/Users/-----------/.wdm/drivers/chromedriver/mac64/127.0.6533.99/chromedriver-mac-arm64/THIRD_PARTY_NOTICES.chromedriver' |
¿Ïº®ÇÏ°Ô ¾È¸Â¾Æ¼ ¿À·ù ¸Þ½ÃÁö°¡ ³ª¿À´Â°Ô ¾Æ´Ñ°¡¿ä?
³× Å©·Ò¹öÀü´Ù¿î·Îµå À¥ °¡¼ ¾Õ´ë°¡¸® ¹öÀü ¸Â´Â stableÇÑ ¹öÀü ´Ù¿î¹Þ¾Æ Å©·Òµå¶óÀ̹ö ´ëüÇÏ°í µ¹·Áº¸¼¼¿ä. Àú´Â ÀÌ·¸°Ô Çؼ ÇØ°áÇؼ »ç¿ëÁßÀÔ´Ï´Ù.