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
Trying to run chromedriver in Google Cloud Run. Here is what the docker file looks like:
FROM python:3.7
ADD main.py /
RUN apt-get update
RUN apt-get install wget
# Install Chrome
#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
COPY . /
RUN pip install --upgrade google-api-python-client
RUN pip install -r requirements.txt
EXPOSE XXXXX
CMD [ "python", "./main.py" ]
Any idea how to fix this error? In my requirements file I have chromedriver_py== 92.0.4515.43 mentioned. Any other dependencies that I need to install?
well you commented out the chrome installation, and the chromedriver needs chrome to work, so maybe this could be the issue.
another way you can debug this: in the CMD run the chromedriver directly (it should be located somewhere in the pypy packages, you need to search it a little) and then see what the output is, what is the correct error message? if this is working, then add all the flags from your python code to the CMD and see if they work as expected or which error message you get.
because you run the driver directly, you get way more info than from running it through python :)
Trying to run chromedriver in Google Cloud Run. Here is what the docker file looks like:
Any idea how to fix this error? In my requirements file I have chromedriver_py== 92.0.4515.43 mentioned. Any other dependencies that I need to install?
The issue seems to be originating from here:
browser = Chrome(executable_path=binary_path, options=opts)
Here's the options:
The text was updated successfully, but these errors were encountered: