•   over 1 year ago

AttributeError Streamlit & AWS secret errors, streamlit given link not working

My web-app is working locally and in Codespace but the Streamlit link I have is not working I got like AttributeError: 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).
Traceback:
File "/mount/src/mistralrag-/app.py", line 1, in
import invoke_agent as agenthelper
File "/mount/src/mistralrag-/invoke_agent.py", line 35, in
credentials=Session().get_credentials().get_frozen_credentials()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ how can we install boto3 in the web-app since there is a terminal in Codespace, etc.

  • 4 comments

  •   •   over 1 year ago

    It would work for a while, but it wouldn't afterwards etc. and would get the same error even though I fixed it etc.

  • Manager   •   over 1 year ago

    Thanks for reaching out! I've passed this question on to the team.

  • Manager   •   over 1 year ago

    Hi Yuito,

    To answer your question about installing boto3 in the web app, you can managage dependencies in streamlit cloud with a requirements.txt file. Check out this article to learn more: https://docs.streamlit.io/deploy/concepts/dependencies

  •   •   over 1 year ago

    Good morning, Managers,

    I got all required requirements installed in requirements.txt, how can I install aws directly in my backend? I tried it on devcontainer but nothing happened on my main link on Streamlit, can I submit an IP address with port or devcontainer for the judges.

    Best regards,
    Mike

Comments are closed.