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

Driver name mismatch for Apple M1, M1 Pro & M1 Max #506

Closed
Pwuts opened this issue Apr 20, 2023 · 7 comments
Closed

Driver name mismatch for Apple M1, M1 Pro & M1 Max #506

Pwuts opened this issue Apr 20, 2023 · 7 comments

Comments

@aleksandr-kotlyar
Copy link
Collaborator

aleksandr-kotlyar commented Apr 20, 2023

@Pwuts Already has this here
https://github.com/SergeyPirogov/webdriver_manager/blob/master/webdriver_manager/drivers/chrome.py#L46

What version of wdm do you use?
Provide a sample of code to reproduce and the wdm logs.
Describe on which platform works wrong.

Its hard to go each time to side project searching for such info.

@Pwuts
Copy link
Author

Pwuts commented Apr 20, 2023

@aleksandr-kotlyar example log is in the OP of Significant-Gravitas/AutoGPT#2600.

====== WebDriver manager ======
Current google-chrome version is 112.0.5615
Get LATEST chromedriver version for 112.0.5615 google-chrome
There is no [mac64_m1] chromedriver for browser 112.0.5615 in cache
Trying to download new driver from https://chromedriver.storage.googleapis.com/112.0.5615.49/chromedriver_mac64_m1.zip
SYSTEM:  Command browse_website returned: Error: There is no such driver by url https://chromedriver.storage.googleapis.com/112.0.5615.49/chromedriver_mac64_m1.zip
 THOUGHTS:  It seems like we need to use a web driver to browse the website. I think we should use Selenium to automate the browsing process and extract the information we need.
REASONING:  Selenium is a powerful tool for automating web browsing and can be used to extract information from websites. By using Selenium, we can automate the browsing process and extract the information we need without having to manually navigate the website.

Driver version to download: ``
Logic:

# driver_version_to_download = '112.0.5615.49'

if version.parse(driver_version_to_download) < version.parse("106.0.5249.61"):	# false
    os_type = os_type.replace("mac_arm64", "mac64_m1")

Expected output: mac_arm64

@Pwuts
Copy link
Author

Pwuts commented Apr 20, 2023

This doesn't come from my machine; I'll ask for more info from the submitter (e.g. package version).

@Pwuts
Copy link
Author

Pwuts commented Apr 21, 2023

@aleksandr-kotlyar do you still need more info?

@aleksandr-kotlyar
Copy link
Collaborator

aleksandr-kotlyar commented Apr 22, 2023

@Pwuts thank you! Still need package version, actual os architecture, browser version, installed browser architecture, and expected behavior for each architecture in topic: M1, M1 PRO, M1 MAX or link to docs where describes what pattern for each of it should be below 106, after 106 and other versions of chrome for each arch.

@yogendrasinghx
Copy link

@Pwuts I had experienced a similar issue on my Mac Mini M1 with Chrome version 112.0.5615.137 (Official Build) (arm64), but I was able to resolve it by updating my version of webdriver-manager. Specifically, after updating to version 3.8.6, my program was able to run without any further issues.

Based on my experience, I would suggest that you try upgrading to the latest version of the webdriver-manager package. Doing so may help to resolve the issue you are experiencing.

Best regards

@aleksandr-kotlyar
Copy link
Collaborator

Use 3.8.6+ version of wdm. If still reproduces feel free to reopen issue.

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

No branches or pull requests

3 participants