I have been trying to deploy my app using different methods but am running into various related errors:
Deploying using environment.yml file gives me the following error: Installer returned a non-zero exit code; Error during processing dependencies; Streamlit server consistently failed status checks
When previously I was deploying with a requirements.txt file, I was able to deploy but was getting strange errors when trying to use the functionality. For instance, the keras models would not load and I would get the following error: You may be trying to load on a different device from the computational device. Consider setting the ***experimental _io_device*** option in tf.saved_model.LoadOptions to the io device such as ā/job:localhostā.
I suspect that the ML models you have locally may have been created with a different (e.g. much older or incompatible) version of the respective ML library.
Hi Franky - there you go. Interesting hypothesis - very possible as I wrote some of the code a couple of months ago so any updates in that time would certainly not be reflected. I saved the models a few days ago however after rerunning the Python script so I can only think that the environment.yml file in my repo has some unsupported libraries. Thanks
I did the same, and i had the same issues you described, see my pull request.
I think the models were trained with older versions of the ML frameworks.
I got some models working by downgrading some of the ML libraries, see my pull request.
I am not an ML expert and this ecosystem is changing so fast, but if you have the ability to retrain your models, i would do that with the newer ML libraries.
I would setup a clean local dev environment, either with docker or with a python virtual environment. Otherwise you will end up with a mess
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.