I am trying to deploy a “test app” to see how the deployment process works and it is not a very complex app, but does include some libraries outside of Streamlit which I have included in a requirements.txt file and have uploaded everything to my git repo. I keep getting this error when trying to deploy this app and I don’t know why.
import streamlit as st
import pandas as pd
import streamlit_pandas as sp
import numpy as np
import matplotlib.pyplot as plt
import altair as alt
st.set_page_config(page_title= "LETREP25", layout= "wide")
st.title('LETREP25 Dashboard' )
st.subheader('Raw Data')
st.text('For the Physician')
df = pd.read_csv('TestData.csv')
df=df.set_index("Hour")
fig, ax= plt.subplots()
ax = df.plot.barh
st.title('Patient ROM Data')
st.bar_chart(df)
Please can you post the complete error logs from the Cloud Logs on the right as formatted text? Screenshots are harder to work with and are often cut off.
General advice here is to check your package versions. I see pandas in the limited stack trace, but I can’t read the ValueError on the right which starts with num.....
ValueError: numpy.dtype size changed, may indicate binary incompatibility.
Expected 96 from C header, got 88 from PyObject
2025-01-21 20:08:41.465 Uncaught app execution
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py”, line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 579, in code_to_exec
exec(code, module.dict)
File “/mount/src/testplot/letrepstreamlit.py”, line 2, in
import pandas as pd
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/init.py”, line 22, in
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/compat/init.py”, line 18, in
from pandas.compat.numpy import (
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/compat/numpy/init.py”, line 4, in
from pandas.util.version import Version
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/util/init.py”, line 2, in
from pandas.util._decorators import ( # noqa:F401
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/util/_decorators.py”, line 14, in
from pandas._libs.properties import cache_readonly
File “/home/adminuser/venv/lib/python3.12/site-packages/pandas/_libs/init.py”, line 13, in
from pandas._libs.interval import Interval
File “pandas/_libs/interval.pyx”, line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
2025-01-21 20:08:41.639 503 GET /script-health-check (127.0.0.1) 212.79ms
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.