langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.97k stars 131 forks source link

Fail to start project - dependencies conflict #45

Open woraphonedge opened 3 months ago

woraphonedge commented 3 months ago

When trying to start the project, it fails to resolve conflicts between chainlit and uvicorn. As my project does not require uvicorn, so I suspect by The user requested (constraint) uvicorn>=0.29.0, The user means LangGraph Studio? If yes, my question is what is the workaround?

Logs from LangGraph Studio

#7 7.109 ERROR: Cannot install genai-app because these package versions have conflicting dependencies.
#7 7.109 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
#7 7.109 
#7 7.109 The conflict is caused by:
#7 7.109     chainlit 1.1.401 depends on uvicorn<0.26.0 and >=0.25.0
#7 7.109     chainlit 1.1.400 depends on uvicorn<0.26.0 and >=0.25.0
#7 7.109     chainlit 1.1.306 depends on uvicorn<0.26.0 and >=0.25.0
#7 7.109     The user requested (constraint) uvicorn>=0.29.0
#7 7.109 
#7 7.109 To fix this you could try to:
#7 7.109 1. loosen the range of package versions you've specified
#7 7.109 2. remove package versions to allow pip attempt to solve the dependency conflict
#7 7.109 
#7 7.229 
#7 7.229 [notice] A new release of pip is available: 24.0 -> 24.2
#7 7.229 [notice] To update, run: pip install --upgrade pip
#7 ERROR: process "/bin/sh -c PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -c /api/constraints.txt -e /deps/*" did not complete successfully: exit code: 1
------
 > [langgraph-api 3/4] RUN PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -c /api/constraints.txt -e /deps/*:
7.109     chainlit 1.1.306 depends on uvicorn<0.26.0 and >=0.25.0
7.109     The user requested (constraint) uvicorn>=0.29.0
7.109 
7.109 To fix this you could try to:
7.109 1. loosen the range of package versions you've specified
7.109 2. remove package versions to allow pip attempt to solve the dependency conflict
7.109 
7.229 
7.229 [notice] A new release of pip is available: 24.0 -> 24.2
7.229 [notice] To update, run: pip install --upgrade pip
------
failed to solve: process "/bin/sh -c PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -c /api/constraints.txt -e /deps/*" did not complete successfully: exit code: 1
maitarasher commented 3 months ago

I had a similar issue and was able to solve it by removing the specific versions of libraries in requirements.txt

BigLiao commented 3 months ago

I had a similar issue and was able to solve it by removing the specific versions of libraries in requirements.txt

@maitarasher I have the same issue. Can you be more specific?

stephenl03 commented 2 months ago

If you don't have a requirement of uvicorn>=0.29.0 you can remove it from your requirements.txt so pip and better resolve the dependencies.