AbdullahAlfaraj / AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin

Communication and connection are normal, but the image is not displayed in Photoshop, and the following prompt appears. Please provide a solution. Thank you.

Open
#240 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.3k
Forks
526
PR merge metrics
No merged PRs in 30d

Description

"Command not available" appears when using the stable diffusion Photoshop plugin on macOS system.

API error: POST: http://127.0.0.1:7860/sdapi/v1/txt2img {'error': 'RuntimeError', 'detail': '', 'body': '', 'errors': "There is no current event loop in thread 'AnyIO worker thread'."}
Traceback (most recent call last):
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/streams/memory.py", line 94, in receive
return self.receive_nowait()
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/streams/memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 78, in call_next
message = await recv_stream.receive()
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/streams/memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/liuwei/stable-diffusion-webui/modules/api/api.py", line 145, in exception_handling
return await call_next(request)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 108, in __call__
response = await self.dispatch_func(request, call_next)
File "/Users/liuwei/stable-diffusion-webui/modules/api/api.py", line 110, in log_and_time
res: Response = await call_next(req)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 44, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/fastapi/routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/Users/liuwei/stable-diffusion-webui/modules/api/api.py", line 284, in text2imgapi
self.default_script_arg_txt2img = self.init_default_script_args(script_runner)
File "/Users/liuwei/stable-diffusion-webui/modules/api/api.py", line 254, in init_default_script_args
script_args[script.args_from:script.args_to] = ui_default_values
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1160, in __exit__
self.app = routes.App.create_app(self)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/routes.py", line 143, in create_app
app = App(default_response_class=ORJSONResponse)
File "/Users/liuwei/stable-diffusion-webui/venv/lib/python3.9/site-packages/gradio/routes.py", line 113, in __init__
self.lock = asyncio.Lock()
File "/opt/anaconda3/lib/python3.9/asyncio/locks.py", line 81, in __init__
self._loop = events.get_event_loop()
File "/opt/anaconda3/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'AnyIO worker thread'.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.