Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By yyz20002008
I deployed a flask app with selenium and I installed chromedriver and move to /usr/bin/chromedriver in debian 12 x64 OS. But it’s still errored out. error message:
Traceback (most recent call last):
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
[flight] [2023-11-27 02:54:29] worker.init_process()
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
[flight] [2023-11-27 02:54:29] self.load_wsgi()
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
[flight] [2023-11-27 02:54:29] self.wsgi = self.app.wsgi()
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
[flight] [2023-11-27 02:54:29] self.callable = self.load()
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
[flight] [2023-11-27 02:54:29] return self.load_wsgiapp()
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
[flight] [2023-11-27 02:54:29] return util.import_app(self.app_uri)
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
[flight] [2023-11-27 02:54:29] mod = importlib.import_module(module)
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[flight] [2023-11-27 02:54:29] return _bootstrap._gcd_import(name[level:], package, level)
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[flight] [2023-11-27 02:54:29] File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[flight] [2023-11-27 02:54:29] File "/workspace/app.py", line 70, in <module>
[flight] [2023-11-27 02:54:29] driver = webdriver.Chrome(options=option)
[flight] [2023-11-27 02:54:29] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
[flight] [2023-11-27 02:54:29] super().__init__(
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 53, in __init__
[flight] [2023-11-27 02:54:29] self.service.start()
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 102, in start
[flight] [2023-11-27 02:54:29] self.assert_process_still_running()
[flight] [2023-11-27 02:54:29] File "/workspace/.heroku/python/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 115, in assert_process_still_running
[flight] [2023-11-27 02:54:29] raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
[flight] [2023-11-27 02:54:29] selenium.common.exceptions.WebDriverException: Message: Service /workspace/.cache/selenium/chromedriver/linux64/119.0.6045.105/chromedriver unexpectedly exited. Status code was: 127
code:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
#service = Service(executable_path='chromedriver.exe')
from selenium.webdriver.chrome.options import Options
option = Options()
#option = webdriver.ChromeOptions()
option.add_argument("--headless=new")
#option.add_argument('--ignore-certificate-errors')
#option.add_argument("--test-type")
#options.binary_location = "/usr/bin/chromium"
#option.add_argument("--no-sandbox")
#option.add_argument('disable-notifications')
#driver = webdriver.Chrome(service=service,options=option)
driver = webdriver.Chrome(options=option)
crisdan
ae7a891aafca4ababd85d7d934efa1
lenartgolob
e4267993e1664a3686ec6b191743a8
Logan Thomas