0

I have a web scraping project with python using selenium. I need to distribute it other people who don't have python. So, I wanted to pack my code into an exe file.

The code is completed, no problem working on python. Then packed into an exe with pyinstaller, no problem working by clicking the exe. (I'm adding latest geckodriver.exe into the folder of exe file)

Unfortunately, as soon as I trigger the exe from task scheduler, I'm getting below error.

I guess the problem is about Geckodriver paths, but couldn't figure it out.

Photo

url = "https://www.myurl.com"

options = Options()
options.headless = False

driver = webdriver.Firefox(options=options)  #Line34 is here
driver.get(url)
TylerH
  • 20,799
  • 66
  • 75
  • 101
Onur.A
  • 11
  • 1
  • https://stackoverflow.com/questions/40466809/permission-denied-geckodriver-log-while-running-selenium-webdriver-in-python – Carapace Sep 13 '22 at 08:36

0 Answers0