I am getting error messages on google sheet connections (from streamlit_gsheets import GSheetsConnection) when i use streamlit cloud. Cant import modules of gsheet connections. Codes are working on local just fine. Here are my requirements and error message below .(i tried 1.37 , doesnt work either) Could you please help me i cant find any solution.
On my machine Iβm running python 3.12
<requirements.txt>
streamlit>=1.28
matplotlib>=3.8.4
streamlit-extras
streamlit-image-comparison
st-gsheets-connection
pandas>=1.5.3
numpy==1.26.4
folium>=0.17.0
streamlit_folium>=0.21.0
[14:35:00] π Python dependencies were installed from /mount/src/yazgansmart/requirements.txt using uv.
Check if streamlit is installed
Streamlit is already installed
[14:35:02] π¦ Processed dependencies!
ββββββββββββββββββββββ Traceback (most recent call last) βββββββββββββββββββββββ
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/exec_code.py:85 in exec_func_with_error_handling
/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:576 in code_to_exec
/mount/src/yazgansmart/pages/3_Yazgan_Database_Bot.py:4 in <module>
1 import streamlit as st
2 import pandas as pd
3 from difflib import get_close_matches
β± 4 from streamlit_gsheets import GSheetsConnection
5 import validators
6
7 # Streamlit app title and introduction
/home/adminuser/venv/lib/python3.11/site-packages/streamlit_gsheets/__init__
.py:15 in <module>
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
β± 15 from streamlit_gsheets.gsheets_connection import GSheetsConnection # n
16
/home/adminuser/venv/lib/python3.11/site-packages/streamlit_gsheets/gsheets_
connection.py:37 in <module>
34 from sql_metadata import Parser
35 from streamlit.connections import ExperimentalBaseConnection
36 from streamlit.runtime.caching import cache_data
β± 37 from streamlit.type_util import convert_anything_to_df, is_dataframe_c
38 from validators.url import url as validate_url
39 from validators.utils import ValidationError
40
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ImportError: cannot import name 'convert_anything_to_df' from
'streamlit.type_util'
(/home/adminuser/venv/lib/python3.11/site-packages/streamlit/type_util.py)
[14:43:19] π Pulling code changes from Github...
[14:43:20] π¦ Processing dependencies...