Error scheduled Job (email_account)

email_account.pull

Traceback with variables (most recent call last):
File “apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py”, line 143, in execute
frappe.get_attr(self.method)()
self = <ScheduledJobType: email_account.pull>
File “apps/frappe/frappe/init.py”, line 1765, in get_attr
return getattr(get_module(modulename), methodname)
method_string = ‘frappe.email.doctype.email_account.email_account.pull’
app_name = ‘frappe’
modulename = ‘frappe.email.doctype.email_account.email_account’
methodname = ‘pull’
File “apps/frappe/frappe/init.py”, line 1483, in get_module
return importlib.import_module(modulename)
modulename = ‘frappe.email.doctype.email_account.email_account’
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘frappe.email.doctype.email_account.email_account’
package = None
level = 0
File “”, line 1050, in _gcd_import
name = ‘frappe.email.doctype.email_account.email_account’
package = None
level = 0
File “”, line 1027, in find_and_load
name = ‘frappe.email.doctype.email_account.email_account’
import
= <function _gcd_import at 0x7f428fcfb400>
module = Traceback (most recent call last):
File “env/lib/python3.10/site-packages/traceback_with_variables/core.py”, line 222, in to_cropped_str
raw = print
(obj)
File “apps/frappe/frappe/utils/init.py”, line 328, in dict_printer
if key in v:
TypeError: argument of type ‘object’ is not iterable

File “”, line 1006, in find_and_load_unlocked
name = ‘frappe.email.doctype.email_account.email_account’
import
= <function _gcd_import at 0x7f428fcfb400>
path = [‘apps/frappe/frappe/email/doctype/email_account’]
parent = ‘frappe.email.doctype.email_account’
parent_module = <module ‘frappe.email.doctype.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/init.py’>
spec = ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’)
File “”, line 688, in _load_unlocked
spec = ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’)
module = <module ‘frappe.email.doctype.email_account.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’>
File “”, line 883, in exec_module
self = <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>
module = <module ‘frappe.email.doctype.email_account.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’>
code = <code object at 0x7f428a8c49d0, file “apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 1>
File “”, line 241, in _call_with_frames_removed
f =
args = (<code object at 0x7f428a8c49d0, file “apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 1>, {‘name’: ‘frappe.email.doctype.email_account.email_account’, ‘doc’: None, ‘package’: ‘frappe.email.doctype.email_account’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>, ‘spec’: ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’), ‘file’: ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’, ‘cached’: ‘apps/frappe/frappe/email/doctype/email_account/pycache/email_account.cpython-310.pyc’, ‘builtins’: {‘name’: ‘builtins’, ‘doc’: “Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil' ... kwds = {} File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 14, in <module> from frappe.email.doctype.email_domain.email_domain import EMAIL_DOMAIN_FIELDS __name__ = 'frappe.email.doctype.email_account.email_account' __doc__ = None __package__ = 'frappe.email.doctype.email_account' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390> __spec__ = ModuleSpec(name='frappe.email.doctype.email_account.email_account', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b1390>, origin='apps/frappe/frappe/email/doctype/email_account/email_account.py') __file__ = 'apps/frappe/frappe/email/doctype/email_account/email_account.py' __cached__ = 'apps/frappe/frappe/email/doctype/email_account/__pycache__/email_account.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... email = <module 'email' from '/usr/lib/python3.10/email/__init__.py'> functools = <module 'functools' from '/usr/lib/python3.10/functools.py'> imaplib = <module 'imaplib' from '/usr/lib/python3.10/imaplib.py'> time = <module 'time' (built-in)> datetime = <class 'datetime.datetime'> timedelta = <class 'datetime.timedelta'> error_proto = <class 'poplib.error_proto'> frappe = <module 'frappe' from 'apps/frappe/frappe/__init__.py'> _ = <function _ at 0x7f428f2103a0> are_emails_muted = <function are_emails_muted at 0x7f428dd27be0> safe_encode = <function safe_encode at 0x7f428e4a8820> assign_to = <module 'frappe.desk.form.assign_to' from 'apps/frappe/frappe/desk/form/assign_to.py'> File "apps/frappe/frappe/email/doctype/email_domain/email_domain.py", line 6, in <module> import smtplib __name__ = 'frappe.email.doctype.email_domain.email_domain' __doc__ = None __package__ = 'frappe.email.doctype.email_domain' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b31f0> __spec__ = ModuleSpec(name='frappe.email.doctype.email_domain.email_domain', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b31f0>, origin='apps/frappe/frappe/email/doctype/email_domain/email_domain.py') __file__ = 'apps/frappe/frappe/email/doctype/email_domain/email_domain.py' __cached__ = 'apps/frappe/frappe/email/doctype/email_domain/__pycache__/email_domain.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... imaplib = <module 'imaplib' from '/usr/lib/python3.10/imaplib.py'> poplib = <module 'poplib' from '/usr/lib/python3.10/poplib.py'> File "/usr/lib/python3.10/smtplib.py", line 49, in <module> import email.generator __name__ = 'smtplib' __doc__ = 'SMTP/ESMTP client class.\n\nThis should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP\nAuthentication) and RFC 2487 (Secure SMTP over TLS).\n\nNotes:\n\nPlease remember, when doing ESMTP, that the names of the SMTP service\nextensions are NOT the same thing as the option keywords for the RCPT\nand MAIL commands!\n\nExample:\n\n >>> import smtplib\n >>> s=smtplib.SMTP("localhost")\n >>> print(s.help())\n This is Sendmail version 8.8.4\n Topics:\n HELO EHLO MAIL RCPT DATA\n RSET NOOP QUIT HELP VRFY\n EXPN VERB ETRN DSN\n For more info use "HELP <topic>".\n To report bugs in the implementation send email to\n sendmail-bugs@sendmail.org.\n For local information send email to Postmaster at your site.\n End of HELP info\n >>> s.putcmd("vrfy","someone@here")\n >>> s.getreply()\n (250, "Somebody OverHere <somebody@here.my.org>")\n >>> s.quit()\n' __package__ = '' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b36a0> __spec__ = ModuleSpec(name='smtplib', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8b36a0>, origin='/usr/lib/python3.10/smtplib.py') __file__ = '/usr/lib/python3.10/smtplib.py' __cached__ = '/usr/lib/python3.10/__pycache__/smtplib.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... socket = <module 'socket' from '/usr/lib/python3.10/socket.py'> io = <module 'io' from '/usr/lib/python3.10/io.py'> re = <module 're' from '/usr/lib/python3.10/re.py'> email = <module 'email' from '/usr/lib/python3.10/email/__init__.py'> File "/usr/lib/python3.10/email/generator.py", line 17, in <module> from email.errors import HeaderWriteError __name__ = 'email.generator' __doc__ = 'Classes to generate plain text from a message object tree.' __package__ = 'email' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7f428a8fc5b0> __spec__ = ModuleSpec(name='email.generator', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f428a8fc5b0>, origin='/usr/lib/python3.10/email/generator.py') __file__ = '/usr/lib/python3.10/email/generator.py' __cached__ = '/usr/lib/python3.10/email/__pycache__/generator.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents `…’ in slices.”, ‘package’: ‘’, ‘loader’: <class ‘_frozen_importlib.BuiltinImporter’>, ‘spec’: ModuleSpec(name=‘builtins’, loader=<class ‘_frozen_importlib.BuiltinImporter’>, origin=‘built-in’), ‘build_class’: , ‘import’: , ‘abs’: , ‘all’: , ‘any’: , ‘ascii’: , ‘bin’: , ‘breakpoint’: , ‘callable’: , ‘chr’: , ‘compile’: , ‘delattr’: , ‘dir’: , ‘divmod’: , ‘eval’: , ‘exec’: , ‘format’: , …
all = [‘Generator’, ‘DecodedGenerator’, ‘BytesGenerator’]
re = <module ‘re’ from ‘/usr/lib/python3.10/re.py’>
sys = <module ‘sys’ (built-in)>
time = <module ‘time’ (built-in)>
random = <module ‘random’ from ‘/usr/lib/python3.10/random.py’>
deepcopy = <function deepcopy at 0x7f428f24d480>
StringIO = <class ‘_io.StringIO’>
BytesIO = <class ‘_io.BytesIO’>
_has_surrogates = <function _has_surrogates at 0x7f428f0b1e10>
builtins.ImportError: cannot import name ‘HeaderWriteError’ from ‘email.errors’ (/usr/lib/python3.10/email/errors.py)


email_account.notify_unreplied

Traceback with variables (most recent call last):
File “apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py”, line 143, in execute
frappe.get_attr(self.method)()
self = <ScheduledJobType: email_account.notify_unreplied>
File “apps/frappe/frappe/init.py”, line 1765, in get_attr
return getattr(get_module(modulename), methodname)
method_string = ‘frappe.email.doctype.email_account.email_account.notify_unreplied’
app_name = ‘frappe’
modulename = ‘frappe.email.doctype.email_account.email_account’
methodname = ‘notify_unreplied’
File “apps/frappe/frappe/init.py”, line 1483, in get_module
return importlib.import_module(modulename)
modulename = ‘frappe.email.doctype.email_account.email_account’
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘frappe.email.doctype.email_account.email_account’
package = None
level = 0
File “”, line 1050, in _gcd_import
name = ‘frappe.email.doctype.email_account.email_account’
package = None
level = 0
File “”, line 1027, in find_and_load
name = ‘frappe.email.doctype.email_account.email_account’
import
= <function _gcd_import at 0x70deef563400>
module = Traceback (most recent call last):
File “env/lib/python3.10/site-packages/traceback_with_variables/core.py”, line 222, in to_cropped_str
raw = print
(obj)
File “apps/frappe/frappe/utils/init.py”, line 328, in dict_printer
if key in v:
TypeError: argument of type ‘object’ is not iterable

File “”, line 1006, in find_and_load_unlocked
name = ‘frappe.email.doctype.email_account.email_account’
import
= <function _gcd_import at 0x70deef563400>
path = [‘apps/frappe/frappe/email/doctype/email_account’]
parent = ‘frappe.email.doctype.email_account’
parent_module = <module ‘frappe.email.doctype.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/init.py’>
spec = ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’)
File “”, line 688, in _load_unlocked
spec = ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’)
module = <module ‘frappe.email.doctype.email_account.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’>
File “”, line 883, in exec_module
self = <_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>
module = <module ‘frappe.email.doctype.email_account.email_account’ from ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’>
code = <code object at 0x70deea8cc9d0, file “apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 1>
File “”, line 241, in _call_with_frames_removed
f =
args = (<code object at 0x70deea8cc9d0, file “apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 1>, {‘name’: ‘frappe.email.doctype.email_account.email_account’, ‘doc’: None, ‘package’: ‘frappe.email.doctype.email_account’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>, ‘spec’: ModuleSpec(name=‘frappe.email.doctype.email_account.email_account’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>, origin=‘apps/frappe/frappe/email/doctype/email_account/email_account.py’), ‘file’: ‘apps/frappe/frappe/email/doctype/email_account/email_account.py’, ‘cached’: ‘apps/frappe/frappe/email/doctype/email_account/pycache/email_account.cpython-310.pyc’, ‘builtins’: {‘name’: ‘builtins’, ‘doc’: “Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil' ... kwds = {} File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 14, in <module> from frappe.email.doctype.email_domain.email_domain import EMAIL_DOMAIN_FIELDS __name__ = 'frappe.email.doctype.email_account.email_account' __doc__ = None __package__ = 'frappe.email.doctype.email_account' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0> __spec__ = ModuleSpec(name='frappe.email.doctype.email_account.email_account', loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b51b0>, origin='apps/frappe/frappe/email/doctype/email_account/email_account.py') __file__ = 'apps/frappe/frappe/email/doctype/email_account/email_account.py' __cached__ = 'apps/frappe/frappe/email/doctype/email_account/__pycache__/email_account.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... email = <module 'email' from '/usr/lib/python3.10/email/__init__.py'> functools = <module 'functools' from '/usr/lib/python3.10/functools.py'> imaplib = <module 'imaplib' from '/usr/lib/python3.10/imaplib.py'> time = <module 'time' (built-in)> datetime = <class 'datetime.datetime'> timedelta = <class 'datetime.timedelta'> error_proto = <class 'poplib.error_proto'> frappe = <module 'frappe' from 'apps/frappe/frappe/__init__.py'> _ = <function _ at 0x70deef30c3a0> are_emails_muted = <function are_emails_muted at 0x70deee32bbe0> safe_encode = <function safe_encode at 0x70deee4dc820> assign_to = <module 'frappe.desk.form.assign_to' from 'apps/frappe/frappe/desk/form/assign_to.py'> File "apps/frappe/frappe/email/doctype/email_domain/email_domain.py", line 6, in <module> import smtplib __name__ = 'frappe.email.doctype.email_domain.email_domain' __doc__ = None __package__ = 'frappe.email.doctype.email_domain' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x70deea8b7010> __spec__ = ModuleSpec(name='frappe.email.doctype.email_domain.email_domain', loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b7010>, origin='apps/frappe/frappe/email/doctype/email_domain/email_domain.py') __file__ = 'apps/frappe/frappe/email/doctype/email_domain/email_domain.py' __cached__ = 'apps/frappe/frappe/email/doctype/email_domain/__pycache__/email_domain.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... imaplib = <module 'imaplib' from '/usr/lib/python3.10/imaplib.py'> poplib = <module 'poplib' from '/usr/lib/python3.10/poplib.py'> File "/usr/lib/python3.10/smtplib.py", line 49, in <module> import email.generator __name__ = 'smtplib' __doc__ = 'SMTP/ESMTP client class.\n\nThis should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP\nAuthentication) and RFC 2487 (Secure SMTP over TLS).\n\nNotes:\n\nPlease remember, when doing ESMTP, that the names of the SMTP service\nextensions are NOT the same thing as the option keywords for the RCPT\nand MAIL commands!\n\nExample:\n\n >>> import smtplib\n >>> s=smtplib.SMTP("localhost")\n >>> print(s.help())\n This is Sendmail version 8.8.4\n Topics:\n HELO EHLO MAIL RCPT DATA\n RSET NOOP QUIT HELP VRFY\n EXPN VERB ETRN DSN\n For more info use "HELP <topic>".\n To report bugs in the implementation send email to\n sendmail-bugs@sendmail.org.\n For local information send email to Postmaster at your site.\n End of HELP info\n >>> s.putcmd("vrfy","someone@here")\n >>> s.getreply()\n (250, "Somebody OverHere <somebody@here.my.org>")\n >>> s.quit()\n' __package__ = '' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x70deea8b74c0> __spec__ = ModuleSpec(name='smtplib', loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea8b74c0>, origin='/usr/lib/python3.10/smtplib.py') __file__ = '/usr/lib/python3.10/smtplib.py' __cached__ = '/usr/lib/python3.10/__pycache__/smtplib.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents ...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, ... socket = <module 'socket' from '/usr/lib/python3.10/socket.py'> io = <module 'io' from '/usr/lib/python3.10/io.py'> re = <module 're' from '/usr/lib/python3.10/re.py'> email = <module 'email' from '/usr/lib/python3.10/email/__init__.py'> File "/usr/lib/python3.10/email/generator.py", line 17, in <module> from email.errors import HeaderWriteError __name__ = 'email.generator' __doc__ = 'Classes to generate plain text from a message object tree.' __package__ = 'email' __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x70deea7003d0> __spec__ = ModuleSpec(name='email.generator', loader=<_frozen_importlib_external.SourceFileLoader object at 0x70deea7003d0>, origin='/usr/lib/python3.10/email/generator.py') __file__ = '/usr/lib/python3.10/email/generator.py' __cached__ = '/usr/lib/python3.10/email/__pycache__/generator.cpython-310.pyc' __builtins__ = {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil’ object; Ellipsis represents `…’ in slices.”, ‘package’: ‘’, ‘loader’: <class ‘_frozen_importlib.BuiltinImporter’>, ‘spec’: ModuleSpec(name=‘builtins’, loader=<class ‘_frozen_importlib.BuiltinImporter’>, origin=‘built-in’), ‘build_class’: , ‘import’: , ‘abs’: , ‘all’: , ‘any’: , ‘ascii’: , ‘bin’: , ‘breakpoint’: , ‘callable’: , ‘chr’: , ‘compile’: , ‘delattr’: , ‘dir’: , ‘divmod’: , ‘eval’: , ‘exec’: , ‘format’: , …
all = [‘Generator’, ‘DecodedGenerator’, ‘BytesGenerator’]
re = <module ‘re’ from ‘/usr/lib/python3.10/re.py’>
sys = <module ‘sys’ (built-in)>
time = <module ‘time’ (built-in)>
random = <module ‘random’ from ‘/usr/lib/python3.10/random.py’>
deepcopy = <function deepcopy at 0x70deef349480>
StringIO = <class ‘_io.StringIO’>
BytesIO = <class ‘_io.BytesIO’>
_has_surrogates = <function _has_surrogates at 0x70deef169e10>
builtins.ImportError: cannot import name ‘HeaderWriteError’ from ‘email.errors’ (/usr/lib/python3.10/email/errors.py)

Reference: ImportError: cannot import name 'HeaderWriteError' from 'email.errors' - #5 by corentin

1 Like