New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] startup failure caused by dependencies, requires httpx #1614
Comments
I can confirm this issue.
|
facing the same issue, no matter what version of schemathesis / python |
|
The starlette readme says:
It looks like Schemathesis wants to use the TestClient, therefore httpx should be added as a non-temporary requirement of schemathesis. I'll write a PR for that. |
Ah actually it looks like schemathesis uses poetry, which I am not familiar with. So I'm not confident I know where to add the new dependency. Can someone else add it? Does it go in pyproject.toml or poetry.lock? |
|
Ok I'll try that. Why did you say |
Because it's the minimum version that Starlette supports. 🙏 |
This is awkward: How did you do this? |
idk, different virtual env? 🤷♂️ |
until schemathesis/schemathesis#1614 is fixed
add httpx as dependency see: schemathesis/schemathesis#1614
add httpx as dependency see: schemathesis/schemathesis#1614
|
commented out until schemathesis/schemathesis#1614 is fixed
The issue is fixed in |
And sorry for the delay! |
until schemathesis/schemathesis#1614 is fixed
Checklist
Describe the bug
Because the upstream starlette updated the dependencies,the following error occurs
ModuleNotFoundError: No module named 'httpx'
To Reproduce
https://github.com/HXSecurity/DongTai/actions/runs/3132544194/jobs/5084991907
File "/home/runner/.local/bin/schemathesis", line 5, in
from schemathesis.cli import schemathesis
File "/home/runner/.local/lib/python3.8/site-packages/schemathesis/init.py", line 7, in
from . import auth, fixups, graphql, hooks, runner, serializers, targets
File "/home/runner/.local/lib/python3.8/site-packages/schemathesis/graphql.py", line 3, in
from .specs.graphql import nodes
File "/home/runner/.local/lib/python3.8/site-packages/schemathesis/specs/graphql/init.py", line 1, in
from .loaders import from_asgi, from_dict, from_file, from_path, from_url, from_wsgi
File "/home/runner/.local/lib/python3.8/site-packages/schemathesis/specs/graphql/loaders.py", line 9, in
from starlette.testclient import TestClient as ASGIClient
File "/home/runner/.local/lib/python3.8/site-packages/starlette/testclient.py", line 15, in
import httpx
ModuleNotFoundError: No module named 'httpx'
Expected behavior
It seems that dependencies that are still in version 0.x.y should not be used openly, which means their api is still changing frequently.
Environment (please complete the following information):
Additional context
looks related to this
encode/starlette#1376
It looks like this issue is not fully resolved.
#1417
The text was updated successfully, but these errors were encountered: