tokland / youtube-upload

Upload videos to Youtube from the command line
2.06k stars 464 forks source link

TypeError: __init__() got an unexpected keyword argument 'firefox_options' #347

Open chao-cc opened 2 years ago

chao-cc commented 2 years ago

Tokland is not working on youtube-upload anymore. However, @kootsoop is. If you prepare a PR, we'll gladly merge it. Any help, gratefully received.

Describe the bug TypeError: init() got an unexpected keyword argument 'firefox_options'

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Additional context Traceback (most recent call last): File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/upload.py", line 26, in main(video_path, metadata_path, thumbnail_path) File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/upload.py", line 7, in main uploader = YouTubeUploader(video_path, metadata_path, thumbnail_path) File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/youtube_uploader_selenium/init.py", line 33, in init self.browser = Firefox(current_working_dir, current_working_dir) File "/Users/donny./Documents/PythonProjects/youtube_uploader_selenium/venv/lib/python3.9/site-packages/selenium_firefox/firefox.py", line 86, in init self.driver = webdriver.Firefox(firefox_profile=profile, firefox_options=options) TypeError: init() got an unexpected keyword argument 'firefox_options'

AzapiSolutions commented 1 year ago

managed to solve? same problem here

R3PO97 commented 8 months ago

Same issue, was anyone able to find a fix?

R3PO97 commented 8 months ago

Whatsup,

Error comes up when instantiating selenium's Firefox webdriver -

self.driver = webdriver.Firefox(firefox_profile=profile, firefox_options=options) TypeError: WebDriver.init() got an unexpected keyword argument 'firefox_profile'

Selenium deprecated 'firefox_options` with Selenium 3.8.0. See below: https://github.com/SeleniumHQ/selenium/blob/4c0404e9580050c488f714885adea712a6f2da0d/py/CHANGES#L368

Selenium 3.8.0

Just use Selenium 3.7.0. Worked for me.