Install chromium

Hello friends, I was installing Chromium in streamlit cloud when I got the following error

Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
Hit:3 http://security.debian.org/debian-security stable-security/updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Hit:5 https://packages.microsoft.com/debian/10/prod buster InRelease
Reading package lists...[2023-06-14 09:58:53.136326] 
Reading package lists...[2023-06-14 09:58:53.702524] 
Building dependency tree...[2023-06-14 09:58:53.890093] 
Reading state information...[2023-06-14 09:58:53.890725] 
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 chromium : Depends: libc6 (>= 2.35) but 2.31-13+deb11u6 is to be installed
            Depends: libflac12 (>= 1.3.0) but it is not installable
            Depends: libfreetype6 (>= 2.11.1) but 2.10.4+dfsg-1+deb11u1 is to be installed
            Depends: libjsoncpp25 (>= 1.9.5) but it is not installable
            Depends: libopenh264-7 (>= 2.3.1+dfsg) but it is not installable
            Depends: libsnappy1v5 (>= 1.1.9) but it is not going to be installed
            Depends: libstdc++6 (>= 12) but 10.2.1-6 is to be installed
            Depends: libwebp7 (>= 1.2.4) but it is not installable
            Depends: libwebpdemux2 (>= 1.2.4) but it is not going to be installed
            Depends: libwebpmux3 (>= 1.2.4) but it is not going to be installed
            Depends: chromium-common (= 114.0.5735.106-1~deb12u1) but it is not going to be installed
            Recommends: chromium-sandbox but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
[09:58:54] ❗️ installer returned a non-zero exit code

Hi @amiran

Can you share the contents of your requirements.txt file or if they are specific for the OS, the packages.txt file.

Details on installing app dependencies in Streamlit apps is provided in the following Docs page:

Best regards,
Chanin

Yes, Sure
I used the following libraries in requirements.txt:
bs4
pillow
requests
psutil
urllib3
seleniumbase
webdriver-manager
and in packages.txt
From the word chromium to install the browser

Here is a simple project how to use selenium on streamlit cloud:

I installed Chromium with exactly the same items that I sent you in the previous answer about two weeks ago and everything was correct and working, but now it doesn’t work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.