Jan Damm
07/18/2022, 11:31 PMImportError: cannot import name 'DocumentNode' from 'graphql' (/home/jandamm/projects/dagster-test/venv/lib/python3.8/site-packages/graphql/__init__.py)
Some dependencies with graphql seem not to be working. I tried uninstalling and re-installing graphql-core and got the following error:
pip install graphql-core==2.3.2
Collecting graphql-core==2.3.2
Using cached graphql_core-2.3.2-py2.py3-none-any.whl (252 kB)
Requirement already satisfied: promise<3,>=2.3 in ./venv/lib/python3.8/site-packages (from graphql-core==2.3.2) (2.3)
Requirement already satisfied: six>=1.10.0 in ./venv/lib/python3.8/site-packages (from graphql-core==2.3.2) (1.16.0)
Requirement already satisfied: rx<2,>=1.6 in ./venv/lib/python3.8/site-packages (from graphql-core==2.3.2) (1.6.1)
ERROR: gql 3.4.0 has requirement graphql-core<3.3,>=3.2, but you'll have graphql-core 2.3.2 which is incompatible.
Installing collected packages: graphql-core
Successfully installed graphql-core-2.3.2
If I read this correctly there is no graphql version which actually fullfills all the requirements... so I don't know how to continue from here. Did anybody else experience that issue?
[dagster and dagit version 0.15.6; python version 3.8.10]Jan Damm
07/18/2022, 11:44 PMpip install dagster dagit
I sometimes already get that error below during the installation. But interestingly not all the times. But starting dagit definitely never works...
Building wheel for promise (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/jandamm/projects/dagster-test/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zhhu8jy8/promise/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zhhu8jy8/promise/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7q5mmbzy
cwd: /tmp/pip-install-zhhu8jy8/promise/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for promise
Running setup.py clean for promise
Failed to build promise
ERROR: gql 3.4.0 has requirement graphql-core<3.3,>=3.2, but you'll have graphql-core 2.3.2 which is incompatible.
daniel
07/19/2022, 3:47 AMJan Damm
07/19/2022, 5:37 PMpdpark
07/20/2022, 8:46 PMThere are incompatible versions in the resolved dependencies:
graphql-core<3.3,>=3.2 (from gql==3.4.0->dagster-graphql==0.15.6->dagit==0.15.6->-r <http://requirements.in|requirements.in> (line 5))
graphql-core<3,>=2.1 (from graphene==2.1.9->dagster-graphql==0.15.6->dagit==0.15.6->-r <http://requirements.in|requirements.in> (line 5))
graphql-core<3,>=2.1 (from dagster-graphql==0.15.6->dagit==0.15.6->-r <http://requirements.in|requirements.in> (line 5))
pdpark
07/20/2022, 8:47 PMpdpark
07/20/2022, 8:49 PMdaniel
07/20/2022, 8:50 PMdaniel
07/20/2022, 8:51 PMpdpark
07/20/2022, 8:55 PMpip-compile --upgrade --generate-hashes \
<http://requirements.in|requirements.in> \
--output-file requirements_dev.txt \
--quiet
daniel
07/20/2022, 8:56 PMpdpark
07/20/2022, 8:59 PMgql<3
to the requirements.in file fixed the problem! 🙏 🎉