I managed to get a different error now and I'm starting to investigate this right now. By the way, I really appreciate your interest, thank you very much. new error i get: VisitorsExplanation = self.ui.text_VisitorsExplanation.text() AttributeError: 'PySide2.QtWidgets.QTextEdit' object has no attribute 'text' I hope that after solving this problem, the errors I get are now gone