Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhinavramana opened this issue Apr 27, 2023 · 0 comments

Comments

@abhinavramana
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant