The app stoped working on its own. The problem may be due to numba conflict with numpy version ( i specified numpy==1.21.5 and shap =0.41.0). It seems when deploying or rebooting the app it install numpy version above 1.24 on its own, don’t know why
If you are experiencing conflicts between the Numba package and the specified version of NumPy in your Streamlit app, where the app installs a higher version of NumPy automatically during deployment or reboot, there are a few potential solutions you can try:
Pin Numba version: Along with specifying the version of NumPy, you can also explicitly specify the version of Numba in your requirements file or setup.py. This ensures that a compatible version of Numba is installed alongside the specified version of NumPy. For example, you can add numba==<desired_version> to your requirements file.
Use a virtual environment: Create a virtual environment for your Streamlit app and install the required packages within that environment. This helps isolate the package versions used by your app from the system-wide packages. You can use tools like virtualenv or conda to set up and activate the virtual environment.
Use a Docker container: Containerize your Streamlit app using Docker. With Docker, you can create a reproducible environment that includes all the required packages and their specific versions. This allows you to control the environment and avoid conflicts with package installations.
Update dependencies: Check if there are any updates available for the packages you are using, such as Numba or other dependencies. Sometimes, newer versions of packages may resolve compatibility issues or conflicts with other packages.
Check package compatibility: Verify the compatibility between the versions of Numba and NumPy you are using. Some package versions may have specific compatibility requirements, and using incompatible versions can lead to conflicts. Refer to the documentation or release notes of the packages to ensure compatibility.
Seek community support: If the issue persists, consider reaching out to the community or support channels for the specific packages or frameworks you are using. They may be able to provide further guidance or help troubleshoot the conflict.
By applying these steps, you can address the conflicts between Numba and NumPy versions in your Streamlit app and maintain the desired package versions.
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.