How to resolve dependency error on streamlit cloud community deployed application

Hi Team,

kindly request you to help me address this below dependency error.

The conflict is caused by:

    The user requested protobuf

    mysql-connector-python 8.1.0 depends on protobuf<=4.21.12 and >=4.21.1

    protobuf3-to-dict 0.1.5 depends on protobuf>=2.3.0

    sagemaker 2.135.0 depends on protobuf<4.0 and >=3.1


To fix this you could try to:

1. loosen the range of package versions you've specified

2. remove package versions to allow pip attempt to solve the dependency conflict


ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Due to this, application is down.

Regards
Sridhar

Did you try the fixes suggested in the error message?

@sridharr
Try the suggestions, go first with the 2nd suggestion, specify only the name of the packages without the version tag in requirements.txt and let streamlit cloud solve the dependecies on its own by installing the compatible versions.

1 Like

Yes, I tried removing the version from particular conflict package. but that not solved

Hi,

After removing versions from all three python packages shown in error from requirements.txt file. streamlit cloud reolved the conflict and application started running.

Thanks.

Regards
Sridhar

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