Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

[Bug]: No usable font found #18

Closed
1 task done
pathetix opened this issue Sep 3, 2022 · 0 comments
Closed
1 task done

[Bug]: No usable font found #18

pathetix opened this issue Sep 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pathetix
Copy link

pathetix commented Sep 3, 2022

What happened?

After entering prompt, got the following error:
Exception: No usable font found (tried arial.ttf, DejaVuSans.ttf)

SCR-20220903-dq7

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

Chrome

Where are you running the webui?

Colab

Custom settings

No response

Relevant log output

Iteration: 1/1
100% 13/13 [00:04<00:00,  2.83it/s]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/gradio/routes.py", line 247, in run_predict
    output = await app.blocks.process_api(
  File "/usr/local/lib/python3.8/site-packages/gradio/blocks.py", line 641, in process_api
    predictions, duration = await self.call_function(fn_index, processed_input)
  File "/usr/local/lib/python3.8/site-packages/gradio/blocks.py", line 556, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "scripts/webui.py", line 998, in txt2img
    output_images, seed, info, stats = process_images(
  File "scripts/webui.py", line 923, in process_images
    grid = image_grid(output_images, batch_size)
  File "scripts/webui.py", line 419, in image_grid
    fnt = get_font(30)
  File "scripts/webui.py", line 401, in get_font
    raise Exception(f"No usable font found (tried {', '.join(fonts)})")
Exception: No usable font found (tried arial.ttf, DejaVuSans.ttf)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@pathetix pathetix added the bug Something isn't working label Sep 3, 2022
@altryne altryne closed this as completed in 7aec7e1 Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant