youtube_uploader_selenium
youtube_uploader_selenium copied to clipboard
Does script work wuthout GUI?
As I understood the script uses firefox, but firefox does not work without Linux GUI. I get
Traceback (most recent call last):
File "upload.py", line 19, in <module>
main(args.video, args.meta)
File "upload.py", line 7, in main
uploader = YouTubeUploader(video_path, metadata_path)
File "/home/azat/youtube_uploader_selenium/youtube_uploader_selenium/__init__.py", line 31, in __init__
self.browser = Firefox(current_working_dir, current_working_dir)
File "/usr/local/lib/python3.7/dist-packages/selenium_firefox/firefox.py", line 178, in __init__
firefox_binary=ff_binary
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Error - Firefox: quit() - 'Firefox' object has no attribute 'driver'