syrusakbary / gdom

DOM Traversing and Scraping using GraphQL
http://gdom.graphene-python.org
BSD 3-Clause "New" or "Revised" License
1.24k stars 41 forks source link

ImportError: No module named core.execution.executor #7

Closed BarryBaum closed 8 years ago

BarryBaum commented 8 years ago

I was testing a fresh install of the module and ran a gdom --test resulting in the following traceback:


Traceback (most recent call last):
  File "/usr/local/bin/gdom", line 7, in <module>
    from gdom.cmd import main
  File "/usr/local/lib/python2.7/site-packages/gdom/__init__.py", line 1, in <module>
    from .schema import schema, Node, Element, Document, Query
  File "/usr/local/lib/python2.7/site-packages/gdom/schema.py", line 1, in <module>
    import graphene
  File "/usr/local/lib/python2.7/site-packages/graphene/__init__.py", line 3, in <module>
    from .core import (
  File "/usr/local/lib/python2.7/site-packages/graphene/core/__init__.py", line 1, in <module>
    from .schema import (
  File "/usr/local/lib/python2.7/site-packages/graphene/core/schema.py", line 4, in <module>
    from graphql.core.execution.executor import Executor
ImportError: No module named core.execution.executor

Below is my python installation log:

https://gist.github.com/dca2f5c358b1aa7de3093565b8fad874

BarryBaum commented 8 years ago

found the cause, looks like PyPy is not bringing in the correct version.
you need to install from github using pip install git+git or clone and install local.

amsimoes commented 7 years ago

To give more details to the solution (using pip for python2.7):

sudo pip install git+https://github.com/syrusakbary/gdom.git

mrVanDalo commented 7 years ago

@BarryBaum try the docker container : https://hub.docker.com/r/palo/gdom/