I have errors when deploying my app

If you’re creating a debugging post, please include the following info:

  1. Share the link to the public app (deployed on Community Cloud).

    https://chatbotlangchain-azogpnzopcts7zzbm3j2wn.streamlit.app/

  2. Share the link to your app’s public GitHub repository (including a requirements file).

    GitHub - b2nary/chatbot_langchain

  3. Share the full text of the error message (not a screenshot).

ERROR: Cannot install -r /mount/src/chatbot_langchain/requirements.txt (line 100), -r /mount/src/chatbot_langchain/requirements.txt (line 21), -r /mount/src/chatbot_langchain/requirements.txt (line 29), -r /mount/src/chatbot_langchain/requirements.txt (line 35), -r /mount/src/chatbot_langchain/requirements.txt (line 47), -r /mount/src/chatbot_langchain/requirements.txt (line 72), -r /mount/src/chatbot_langchain/requirements.txt (line 74), -r /mount/src/chatbot_langchain/requirements.txt (line 77), -r /mount/src/chatbot_langchain/requirements.txt (line 79), -r /mount/src/chatbot_langchain/requirements.txt (line 99) and pydantic<2 and >=1 because these package versions have conflicting dependencies.



The conflict is caused by:


The user requested pydantic<2 and >=1

deeplake 3.8.23 depends on pydantic

langchain 0.1.11 depends on pydantic<3 and >=1

langchain-core 0.1.30 depends on pydantic<3 and >=1

langchainplus-sdk 0.0.20 depends on pydantic<2 and >=1

langsmith 0.1.22 depends on pydantic<3 and >=1

openai 1.13.3 depends on pydantic<3 and >=1.9.0

openapi-schema-pydantic 1.2.4 depends on pydantic>=1.8.2

chromadb 0.4.24 depends on pydantic>=1.9

fastapi 0.110.0 depends on pydantic!=1.8, !=1.8.1, !=2.0.0, !=2.0.1, !=2.1.0, <3.0.0 and >=1.7.4

gradio 4.21.0 depends on pydantic>=2.0


To fix this you could try to:


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

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


ERROR: ResolutionImpossible: for help visit Dependency Resolution - pip documentation v24.1.dev0


WARNING: You are using pip version 22.0.3; however, version 24.0 is available.


You should consider upgrading via the ‘/home/adminuser/venv/bin/python -m pip install --upgrade pip’ command.


Checking if Streamlit is installed



────────────────────────────────────────────────────────────────────────────────────────

4. Share the Streamlit and Python versions.
   > streamlit version : 1.32.0
   > python version : I'm not sure(3.11.XX)

Cleanup your requirements file, it is crammed with unnecessary libraries.

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