-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import problem #9
Comments
Thanks, @Sheikh-Hamoodi for pointing this out! 🙂 I'm facing the same error when trying to connect Google Sheets in both ways, i.e., via public URL and private account 👇 Please guide us on this, @sfc-gh-jcarroll 🙏 |
It looks like a breaking change in a recent version 0.21.2 of validators python-validators/validators#283 (see also python-validators/validators#291) Should be able to work around if you pin validators to an earlier version like 0.21.0 @sfc-gh-tszerszen would you be able to make a fix when you get a chance? I'm happy to review. If we want to just update the minimum version of validators and make the change to new error, that's fine with me. |
Thanks a lot for the suggestion @sfc-gh-jcarroll 🤗 |
Hey, I tried to pin the validators but still it gave me the error. The error says: Any suggestion? @sfc-gh-jcarroll |
@Sheikh-Hamoodi @ShruAgarwal @im-sanka @sfc-gh-jcarroll thank you for taking a look and this feedback I'll take a look, probably during next weekend and will get back to you |
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)
`
The text was updated successfully, but these errors were encountered: