I just started using Streamlit and I was able to deploy my app yesterday perfectly. The app runs locally without any issue and sends user input to googlesheets. The error occurs whenever I try to deploy and code includes a connection to a googlesheet.
It gives the following error:
βValueError: numpy.dtype size changed, may indicate binary incompatibility.
Expected 96 from C header, got 88 from PyObject.β
To solve this issue, I added numpy==1.25.1 (my local numpy version) to the requirements.txt. But now the following error occurs.
l have the exact same problem as @halilibrahimaysell! I got the error when trying to access a google sheet with streamlit_gsheets.
This code runs perfectly on my local machine,
Based on @Rub_Khaβs link, I tried requiring numpy=1.26.4. I get a different error now that is still more mysterious, but still related to accessing gsheets.
Here is the last bit of error log form the Streamlit cloud app manager:
/home/adminuser/venv/lib/python3.12/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.12/site-packages/streamlit/type_util.py)
2024-08-14 18:18:06.898 503 GET /script-health-check (127.0.0.1) 184.19ms
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking βAccept allβ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.