Hi, I’m encountering an issue while attempting to deploy my app on Streamlit Cloud. It functions perfectly on my local environment, but it seems to face difficulties accessing specific columns in pandas or performing necessary transformations on the cloud. I’ve included a requirement text specifying the versions I use locally, and the logs indicate that these versions are correctly installed. I’ve spent several days troubleshooting the problem as it works seamlessly on my local setup. I’ve thoroughly debugged everything I could think of, yet the issue persists.
I put a snipped of the code where I am getting the problem and a shot of the problem itself. Thank you very much!
I have been unable to even create a session after more than half an hour trying, so I cannot test the code. I suggest you review the contents of the response, it is probably not what you expect.
I don`t know what you mean by “create a session”. Is there something I can do or some more code that I can post? The response gives json data, and it works fine on the python app and the streamlit local. I have used my app many times before, so i know that the response gives that (also, I have reviewed it again). The problem is only when trying to deploy on streamlit cloud.
From my computer, on stream cloud i don’t get any output like this because it doesnt let me deploy the app and the log only gives me the key error [geometry] that i posted on the first entry. I can take a screenshot of whatever you need.
I solved it!! As it happens, you cannot import the load_dotenv module in streamlit cloud. I had it installed and used it for my api keys and tokens, and the streamlit cloud log said it was imported successfully (but i guess it didn’t work). That is why the problem was only on the cloud.
Thank you so much! It was your message about the app being deployed that gave me the key, because I sarted debugging on the cloud version.
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.