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.
url = "https://www.myurl.com"
options = Options()
options.headless = False
driver = webdriver.Firefox(options=options) #Line34 is here
driver.get(url)