Question
This works perfectly locally on my windows 11 laptop, I’m not familiar with linux so…
Here’s the corresponding code:
What I get from vercel logs:
Traceback (most recent call last):
File "/var/lang/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/vc__handler__python.py", line 13, in <module>
__vc_spec.loader.exec_module(__vc_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/api/index.py", line 28, in <module>
driver = webdriver.Chrome(service=service, options=options)
File "/var/task/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/var/task/selenium/webdriver/chromium/webdriver.py", line 50, in __init__
if finder.get_browser_path():
File "/var/task/selenium/webdriver/common/driver_finder.py", line 47, in get_browser_path
return self._binary_paths()["browser_path"]
File "/var/task/selenium/webdriver/common/driver_finder.py", line 78, in _binary_paths
raise NoSuchDriverException(msg) from errINIT_REPORT Init Duration: 1212.16 ms Phase: init Status: error Error Type: Runtime.Unknown
[ERROR] NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
Traceback (most recent call last):
File "/var/lang/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/vc__handler__python.py", line 13, in <module>
__vc_spec.loader.exec_module(__vc_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/api/index.py", line 28, in <module>
driver = webdriver.Chrome(service=service, options=options)
File "/var/task/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/var/task/selenium/webdriver/chromium/webdriver.py", line 50, in __init__
if finder.get_browser_path():
File "/var/task/selenium/webdriver/common/driver_finder.py", line 47, in get_browser_path
return self._binary_paths()["browser_path"]
File "/var/task/selenium/webdriver/common/driver_finder.py", line 78, in _binary_paths
raise NoSuchDriverException(msg) from errINIT_REPORT Init Duration: 1832.62 ms Phase: invoke Status: error Error Type: Runtime.Unknown
any help is appreciated thxx!