Streamlit + firestore conflicts

Summary

Noticed streamlit and google-cloud-firestore packages have conflicting package dependencies. Took me a while to resolve, so figured I would share it here.

Steps to reproduce

Code snippet:

>> python3 -m venv venv
>> source venv/bin/activate
>> (venv) pip install streamlit
>> (venv) pip install google-cloud-firestore

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Actual behavior:

You will get the following 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.
streamlit 1.17.0 requires protobuf<4,>=3.12, but you have protobuf 4.21.12 which is incompatible.

To resolve, you will need to do the following:

>> pip uninstall grpcio-status
>> pip install grpcio-status==1.48.2
>> pip uninstall protobuf
>> pip install protobuf==3.19.5

Debug info

  • Streamlit version: 1.17.0
  • Python version: Python 3.10.9
  • Using Conda? PipEnv? PyEnv? Pex? venv

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.