Skip to content
Advertisement

OSError: [Errno 8] Exec format error: ‘geckodriver’ when trying to open firefox using selenium in python

JavaScript

The entire stack trace looks like:

JavaScript

my path to geckodriver is:

JavaScript

And selenium is in:

JavaScript

Thanks in advance!

Advertisement

Answer

You have most probably installed a version of geckodriver that is meant for a different OS/platform! get the correct version from https://github.com/mozilla/geckodriver/releases and replace the one you have.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement