Skip to content

AttributeError: property 'file' of 'IMAP4_TLS' object has no setter on Python 3.14 #618

@jnoordsij

Description

@jnoordsij

Running this utility in the scope of some other package (parsedmarc), I ran into an issue of it failing with the following message:
AttributeError: property 'file' of 'IMAP4_TLS' object has no setter.

From what I could quickly gather, this is triggered by the following call:

self.file = self.sock.makefile("rb")

This call no longer seems to be valid in Python 3.14 due to changes in the imaplib library to the file property:
https://github.com/python/cpython/blob/5cea8435943b4f9d22c89c80d86c2ba3b392c6f9/Lib/imaplib.py#L322-L336
(see also python/cpython@0fef47e).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions