─────────────────────────────────────── uv ───────────────────────────────────────────Using uv pip install. × No solution found when resolving dependencies: ╰─▶ Because the current Python version (3.12.7) does not satisfy Python>=3.10,<3.12 and streamlit-ydata-profiling==0.2.1 depends on Python>=3.10,<3.12, we can conclude that streamlit-ydata-profiling==0.2.1 cannot be used. And because you require streamlit-ydata-profiling==0.2.1, we can conclude that the requirements are unsatisfiable.Checking if Streamlit is installed─────────────────────────────────────────────────────────────────────────────────────
facing this error while deploying on the streamlit working fine on local host
Based on the error message, it looks like one of your dependencies doesn’t support python 3.12 yet (Python>=3.10,<3.12) – if you go to your app settings and change the python version to 3.11, I would guess that it will work.
Ah, sorry – I thought there was a way to change it in settings. You might need to delete the app and re-create it. And, when you re-create it, you can click “Advanced Settings” and select a different python version.
Note that you could probably also change your requirements.txt to not specify a specific version of that package, and that might work instead of changing your python version.
I did some fiddling with the app and dependencies – I think the streamlit_pandas_profiling package was really the issue, was just out of date. Fortunately, the ydata-profiling package works as a standalone package if you just use st.html(profile.html)
Here’s my version of the app, and requirements.txt which now works – it’s currently running on python 3.12