Traceback (most recent call last):
File "/usr/bin/mailman", line 33, in <module>
sys.exit(load_entry_point('mailman==3.3.3', 'console_scripts',
'mailman')())
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 781, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/usr/lib/python3/dist-packages/click/core.py", line 700, in
make_context
self.parse_args(ctx, args)
File "/usr/lib/python3/dist-packages/click/core.py", line 1212, in parse_args
rest = Command.parse_args(self, ctx, args)
File "/usr/lib/python3/dist-packages/click/core.py", line 1048, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
File "/usr/lib/python3/dist-packages/click/core.py", line 1630, in
handle_parse_result
value = invoke_param_callback(self.callback, ctx, self, value)
File "/usr/lib/python3/dist-packages/click/core.py", line 123, in
invoke_param_callback
return callback(ctx, param, value)
File "/usr/lib/python3/dist-packages/mailman/bin/mailman.py", line 94, in
initialize_config
initialize(value)
File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 218, in
initialize
initialize_2(propagate_logs=propagate_logs)
File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 177, in
initialize_2
config.db = getUtility(IDatabaseFactory, utility_name).create()
File "/usr/lib/python3/dist-packages/mailman/database/factory.py", line 54, in
create
database.initialize()
File "/usr/lib/python3/dist-packages/mailman/database/base.py", line 106, in
initialize
self.engine = create_engine(
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/__init__.py", line 520,
in create_engine
return strategy.create(*args, **kwargs)
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/strategies.py", line
87, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/usr/lib/python3/dist-packages/sqlalchemy/dialects/mysql/pymysql.py",
line 62, in dbapi
return __import__("pymysql")
ModuleNotFoundError: No module named 'pymysql'