question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`graphql-relay` update causes error when `graphene` is pip installed

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
jkimbocommented, Jul 15, 2019

v2.1.7 has been released which should fix this issue.

4reactions
jkimbocommented, Jul 15, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >
graphql-relay - PyPI
Relay library for graphql-core.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found