Good Afternoon, i have deployed several excel files in host. However, when i have tried to deploy an excel file in the cloud service i get the following error.
TypeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 557, in _run_script
exec(code, module.__dict__)File "/app/portfolio_au/Portfolio.py", line 57, in <module>
df = pd.read_excel(archivo_excel,
Thanks for the question. Do you have a link to the GitHub repo, which would help us see the general file/directory structure of the repo, and see if we can find a fix for this.
The error you encountered indicates that there was a problem with reading the Excel file in your Streamlit Cloud application. Without the specific error message, it’s challenging to determine the exact cause of the issue. However, here are a few suggestions:
File Path: Make sure that the file path you provided to the pd.read_excel() function is correct. Check if the Excel file is located in the expected location and that the path is accessible in the Streamlit Cloud environment.
File Format: Ensure that the Excel file you are trying to read is in a compatible format. Streamlit uses the pandas library to read Excel files, and it supports various Excel file formats such as .xls and .xlsx. If your file is in a different format, you might need to convert it to a supported format before reading it with pd.read_excel().
Dependencies: Check if your Streamlit Cloud environment has all the necessary dependencies installed to handle Excel files. The pandas library should be available in your environment, as it provides the functionality for reading Excel files. You can include the necessary dependencies in your requirements.txt file or specify them using another dependency management approach supported by Streamlit Cloud.
File Size: Consider the size of your Excel file. If the file is large, it might exceed the resource limits of Streamlit Cloud. In such cases, you may need to optimize or preprocess the data before reading it to reduce the file size or limit the amount of data being loaded at once.
Error Logs: As mentioned in the error message, the full error details should be available in the logs of your Streamlit Cloud app. Access the logs to get more information about the specific error, which can help you diagnose and resolve the issue. You can click on “Manage app” in the lower right of your app to access the logs.
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.