Sometimes my app prints error messages in some of my users’ sessions:
ModuleNotFoundError: No module named 'functools'
at app/anvil_extras/routing/_navigation.py, line 8
called from app/anvil_extras/routing/__init__.py, line 12
called from MainApp, line 5
At MainApp line 5, it’s trying to import routing from anvil_extras
from anvil_extras import routing
anvil_extras is set to the published version.
I can’t reproduce it on my side. Does anyone have ideas what is the cause?
No, my users did not report it to me. I do an error log search every day and found it happened twice already. Unfortunately, I couldn’t get the user info since the app failed at the beginning. I can’t reproduce it either.
So I have added the print statement and this is userAgent data that came back…
Browser Info: Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/264.0.531249063 Mobile/20E772520a Safari/604.1
ModuleNotFoundError: No module named 'functools'
at app/anvil_extras/routing/_navigation.py, line 8
called from app/anvil_extras/routing/__init__.py, line 12
called from MainForm, line 7
Thank you for your response. However, upon upgrading our app server from version 1.8.0 to version 1.10.1, I encountered the issue. It appeared that our users were unsure how to correct the error and were unaware that refreshing their browser cache could prove beneficial. As a result, I was compelled to revert back from version 1.10.1 to 1.8.0.