Python Code Troubleshooting on Linux Server

Job ID: 38561615

Budget: $10 – $30 USD

python3 v2.py
Iniciando o driver do Chrome...
Traceback (most recent call last):
File "v2.py", line 180, in <module>
executar_bot()
File "v2.py", line 161, in executar_bot
driver = iniciar_driver()
File "v2.py", line 37, in iniciar_driver
driver = webdriver.Chrome(service=service, options=options)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 66, in __init__
super().__init__(command_executor=executor, options=options)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 212, in __init__
self.start_session(capabilities)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/local/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55a5274ea2da <unknown>
#1 0x55a5271b8200 <unknown>
#2 0x55a5271f01e5 <unknown>
#3 0x55a5271ec058 <unknown>
#4 0x55a527238a7e <unknown>
#5 0x55a527238296 <unknown>
#6 0x55a52722c673 <unknown>
#7 0x55a5271fa473 <unknown>
#8 0x55a5271fb47e <unknown>
#9 0x55a5274b10db <unknown>
#10 0x55a5274b5071 <unknown>
#11 0x55a52749d9d5 <unknown>
#12 0x55a5274b5bf2 <unknown>
#13 0x55a527482b6f <unknown>
#14 0x55a5274d9248 <unknown>
#15 0x55a5274d9417 <unknown>
#16 0x55a5274e90cc <unknown>
#17 0x7f395d8a7609 start_thread
Related categories: Python Linux Software Architecture Ubuntu