youtube-upload icon indicating copy to clipboard operation
youtube-upload copied to clipboard

Unable to generate metadata.json for uploading due to geckodriver crashing

Open abhinavramana opened this issue 1 year ago • 0 comments

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 I am trying to use youtube_uploader_selenium . However, it seems I need metadata.json file as per the documentation. So when I try to generate that file by running the command-line, I get the following error:

(venv) abhinav@abhinav-Alienware-Ubuntu:~/WORKSPACE/youtube_uploader_selenium$ python3 upload.py --video ~/Downloads/upload_tiktok.mp4
Traceback (most recent call last):
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/upload.py", line 26, in <module>
    main(args.video, args.meta, args.thumbnail, profile_path=args.profile)
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/upload.py", line 10, in main
    uploader = YouTubeUploader(video_path, metadata_path, thumbnail_path, profile_path)
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/youtube_uploader_selenium/__init__.py", line 37, in __init__
    self.browser = Firefox(profile_path=profile_path, pickle_cookies=True, full_screen=False)
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/venv/lib/python3.10/site-packages/selenium_firefox/firefox.py", line 94, in __init__
    super().__init__(
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/venv/lib/python3.10/site-packages/selenium_browser/selenium_browser.py", line 62, in __init__
    self.driver = webdriver_class(**webdriver_kwargs)
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/venv/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
    self.service.start()
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/venv/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 98, in start
    self.assert_process_still_running()
  File "/home/abhinav/WORKSPACE/youtube_uploader_selenium/venv/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 109, in assert_process_still_running
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: -6

I did not make any changes to requirements.txt :

k-selenium-cookies==0.0.4
selenium==3.141.0
selenium-browser==0.0.12
selenium-firefox==2.0.7

Expected behavior I expected it to generate the metadata json file by opening a browser and allowing me to login

Desktop (please complete the following information):

  • Firefox: 112.0.2 (64-bit)
  • OS: Ubuntu
  • OS Version : 22.04
  • Python Version 3.10.6
  • geckodriver : 0.32.2 ( 2023-04-24)

Additional context Add any other context about the problem here.

abhinavramana avatar Apr 27 '23 20:04 abhinavramana