OxxoCodes / Quizlet-dl

A Python script to download and export Quizlets in JSON format
GNU General Public License v3.0
18 stars 6 forks source link

TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path' #5

Open ncorder opened 9 months ago

ncorder commented 9 months ago

Device Machine: x230 Thinkpad OS: Trisquel GNU/Linux (a fork of Ubuntu) Version: I ran git clone on November 26th of 2023

Log:

usr@computer:~/Applications/Quizlet-dl$ python3 quizlet-dl.py [url] [folder]
Traceback (most recent call last):
  File "/home/usr/Applications/Quizlet-dl/quizlet-dl.py", line 124, in main
    driver = webdriver.Firefox(executable_path = path+'\\geckodriver.exe',
TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/usr/Applications/Quizlet-dl/quizlet-dl.py", line 136, in <module>
    main()
  File "/home/usr/Applications/Quizlet-dl/quizlet-dl.py", line 133, in main
    driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment
usr@computer:~/Applications/Quizlet-dl$ 

My theory is perhaps it does not currently support all operating systems. I had moved a copy of the executable for geckodriver into the folder, however it appears to utilize the .exe file.