Skip to content
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

TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument #113

Open
Normiegetout opened this issue Nov 5, 2023 · 0 comments

Comments

@Normiegetout
Copy link

My apologies for starting up issues so frequently but has anyone run into this problem?
Is it something out of our hands again?
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /storage/stable-diffusion/stable-diffusion-webui/webui.py:35 in │
│ │
│ 32 │
│ 33 startup_timer.record("import torch") │
│ 34 │
│ ❱ 35 import gradio │
│ 36 startup_timer.record("import gradio") │
│ 37 │
│ 38 import ldm.modules.encoders.modules # noqa: F401 │
│ │
│ /usr/local/lib/python3.10/dist-packages/gradio/init.py:3 in │
│ │
│ 1 import pkgutil │
│ 2 │
│ ❱ 3 import gradio.components as components │
│ 4 import gradio.inputs as inputs │
│ 5 import gradio.outputs as outputs │
│ 6 import gradio.processing_utils │
│ │
│ /usr/local/lib/python3.10/dist-packages/gradio/components.py:55 in │
│ │
│ 52 from PIL import Image as _Image # using _ to minimize namespace poll │
│ 53 from typing_extensions import Literal │
│ 54 │
│ ❱ 55 from gradio import processing_utils, utils │
│ 56 from gradio.blocks import Block, BlockContext │
│ 57 from gradio.events import ( │
│ 58 │ Blurrable, │
│ │
│ /usr/local/lib/python3.10/dist-packages/gradio/utils.py:339 in │
│ │
│ 336 │ return await iterator.anext() │
│ 337 │
│ 338 │
│ ❱ 339 class AsyncRequest: │
│ 340 │ """ │
│ 341 │ The AsyncRequest class is a low-level API that allow you to create │
│ 342 │ Compared to making calls by using httpx directly, AsyncRequest off │
│ │
│ /usr/local/lib/python3.10/dist-packages/gradio/utils.py:358 in AsyncRequest │
│ │
│ 355 │ You can see example usages in test_utils.py. │
│ 356 │ """ │
│ 357 │ │
│ ❱ 358 │ client = httpx.AsyncClient() │
│ 359 │ │
│ 360 │ class Method(str, Enum): │
│ 361 │ │ """ │
│ │
│ /usr/local/lib/python3.10/dist-packages/httpx/_client.py:1397 in init
│ │
│ 1394 │ │ allow_env_proxies = trust_env and app is None and transport i │
│ 1395 │ │ proxy_map = self._get_proxy_map(proxies, allow_env_proxies) │
│ 1396 │ │ │
│ ❱ 1397 │ │ self._transport = self._init_transport( │
│ 1398 │ │ │ verify=verify, │
│ 1399 │ │ │ cert=cert, │
│ 1400 │ │ │ http1=http1, │
│ │
│ /usr/local/lib/python3.10/dist-packages/httpx/_client.py:1445 in │
│ _init_transport │
│ │
│ 1442 │ │ if app is not None: │
│ 1443 │ │ │ return ASGITransport(app=app) │
│ 1444 │ │ │
│ ❱ 1445 │ │ return AsyncHTTPTransport( │
│ 1446 │ │ │ verify=verify, │
│ 1447 │ │ │ cert=cert, │
│ 1448 │ │ │ http1=http1, │
│ │
│ /usr/local/lib/python3.10/dist-packages/httpx/_transports/default.py:275 in │
init
│ │
│ 272 │ │ ssl_context = create_ssl_context(verify=verify, cert=cert, tru │
│ 273 │ │ │
│ 274 │ │ if proxy is None: │
│ ❱ 275 │ │ │ self._pool = httpcore.AsyncConnectionPool( │
│ 276 │ │ │ │ ssl_context=ssl_context, │
│ 277 │ │ │ │ max_connections=limits.max_connections, │
│ 278 │ │ │ │ max_keepalive_connections=limits.max_keepalive_connect │
╰──────────────────────────────────────────────────────────────────────────────╯
TypeError: AsyncConnectionPool.init() got an unexpected keyword argument
'socket_options'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant