Open prognt opened 3 months ago
Hay, I have the same problem. Your method didn't work, maybe there are other solutions?
Wow, that was easy. We need the 11th version of python (I dont know, may be I am lucky)
Added chrome_install.sh to Dockerfile and everything works.
FROM python:3.11.4-slim
WORKDIR /app
COPY . /app
RUN apt update && apt install -y \
wget \
curl \
gnupg \
apt-transport-https \
ca-certificates
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \
apt update && \
apt install -y google-chrome-stable && \
apt clean
RUN sh chrome_install.sh
RUN sh install.sh
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt
CMD ["python3", "main.py", "-a", "2"]
Added chrome_install.sh to Dockerfile and everything works.
FROM python:3.11.4-slim WORKDIR /app COPY . /app RUN apt update && apt install -y \ wget \ curl \ gnupg \ apt-transport-https \ ca-certificates RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \ apt update && \ apt install -y google-chrome-stable && \ apt clean RUN sh chrome_install.sh RUN sh install.sh RUN pip3 install --upgrade pip setuptools wheel RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt CMD ["python3", "main.py", "-a", "2"]
i have same problem- what should i do?
2024-07-26T00:28:37.413864000Z 2024-07-26 05:28:37 | ERROR | 105 - 1419 | Unknown error while Login: [Errno 8] Exec format error: 'webdriver/THIRD_PARTY_NOTICES.chromedriver' | Response text: ...
last update error in docker
webdriver-manager==4.0.2
works for me