python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Cannot install gino with fastapi #785

Closed Pzzzzz5142 closed 3 years ago

Pzzzzz5142 commented 3 years ago

Describe the bug Hi, when following the guide on the official website, poetry raise an error reporting that it can't resolve the dependencies.

To Reproduce Just type in the following command to reproduce.

poetry add gino[pg,starlette]

poetry add fastapi uvicorn gunicorn

Expected result

Successfully installed all the packages 

Actual result

  SolverProblemError

  Because no versions of fastapi match >0.65.1,<0.66.0
   and fastapi (0.65.1) depends on starlette (0.14.2), fastapi (>=0.65.1,<0.66.0) requires starlette (0.14.2).
  Because gino-starlette (0.1.1) depends on starlette (>=0.13.0,<0.14.0)
   and no versions of gino-starlette match >0.1.1,<0.2.0, gino-starlette (>=0.1.1,<0.2.0) requires starlette (>=0.13.0,<0.14.0).
  Thus, fastapi (>=0.65.1,<0.66.0) is incompatible with gino-starlette (>=0.1.1,<0.2.0).
  And because gino (1.0.1) depends on gino-starlette (>=0.1.1,<0.2.0)
   and no versions of gino match >1.0.1,<2.0.0, fastapi (>=0.65.1,<0.66.0) is incompatible with gino (>=1.0.1,<2.0.0).
  So, because wjx depends on both gino (^1.0.1) and fastapi (^0.65.1), version solving failed.

  at ~/anaconda3/lib/python3.7/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(

Environment (please complete the following information):

Chaostheorie commented 3 years ago

This belongs to gino-starlette and is in fact already an issue there.

sz-ashik440 commented 1 year ago

Not exactly related but if you are using zsh and getting zsh: no matches found: gino[pg,starlette] Use quote (eg: poetry add 'gino[pg,starlette]') as zsh doesn't recognise corner brackets as commands