Skip to content

Error while trying to use the X/Y/Z plot #69

@FelipixelVR

Description

@FelipixelVR

this is the error I'm getting:
Traceback (most recent call last):
File "/content/microsoftexcel/modules/call_queue.py", line 58, in f
res = list(func(*args, **kwargs))
File "/content/microsoftexcel/modules/call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "/content/microsoftexcel/modules/txt2img.py", line 59, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "/content/microsoftexcel/modules/scripts.py", line 501, in run
processed = script.run(p, *script_args)
File "/content/microsoftexcel/scripts/xyz_grid.py", line 688, in run
processed = draw_xyz_grid(
File "/content/microsoftexcel/scripts/xyz_grid.py", line 344, in draw_xyz_grid
grid = images.draw_grid_annotations(grid, processed_result.images[start_index].size[0], processed_result.images[start_index].size[1], hor_texts, ver_texts, margin_size)
File "/content/microsoftexcel/modules/images.py", line 220, in draw_grid_annotations
draw_texts(d, x, y, hor_texts[col], fnt, fontsize)
File "/content/microsoftexcel/modules/images.py", line 163, in draw_texts
while drawing.multiline_textsize(line.text, font=fnt)[0] > line.allowed_width and fontsize > 0:
AttributeError: 'ImageDraw' object has no attribute 'multiline_textsize'

One common solution I've saw on how to fix this error is to change the Pillow version back to 9.4.0, but I am currently running that older version so that solution doesn't work here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions