Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts fail with version issues on backend #150

Closed
lucabotti opened this issue Dec 13, 2020 · 3 comments · Fixed by #151
Closed

Scripts fail with version issues on backend #150

lucabotti opened this issue Dec 13, 2020 · 3 comments · Fixed by #151

Comments

@lucabotti
Copy link

while trying to build the backend:

`INFO: pip is looking at multiple versions of celery 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 authlib to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of alembic to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 3) and starlette==0.13.8 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested starlette==0.13.8
fastapi 0.61.1 depends on starlette==0.13.6

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/user_guide/#fixing-conflicting-dependencies
ERROR: Service 'backend' failed to build : The command '/bin/sh -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 1

@gmagno
Copy link

gmagno commented Dec 20, 2020

I also hit this issue.
Dirty and temporary solution: loosen the requirements.txt constraints, for instance by removing versions altogether.

@rbracco
Copy link

rbracco commented Feb 2, 2021

Solution:

-Remove starlette from backends/requirements.txt. (Starlette is a dependency of fastapi so installing fastapi will automatically choose the correct version of starlette)
-Or...change the starlette line to starlette==0.13.8

Additional Details:

This error is due to fastapi using starlette as a dependency. Fastapi 0.61.1 expects starlette 0.13.6 but the requirements.txt specifies starlette==0.13.8 and since the requirements.txt is using exact versions (==), pip can't resolve the conflict.

@Buuntu
Copy link
Owner

Buuntu commented Feb 2, 2021

Sorry for the delay, I went ahead and updated FastAPI and removed starlette as @rbracco suggested. Give it a try now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants