0

I am trying to start working with Selenium in Python w/ Ubuntu and it's been quite difficult for now. After some time fighting with the "not in PATH" error, I just put GeckoDriver on the same folder as the .py and added webdriver.Firefox(executable_path='/path/to/gecko') for it work.

Now, it seems that Python can find GeckoDriver exec, but there are permission problems. I've read some similar questions but wasn't able to solve my case, since most of them are talking about Windows systems.

The error I get is the following:

PermissionError: [Errno 13] Permission denied: {path here}

How can I grant Gecko the permission to run? And is there a way to do it everytime I run the script, or it has to be a permanent permission?

Thanks a lot in advance.

nico_so
  • 138
  • 3
  • 18

1 Answers1

0

Just Try giving Read, Write, Execute permission to the dir where GeckoDriver is present. In any Ubuntu base system, you can achieve this by executing the below command on terminal before running the py script.

sudo chmod -R 777 /path/to/gecko
PALASH SHINDE
  • 71
  • 1
  • 9
  • Thanks for your help! I've found this https://stackoverflow.com/questions/10575750/python-ioerror-errno-13-permission-denied where people discuss about 777 as "too much permission" Do you know anything about that, so I can be more informed? Thanks – nico_so Jun 06 '21 at 23:13