Unsupported locale setting en_IN

Hello Team,

My app works fine on the localhost but when deployed on Streamlit cloud, it throws the following error

locale.Error: unsupported locale setting

Link to the APP https://carlease.streamlit.app/

    locale.setlocale(locale.LC_MONETARY, 'en_IN.UTF-8')

What can I do here.

Krishna

Hey @KrishnaKasula,

If you create a packages.txt file and all locales-all, your app seems to work – I’ve forked and deployed it here with those changes.

If you see my commit history, I had tried it earlier but with locales instead of locales-all.

Nevertheless, I am still getting an error now with packages.txt containing locales-all.

[14:37:34] πŸš€ Starting up repository: 'car', branch: 'main', main module: 'car.py'

[14:37:34] πŸ™ Cloning repository...

[14:37:36] πŸ™ Cloning into '/app/car'...

[14:37:36] πŸ™ Cloned repository!

[14:37:36] πŸ™ Pulling code changes from Github...

[14:37:36] πŸ“¦ Processing dependencies...

[14:37:36] πŸ“¦ Apt dependencies were installed from /app/car/packages.txt using apt-get.

Get:1 http://security.debian.org/debian-security stable-security/updates InRelease [48.0 kB]

Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]

Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]

Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]

Get:5 https://packages.microsoft.com/debian/10/prod buster InRelease [6517 B]

Get:6 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [245 kB]

Get:7 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [163 kB]

Reading package lists...[2023-06-12 14:37:38.343877] 

E: Repository 'http://security.debian.org/debian-security stable-security/updates InRelease' changed its 'Codename' value from 'bullseye-security' to 'bookworm-security'

[14:37:39] ❗️ installer returned a non-zero exit code

[14:37:39] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[14:39:15] ❗️ Streamlit server consistently failed status checks

[14:39:15] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

Strange, it’s working for you. Can you let me know what else am I missing?

Really weird that it’s throwing an error for you and working fine with my repo. What happens if you delete the app and re-deploy that same repo?

Surprisingly it worked. It appears that reincarnation is the solution to most software issues. Thank you.

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