graphql-python / graphene

GraphQL framework for Python
http://graphene-python.org/
MIT License
8.09k stars 826 forks source link

Problem with graphql-core imports #1085

Closed Arfey closed 4 years ago

Arfey commented 5 years ago

I have this problem:

ModuleNotFoundError: No module named 'graphql.execution.executors'

graphql-core has this module but graphene use other package.

After installed graphene we have some package which named graphql with version 3.0.0b1. And this package don't have graphql.execution.executors.

reproduce:

pip install graphene
python3             
Python 3.7.3 (default, Mar 27 2019, 09:23:15) 
[Clang 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from graphql.execution.executors.asyncio import AsyncioExecutor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'graphql.execution.executors'
>>> 
jkimbo commented 5 years ago

@Arfey can you include the output of pip freeze? Also do you have a folder in your project called graphql?

Arfey commented 5 years ago

I don't have. Link to the project structure here.

output of pip freeze:

aiodataloader==0.1.2
aiohttp==3.6.2
aiohttp-graphql==1.0.0
aiohttp-jinja2==1.1.2
aiopg==1.0.0
aioredis==1.3.0
aniso8601==7.0.0
appnope==0.1.0
async-timeout==3.0.1
atomicwrites==1.3.0
attrs==19.3.0
backcall==0.1.0
chardet==3.0.4
coverage==4.5.4
decorator==4.4.0
entrypoints==0.3
Faker==2.0.3
flake8==3.7.8
-e git+https://github.com/aio-libs/aiohttp-demos.git@7414f1f0261928d84553b0518840366255993945#egg=graph&subdirectory=demos/graphql-demo
graphene==3.0.dev20190817210753
graphql-core==3.0.0b1
graphql-relay==3.0.0a1
graphql-server-core==1.1.1
graphql-ws==0.3.0
hiredis==1.0.0
idna==2.8
importlib-metadata==0.23
ipython==7.5.0
ipython-genutils==0.2.0
jedi==0.13.3
Jinja2==2.10.3
MarkupSafe==1.1.1
mccabe==0.6.1
more-itertools==7.2.0
multidict==4.5.2
mypy==0.740
mypy-extensions==0.4.3
packaging==19.2
parso==0.4.0
pexpect==4.7.0
pickleshare==0.7.5
pluggy==0.13.0
promise==2.2.1
prompt-toolkit==2.0.9
psycopg2==2.8.2
psycopg2-binary==2.8.2
ptyprocess==0.6.0
py==1.8.0
pycodestyle==2.5.0
pyflakes==2.1.1
Pygments==2.4.0
pyparsing==2.4.2
pytest==5.2.1
pytest-cov==2.8.1
pytest-runner==5.1
python-dateutil==2.8.0
PyYAML==5.1.2
six==1.12.0
SQLAlchemy==1.3.10
text-unidecode==1.3
trafaret==1.2.0
trafaret-config==2.0.2
traitlets==4.3.2
typed-ast==1.4.0
typing-extensions==3.7.4
wcwidth==0.1.7
yarl==1.3.0
zipp==0.6.0

also u can reproduce that

Screen Shot 2019-10-20 at 13 03 53

we can see that graphql have installed with graphene. Also we can see other interesting folders like examples.

Arfey commented 5 years ago

graphql-core-next don't have the AsyncioExecutor :(

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jkimbo commented 4 years ago

@Arfey there are new versions of graphql-core and graphql-relay. Updating them might fix your issue.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

RoyTrudell commented 3 years ago

I'm having the same issue

eslamelhadedy commented 11 months ago

I'm having the same issue