Comments (14)
Please check the installation instructions
from gql.
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.
Hi! I'm having this exact same problem and I just installed gql today. Any ideas what's up?
from gql.
NVM, the docs on master require the latest dev version.
from gql.
Yes, sorry for the confusion. New versions will be released tomorrow, including an alpha release with the new functionality.
from gql.
Same here.
from gql.
Same!
from gql.
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.
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.
Having the same issue. Tried it today.
from gql.
Did you follow the installation instructions and used pip install --pre gql[all]
?
from gql.
@leszekhanusz it works, thanks!
from gql.
does not work for me
from gql.
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)
- gql should have a websockets-client transport HOT 4
- Unable to print schema with gql and error is an SSL error HOT 1
- Cannot use gql with httpx transport and trio HOT 3
- Tests fail out of the box. HOT 2
- Any best practice using async gql with FastAPI? HOT 2
- DSL how to select fields which are Python reserved keywords HOT 2
- [Feature] Support Subscriptions HTTP Multipart Protocol HOT 6
- Handling decimals with longer than 6 scale? HOT 7
- Timeout error during execution of mutation when no of async tasks is above 5000 + HOT 1
- Request/Response payloads logged at level INFO HOT 5
- requests_toolbelt isn't listed as an optional dependency although required for logging changes HOT 1
- Add retry logic to httpx Transport HOT 4
- Shopify error: Prefix "query" when sending a mutation HOT 3
- retry_execute can not handle TransportQueryError HOT 1
- Error when using gqc client under windows HOT 6
- Add change log to repository main directory? HOT 2
- Use of @skip and @ignore directives with gql.dsl HOT 1
- Getting Transport Already Connected using async httpx transport HOT 3
- Cannot connect to host countries.trevorblades.com:443 ssl:False HOT 1
- The calculation of time span is not correct HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gql.