You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the same error. If you build and run locally on arm64, please try using public.ecr.aws/lambda/python:3.13-x86_64 in Dockerfile. It works for me.
I keep on getting the above error.
Python 3.13.0
chromium 131.0.6778.204
chromedriver 131.0.6778.204
selenium 4.27.1
Dockerfile:
FROM public.ecr.aws/lambda/python@sha256:f5b51b377b80bd303fe8055084e2763336ea8920d12955b23ef8cb99dda56112 as build
RUN dnf install -y unzip &&
curl -Lo "/tmp/chromedriver-linux64.zip" "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.85/linux64/chromedriver-linux64.zip" &&
curl -Lo "/tmp/chrome-linux64.zip" "https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.85/linux64/chrome-linux64.zip" &&
unzip /tmp/chromedriver-linux64.zip -d /opt/ &&
unzip /tmp/chrome-linux64.zip -d /opt/
FROM public.ecr.aws/lambda/python@sha256:f5b51b377b80bd303fe8055084e2763336ea8920d12955b23ef8cb99dda56112
RUN dnf install -y atk cups-libs gtk3 libXcomposite alsa-lib
libXcursor libXdamage libXext libXi libXrandr libXScrnSaver
libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb
xorg-x11-xauth dbus-glib dbus-glib-devel nss mesa-libgbm
RUN pip install selenium==4.27.1
COPY --from=build /opt/chrome-linux64 /opt/chrome
COPY --from=build /opt/chromedriver-linux64 /opt/
COPY lambda_package/ /var/task/
CMD [ "lambda_function.lambda_handler" ]
Code:
options = webdriver.ChromeOptions()
service = webdriver.ChromeService("/opt/chromedriver")
Please help me identify the issue
The text was updated successfully, but these errors were encountered: