I am trying scrape a page with selenium web driver and it is returning 127

PySocks-1.7.1
attrs-23.2.0
h11-0.14.0
outcome-1.3.0.post0
python-dotenv-1.0.1
selenium-4.22.0
sniffio-1.3.1
sortedcontainers-2.4.0
trio-0.26.0
trio-websocket-0.11.1
typing_extensions-4.12.2
webdriver-manager-4.0.1
websocket-client-1.8.0
wsproto-1.2.0
python 3.11

INFO:root:Error: Message: Service /app/chromedriver unexpectedly exited. Status code was: 127
2024-07-16T05:04:44.477355735Z
2024-07-16T05:04:44.480034503Z INFO:root:login not successful

What OS and version are you using?
What python version are you using?
Do you see any related error in sudo dmesg output?

What OS and version are you using? – running through docker file on windows (local environment)
What python version are you using? – python 3.11
Do you see any related error in sudo dmesg output? – no

Question for you to research; does selenium work from inside a container?

The reason I ask is that selenium expects to run the broswer and that requires a GUI environment I assume.
The container does not have such an environment I also assume.

My requirement is to deploy a python web driver selenium script to AWS fargate by using python 3.11 version
The container worked as expected through AWS lambda with python 3.8
but we need to use latest version of python at least 3.11 with AWS fargate

I suspect Its not python that is your issue; its likely to be webdrivers.

But you will need to debug this bit by bit to find the component that is at the wrong version or misconfigured.

are you referring selenium webdriver ?

Yes that is what I mean

do we have any link where i can check selenium web driver and the python version compatibilities and chrome driver list ?

In cases like this I read the documentation of the projects I’m using.

Try the selenium documentation, which I have found to be very good in the past.