"TypeError: argument of type 'bool' is not iterable" When trying to run program
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il programma locale fino alla fase di azione e inizia dal traceback di Gradio API-info mostrato nel report, soprattutto dal percorso di conversione dello schema. Conferma il fallimento con l’endpoint indicato e individua una gestione compatibile del relativo schema prima di considerare conclusa la issue; nel report non sono indicati file del repository né test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi team,
I was trying to run the program locally, however every time I try to prompt, the screenshot and reasoning works as expected, but this error always comes up during the action stage
screenshot /var/folders/bf/17v2xzfx61532v_fyf1ypls80000gn/T/tmp00xdmw7z/screenshot_15.png
THOUGHT: The objective is: find me an image of a cat
On the screen, I see:
- A desktop background
- Icons for "Trash," "File System," and "Home" on the left side
- A dock at the bottom with icons that include a globe, magnifying glass, and folder
- The Applications menu at the top left
- The date and user information at the top right
This means the objective is: not complete
The next step is to click the globe icon in the dock in order to open a web browser and search for images of a cat.
ACTION: click {'query': 'globe'}
screenshot /var/folders/bf/17v2xzfx61532v_fyf1ypls80000gn/T/tmp00xdmw7z/screenshot_16.png
Loaded as API: https://johnisafridge-os-atlas.hf.space ✔
OBSERVATION: Error executing function: Could not fetch api info for https://johnisafridge-os-atlas.hf.space: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 191, in __call__
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 390, in conditional_routing_middleware
response = await call_next(request)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 790, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 716, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 736, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 290, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 125, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 111, in app
response = await f(request)
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 391, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 292, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 38, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2485, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 976, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 581, in api_info
api_info = utils.safe_deepcopy(app.get_blocks().get_api_info())
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2912, in get_api_info
python_type = client_utils.json_schema_to_python_type(info)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 911, in json_schema_to_python_type
type_ = _json_schema_to_python_type(schema, schema.get("$defs"))
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 965, in _json_schema_to_python_type
des = [
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 966, in <listcomp>
f"{n}: {_json_schema_to_python_type(v, defs)}{get_desc(v)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 973, in _json_schema_to_python_type
f"str, {_json_schema_to_python_type(schema['additionalProperties'], defs)}"
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 919, in _json_schema_to_python_type
type_ = get_type(schema)
File "/usr/local/lib/python3.10/site-packages/gradio_client/utils.py", line 880, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
I was thinking this might be an issue with the version of Gradio or Pydantic in the program, but I tried updating it on my HuggingFace space but the error still persisted.
Hope to get some help from you guys.
John
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 260
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di e2b-dev/open-computer-use
-
Want new features.....Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
e2b-dev/open-computer-use#39 · 1 commento ·
-
Local Model usingAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
e2b-dev/open-computer-use#37 · 1 reazione ·
-
sandbox connection failForse di nuovo libera @mishushakov l’ha presa 502 giorni fa e non c’è nessuna pull request aperta. Aperta
e2b-dev/open-computer-use#32 · 1 commento · 1 assegnatario ·
-
How to fix this sandbox errorForse di nuovo libera @mishushakov l’ha presa 502 giorni fa e non c’è nessuna pull request aperta. Aperta
e2b-dev/open-computer-use#31 · 1 assegnatario ·
-
Error when using DeepseekForse di nuovo libera @mishushakov l’ha presa 502 giorni fa e non c’è nessuna pull request aperta. Aperta
e2b-dev/open-computer-use#30 · 1 commento · 1 assegnatario ·
Tutte le issue di e2b-dev/open-computer-use
Issue simili
-
customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Azure/azure-cli#34150 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
community-request
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
NVIDIA-NeMo/Curator#2464 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
weblate-discover crashes with an unhandled FileNotFoundError when the directory does not existAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
WeblateOrg/translation-finder#1099 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
trezor/trezor-firmware#7997 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno