Mailman3 message object uses deprecated email.__version__
I was trying to run ./bin/mailman-post-update while installing mailman3 and I receive the following backtrace:
Traceback (most recent call last):
File "/opt/mailman/mailman-bundler/venv-3.4/bin/mailman", line 11, in <module>
sys.exit(main())
File "/opt/mailman/mailman-bundler/venv-3.4/lib/python3.5/site-packages/mailman/bin/mailman.py", line 65, in main
for command_class in find_components('mailman.commands', ICLISubCommand):
File "/opt/mailman/mailman-bundler/venv-3.4/lib/python3.5/site-packages/mailman/utilities/modules.py", line 105, in find_components
__import__(module_name, fromlist='*')
File "/opt/mailman/mailman-bundler/venv-3.4/lib/python3.5/site-packages/mailman/commands/cli_lists.py", line 31, in <module>
from mailman.email.message import UserNotification
File "/opt/mailman/mailman-bundler/venv-3.4/lib/python3.5/site-packages/mailman/email/message.py", line 44, in <module>
VERSION = tuple(int(v) for v in email.__version__.split('.'))
AttributeError: module 'email' has no attribute '__version__'
I'm using python 3.5 and it seems that the '__version__' attribute has been removed in this version. See: https://docs.python.org/3/whatsnew/3.5.html#removed