Я изучаю python-docx (см. Ниже) и у меня возникают проблемы с TypeError.
Когда я запускаю document = Document()
, я получаю эту ошибку:
TypeError: super (type, obj): obj должен быть экземпляром или подтипом типа.
Я использую windows и spyder (python 3.7).
from docx import Document
from docx.shared import Inches
document = Document()#create one variable call document and create document class
document.add_heading("Hello World")
document.add_paragraph("This is a test")