-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Getting this issue while trying to import:
from streamlit_gsheets.gsheets_connection import GSheetsConnection # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\123\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit_gsheets\gsheets_connection.py", line 39, in <module> from validators.utils import ValidationFailure ImportError: cannot import name 'ValidationFailure' from 'validators.utils'
all the same code:
import streamlit as st import streamlit_gsheets from streamlit_gsheets import GSheetsConnection
url = "https://docs.google.com/spreadsheets/d/1JDy9md2VZPz4JbYtRPJLs81_3jUK47nx6GYQjgU8qNY/edit?usp=sharing"
conn = st.experimental_connection("gsheets", type=GSheetsConnection)
data = conn.read(spreadsheet=url, usecols=[0, 1])
st.dataframe(data)
`