Giter Site home page Giter Site logo

Comments (11)

NUROISEA avatar NUROISEA commented on June 25, 2024 2

I pushed an attempt for a fix for this, please let me know if it works or breaks again

Also reopening this, didn't intend to close this issue

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024 1

Same problem here, with any notebook of the ones I tried :(

from anime-webui-colab.

orcuswankenobi avatar orcuswankenobi commented on June 25, 2024

yeah same

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024

Is not a problem of google colab with webiu; I have been able to launch other notebooks from another sources

from anime-webui-colab.

orcuswankenobi avatar orcuswankenobi commented on June 25, 2024

Is not a problem of google colab with webiu; I have been able to launch other notebooks from another sources

Can you explain in detail?

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024

I have been researching a bit, and looks like the bug is caused by the new version of Google Colab. To solve the issue, write the following instalation command on the notebook, just before the phyton.launch command (should be at the end of the code text). Remember to do it before running the notebook:

!pip. install httpx==0.24.1

from anime-webui-colab.

orcuswankenobi avatar orcuswankenobi commented on June 25, 2024

I have been researching a bit, and looks like the bug is caused by the new version of Google Colab. To solve the issue, write the following instalation command on the notebook, just before the phyton.launch command (should be at the end of the code text). Remember to do it before running the notebook:

!pip. install httpx==0.24.1

didnt work

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024

I have been researching a bit, and looks like the bug is caused by the new version of Google Colab. To solve the issue, write the following instalation command on the notebook, just before the phyton.launch command (should be at the end of the code text). Remember to do it before running the notebook:
!pip. install httpx==0.24.1

didnt work

It did work for my anything v4 notebook. Make sure you write the command on the paragraph above the phyton.launch command.

from anime-webui-colab.

Ayaya70 avatar Ayaya70 commented on June 25, 2024

Yo, I've the same problem and tested what Drakenhof said but still didn't work, unfortunately. I use Provide Your Own Models WebUI Colab

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /content/stable-diffusion-webui/launch.py:38 in │
│ │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ ❱ 38 │ main() │
│ 39 │
│ │
│ /content/stable-diffusion-webui/launch.py:34 in main │
│ │
│ 31 │ if args.test_server: │
│ 32 │ │ configure_for_tests() │
│ 33 │ │
│ ❱ 34 │ start() │
│ 35 │
│ 36 │
│ 37 if name == "main": │
│ │
│ /content/stable-diffusion-webui/modules/launch_utils.py:340 in start │
│ │
│ 337 │
│ 338 def start(): │
│ 339 │ print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with argum │
│ ❱ 340 │ import webui │
│ 341 │ os.system(f"""sed -i -e "s/dict()))$/dict())).cuda()/gm" /content/stable-diffusion-w │
│ 342 │ if '--nowebui' in sys.argv: │
│ 343 │ │ webui.api_only() │
│ │
│ /content/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 pollution │
│ 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 asynchronous HTTP │
│ 342 │ Compared to making calls by using httpx directly, AsyncRequest offers several advant │
│ │
│ /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 is None │
│ 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, trust_env=trust_env) │
│ 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_connections, │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: AsyncConnectionPool.init() got an unexpected keyword argument 'socket_options'

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024

Im uploading a screenshot of how I have my copy of the anything v4 notebook; the command is the one within the box. Noticie this are the final pharagraphs of the code, so you will have to scroll down all the notebook to find them
anything v4

from anime-webui-colab.

Drakenhof avatar Drakenhof commented on June 25, 2024

I pushed an attempt for a fix for this, please let me know if it works or breaks again

Also reopening this, didn't intend to close this issue

Tried a random notebook and it worked :)

from anime-webui-colab.

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.