Code Monkey home page Code Monkey logo

Comments (14)

leszekhanusz avatar leszekhanusz commented on May 20, 2024 16

Please check the installation instructions

from gql.

PaulApivat avatar PaulApivat commented on May 20, 2024 3

This worked for me:

pip3 install 'gql[all]==3.0.0b0'

  • used quotes because my machine uses zsh instead of bash
  • identifying most recent version of gql

from gql.

chelseatroy avatar chelseatroy commented on May 20, 2024 1

Hi! I'm having this exact same problem and I just installed gql today. Any ideas what's up?

from gql.

bozhodimitrov avatar bozhodimitrov commented on May 20, 2024

NVM, the docs on master require the latest dev version.

from gql.

Cito avatar Cito commented on May 20, 2024

Yes, sorry for the confusion. New versions will be released tomorrow, including an alpha release with the new functionality.

from gql.

GraphtyLove avatar GraphtyLove commented on May 20, 2024

Same here.

from gql.

lukasschmit avatar lukasschmit commented on May 20, 2024

Same!

from gql.

lightstrike avatar lightstrike commented on May 20, 2024

The README was confusing for me - I got this running by specifying the alpha version, ie for pipenv install gql[all]==3.0.0a6

from gql.

MindaugasBernatavicius avatar MindaugasBernatavicius commented on May 20, 2024

Same for me, using Python 3.9.0

pip install aiohttp gql
from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport

# Select your transport with a defined url endpoint
transport = AIOHTTPTransport(url="https://countries.trevorblades.com/")

# Create a GraphQL client using the defined transport
client = Client(transport=transport, fetch_schema_from_transport=True)

# Provide a GraphQL query
query = gql(
    """
    query getContinents {
      continents {
        code
        name
      }
    }
"""
)

# Execute the query on the transport
result = client.execute(query)
print(result)
Traceback (most recent call last):
  File "C\..\rest_demo.py", line 2, in <module>
    from gql.transport.aiohttp import AIOHTTPTransport
ModuleNotFoundError: No module named 'gql.transport.aiohttp'

from gql.

roiweinreb avatar roiweinreb commented on May 20, 2024

Having the same issue. Tried it today.

from gql.

leszekhanusz avatar leszekhanusz commented on May 20, 2024

Did you follow the installation instructions and used pip install --pre gql[all] ?

from gql.

roiweinreb avatar roiweinreb commented on May 20, 2024

@leszekhanusz it works, thanks!

from gql.

yenicelik avatar yenicelik commented on May 20, 2024

does not work for me

from gql.

sarastinishi avatar sarastinishi commented on May 20, 2024

For those who still experiencing the same issue and using python poetry, you can use the following dependency spec in your pyproject.toml:

gql = {extras = ["all"], version = "~=3.0.0rc0", allow-prereleases = true}

from gql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.