'str' object has no attribute 'write'

boingboing·2022년 1월 5일
0
    output_filename = "test_eggut.pdf"
    result_file = open(output_filename, "w+b")

    pisaStatus = pisa.CreatePDF(
             html, dest=output_filename, link_callback=link_callback
    )

file에 write를 해야 하는데, filename을 매개변수로 줘서 발생한 문제

0개의 댓글