graphene icon indicating copy to clipboard operation
graphene copied to clipboard

Version conflict `aniso8601`

Open szakitibi opened this issue 7 years ago • 7 comments

While built out my site with current latest graphene = 2.1.5 version, I got the following version conflict:

...
Got relativetimebuilder 2.0.0.
Version and requirements information containing aniso8601:
  Requirement of graphene: aniso8601<=6.0.*,>=3
  Requirement of aniso8601<=6.0.*,>=3: relativetimebuilder>=0.2.0
  Requirement of relativetimebuilder>=0.2.0: aniso8601<8.0.0,>=7.0.0
While:
  Updating test.
Error: There is a version conflict.
We already have: aniso8601 5.1.0
but relativetimebuilder 2.0.0 requires 'aniso8601<8.0.0,>=7.0.0'.

Seems like I got aniso8601 version 5.1.0 which still has the circular dependency issue.

Note: For me pinning version to aniso8601 = 6.0.0 and relatvietimebuilder = 1.0.0 solved it. As you can see in the above traceback, relativetimebuilder already has version is 2.0.0, which requires aniso8601 >= 7.0.0, that is why both package had to be pinned.

szakitibi avatar Jun 12 '19 05:06 szakitibi

Fix might be in this commit: https://github.com/graphql-python/graphene/commit/431e93cd68b9f720be1cb1165f0a202a6388ed74

eelkevdbos avatar Jun 12 '19 08:06 eelkevdbos

You would still get a conflict even with that commit since relativetimebuilder is asking for >=7.0.0 and graphene wants <6. I've made https://github.com/graphql-python/graphene/pull/1009 to relax a bit that version.

Keats avatar Jun 12 '19 17:06 Keats

Yes this is an internal conflict of 2.1.5 ... clean env produces this with pip install 'graphene==2.1.5'

dwsutherland avatar Jun 13 '19 02:06 dwsutherland

v2.1.6 is ready to be released and it contains a fix for this: https://github.com/graphql-python/graphene/pull/1005

@eelkevdbos that commit actually fixes the error as described in the issue.

jkimbo avatar Jun 13 '19 14:06 jkimbo

Pinning relativetimebuilder to a version < 2.0.0 resolved the issue for me. Since the issue is only because relativetimebuilder v2.0.0 requires aniso8610 >=7.0.0 but a version <=2.0.0 resolves fine with aniso8610 <=7.0.0, graphene's requirement of aniso8610 <=6.0.0 is satisfied.

elcho avatar Jun 13 '19 18:06 elcho

@jkimbo sorry, I meant to say that, but reading it again I see it can be interpreted both ways (not a native speaker)

eelkevdbos avatar Jun 13 '19 18:06 eelkevdbos

v2.1.6 has been released to PyPi which fixes this issue: https://pypi.org/project/graphene/2.1.6/

Sorry for the inconvenience!

Release notes: https://github.com/graphql-python/graphene/releases/tag/v2.1.6

jkimbo avatar Jun 14 '19 10:06 jkimbo