When I use the streamlit run *app_name*.py command, and I view it in the browser, the app functions perfectly fine. After I pushed the repo to Github for deployment, I followed the directions to deploy it using Streamlit.
However, I get an error on the live website despite the local version working fine.
This is what appears:
Is there a quick way to make a packages.txt file like there is with pipreq for requirements.txt? If not, how should I go about figuring out which packages should be added to the file? Thanks!
Update: I followed the directions in the thread and it solved that issue! However, I now have another error. Essentially, I am trying to create a webapp for my image classification Keras model and have an issue that appears when an image is trying to be classified. Specifically, the error I get is:
No, there isn’t. pipreqs as far as I know scans the Python code to understand the imports. However, there really isn’t a good way to know which drivers or other libraries outside of Python are required, since every install/compile toolchain can be different.
To clarify, does this work locally but not when deployed, or are you having trouble making the code work at all?
I would check that you both have the same Python version and same package versions on both machines. When there are errors reading pickled files or other serialization formats, errors usually come from version mismatches.
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.