My app works fine locally and also when I deploy it
At first anyways. I can never get it to crash myself, but every now and then (like after a week or two) the app suddenly displays an error suggesting my packages arenāt installed properly.
ModuleNotFoundError: No module named ātorchā
But torch is listed in my requirements.txt file.
Fixing the issue is easy: I just need to reboot the app!
But why does this happen? How can I prevent the need for regular manual reboots?
I have sent this on internally to check, but I have a seeking suspicion that your app is going over usage limits (800 mb is given to all apps on the Sharing platform). This is causing it to crash, we have had a number of other similar problems with Torch (its very big). Checkout this link to a similar issue:
I will let you know more when I hear back from the team!
Iām not sure it is the solution though - time will tell. It hasnāt crashed so far, but it has always taken a week or more before the crash occurred.
Like in the post you referred to I replaced torch with the cpu version.
So in requirements.txt from: torch==1.7.0
to: --find-links https://download.pytorch.org/whl/torch_stable.html torch==1.7.0+cpu
But that has an additional dependency, which resulted in an import error, which can be resolved by adding: libtinfo5
to the packages.txt file
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.