I want to add database functionalities to my Flask app hosted on Vercel.
When using pymongo the website throws HTTP 500 saying that my app crashed.
It also says that I should check the logs.
The logs say this error:
[ERROR] Runtime.ImportModuleError: Unable to import module 'vc__handler__python': cannot import name 'MutableMapping' from 'collections' (/var/lang/lib/python3.12/collections/__init__.py)
Traceback (most recent call last):INIT_REPORT Init Duration: 1348.16 ms Phase: invoke Status: error Error Type: Runtime.Unknown
Maybe pymongo needs to make mutable objects and the Python interpreter on Vercel doesn't have it? I don't know.