I’m trying to use firestore database for storing the data and for that I followed this streamlit blog and installed the library
google-cloud-firestore using pip.
One issue is it changed protobuff from 3.20.3 to 4.21.6 and my webapp in local environment stopped working with below error
TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
so after seeing some community post I went back and install 3.20.3 and streamlit is working but got this error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. grpcio-status 1.50.0 requires protobuf>=4.21.6, but you have protobuf 3.20.3 which is incompatible. Successfully installed protobuf-3.20.3
- Will it affect database connect?
I’m new to developing app and connecting to db so still trying to learn and I’m not sure what issue i will encounter when i start working on it.
- How will the app and firebase db connection be affect when I deploy this in streamlit-cloud and is there a way to fix this?
This might not be a big issue but since I started using streamlit only a few weeks back(and I have no words to thank the developers and the community for making this so easy for me to learn) and am new to database connections I thought its better to check with brilliant people like you