leonidessaguisagjr / webdriverdownloader

Python module to facilitate downloading and deploying WebDriver binaries. Currently supporting geckodriver, chromedriver and operachromiumdriver.
https://pypi.org/project/webdriverdownloader/
MIT License
20 stars 17 forks source link

downloading geckodriver fails on macOS #18

Open workflowsguy opened 1 year ago

workflowsguy commented 1 year ago

When trying to download the geckodriver either through script or CLI on macOS, there is the following error:

RuntimeError: Error, unable to determine correct filename for 64bit macos

sinedie commented 1 year ago

The error is in this line. Cause it is searching for a file with the string macos64 and it doesn't exist in github. It should be macos-aarch64

https://github.com/leonidessaguisagjr/webdriverdownloader/blob/959dff64f524509c611b2151152414b6b13bf9de/webdriverdownloader/webdriverdownloader.py#L320

image

sinedie commented 1 year ago

A workaround could be use the library like this

gdd.download_and_install(os_name='macos', bitness='-aarch64')

if you already know if your are in macos and 64 bit machine. Or use 32 bit version? idk

NOTE: I didn't try it, dont own a mac, but should work