Skip to content

AttributeError: 'function' object has no attribute 'read' #134

@xiaohuhuhuhu-code

Description

@xiaohuhuhuhu-code

Traceback (most recent call last):
File "C:\ProgramData\anaconda3\envs\ComfyUI\lib\site-packages\moviepy\video\VideoClip.py", line 1681, in init
_ = ImageFont.truetype(font)
File "C:\ProgramData\anaconda3\envs\ComfyUI\lib\site-packages\PIL\ImageFont.py", line 834, in truetype
return freetype(font)
File "C:\ProgramData\anaconda3\envs\ComfyUI\lib\site-packages\PIL\ImageFont.py", line 831, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "C:\ProgramData\anaconda3\envs\ComfyUI\lib\site-packages\PIL\ImageFont.py", line 261, in init
load_from_bytes(font)
File "C:\ProgramData\anaconda3\envs\ComfyUI\lib\site-packages\PIL\ImageFont.py", line 240, in load_from_bytes
self.font_bytes = f.read()
AttributeError: 'function' object has no attribute 'read'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions