GSheets Connection

Hello good. I am moving my app’s connection to st.experimental_connection. The database source is from Google Sheets. Locally it works very well for me, but when deploying in Streamlit Share I get the error that I paste below. Will I have to inform it in the requirements.txt? how is it instantiated?

tFile "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
File "/app/dol-app/app2.py", line 2, in <module>
    from streamlit_gsheets import GSheetsConnection

Hi @Martin_Penas, and welcome to our forums!

Just to be sure, did you add streamlit_gsheets to your requirements.txt?

Thanks,
Charly

1 Like

Thanks. Im add git+https://github.com/streamlit/gsheets-connection in requirements.txt. It´s the solution

1 Like

Glad to hear it fixes it! :slight_smile:

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