`graphql-relay` update causes error when `graphene` is pip installed
See original GitHub issueWhen attempting to do a pip install of graphene
there is a compatibility issue with the requirements between graphene
and graphql-relay
.
The output from running pip install --no-cache-dir graphene
is:
Collecting graphene
Downloading https://files.pythonhosted.org/packages/d2/96/6afc1a61f9d7c1159a59b44bcdc37b68dceaa424e5a8ed9afc051082413d/graphene-2.1.6-py2.py3-none-any.whl (107kB)
|ββββββββββββββββββββββββββββββββ| 112kB 2.1MB/s
Collecting aniso8601<=6,>=3 (from graphene)
Downloading https://files.pythonhosted.org/packages/85/58/1e804d6d53435b1b2241036056360575640b69a332e7ead086a04bd5ad95/aniso8601-6.0.0-py2.py3-none-any.whl (41kB)
|ββββββββββββββββββββββββββββββββ| 51kB 48.7MB/s
Collecting graphql-core<3,>=2.1 (from graphene)
Downloading https://files.pythonhosted.org/packages/f1/88/a4a7bf8ab66c35b146e44d77a1f9fd2c36e0ec9fb1a51581608c16deb6e3/graphql_core-2.2-py2.py3-none-any.whl (250kB)
|ββββββββββββββββββββββββββββββββ| 256kB 6.1MB/s
Collecting six<2,>=1.10.0 (from graphene)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting graphql-relay<1,>=0.4.5 (from graphene)
Downloading https://files.pythonhosted.org/packages/86/12/8de5918c2dfcb53958a3767d4e2df9918b603d9a468810c44156fe79faeb/graphql_relay-0.4.5-py3-none-any.whl
Collecting promise>=2.1 (from graphql-core<3,>=2.1->graphene)
Downloading https://files.pythonhosted.org/packages/5a/81/221d09d90176fd90aed4b530e31b8fedf207385767c06d1d46c550c5e418/promise-2.2.1.tar.gz
Collecting rx>=1.6.0 (from graphql-core<3,>=2.1->graphene)
Downloading https://files.pythonhosted.org/packages/33/0f/5ef4ac78e2a538cc1b054eb86285fe0bf7a5dbaeaac2c584757c300515e2/Rx-1.6.1-py2.py3-none-any.whl (179kB)
|ββββββββββββββββββββββββββββββββ| 184kB 25.7MB/s
Building wheels for collected packages: promise
Building wheel for promise (setup.py) ... done
Stored in directory: /tmp/pip-ephem-wheel-cache-kjtzfg_h/wheels/92/84/9f/75e2235effae0e1c5a5c0626a503e532bbffcb7e79e672b606
Successfully built promise
ERROR: graphql-relay 0.4.5 has requirement graphql-core<2,>=0.5.0, but you'll have graphql-core 2.2 which is incompatible.
Installing collected packages: aniso8601, six, promise, rx, graphql-core, graphql-relay, graphene
Successfully installed aniso8601-6.0.0 graphene-2.1.6 graphql-core-2.2 graphql-relay-0.4.5 promise-2.2.1 rx-1.6.1 six-1.12.0
graphene
requires graphql-core>=2.1,<3
(from the setup.py
file) and now graphql-relay
requires graphql-core>=0.5.0,<2
for versions under under 2 which appears to be retroactively added.
Version 2.0.0 of graphql-relay
appears to be compatible
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:6 (2 by maintainers)
Top Results From Across the Web
There are incompatible versions in the resolved dependencies
It seems that every version is installed correctly version-wide, including the graphene-django that it complains about [required: >=3.0.0b1,Β ...
Read more >Graphene Documentation - Read the Docs
If you want to expose your data through GraphQL - read the Installation, Schema and Queries section. For more advanced use, check out...
Read more >graphql-python - Bountysource
Is graphql-relay actually a requirement if relay is not going to be used? ... Perhaps a specific install option like pip install graphene[relay]...
Read more >I can't install python3-pip? - kali linux - Unix Stack Exchange
I just installed Kali from the Microsoft store, apt update , then apt install python3-pip without a hitch. β berndbausch. Jan 19, 2021...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v2.1.7 has been released which should fix this issue.
Apologies everyone, weβre going to push a new version of graphene that fixes the dependency on graphql-relay (https://github.com/graphql-python/graphene/pull/1032). Should be going out soon.