I have Errors installing requirements when deploying 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://chatbot-yh8wykoffbmd7paqrbpxrs.streamlit.app/

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

    https://github.com/b2nary/chatbot_langchain

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

rsions of emoji to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of distro to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of dill to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of deprecated to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of deeplake to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of deepdiff to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of dataclasses-json to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of cycler to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of contourpy to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of coloredlogs to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of colorama to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of chroma-hnswlib to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of charset-normalizer to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of chardet to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of certifi to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of cachetools to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of build to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of botocore to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of boto3 to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of blinker to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of beautifulsoup4 to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of bcrypt to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of backoff to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of asgiref to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of anyio to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of annotated-types to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of altair to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of aiosignal to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of aiohttp to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of to determine which version is compatible with other requirements. This could take a while.


INFO: pip is looking at multiple versions of aiofiles to determine which version is compatible with other requirements. This could take a while.


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==1.32.0
   > python version : I'm not sure

Is there something you don’t understand in the error message?

Actually, I don’t know how to do…

if I try as below, then will it be solved?

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

It will probably solve the problem of conflicting dependencies.

Hi @b2nary

Looking at requirements.txt file gave over 150 libraries but in the actual app, only a few are used.

I’d recommend to start with the following for your requirements.txt file:

streamlit
openai
pandas
numpy
streamlit_chat
langchain
pysqlite3

Note: You can actually replace streamlit_chat with the native st.chat_input feature if you’d like.

I know that some may be dependent libraries, so we can add them later when we get an error message that explicitly tells us to do so (via the Module Not Found Error which tells us exactly which dependent libraries to add to the requirements.txt file).

Hope this helps!

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