1

Topic: iRedAPD throws errors about Python

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.8 (Free)
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: FreeBSD 14.0-RELEASE amd64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Just notice when trying to start iredapd service, it throws the following errors:

iredapd is already stopped.
Starting iredapd.
Traceback (most recent call last):
  File "/opt/iredapd/iredapd.py", line 21, in <module>
    from libs import __version__, daemon, utils
  File "/opt/iRedAPD-5.3.3/libs/utils.py", line 18, in <module>
    from sqlalchemy import create_engine
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/__init__.py", line 9, in <module>
    from .sql import (
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/__init__.py", line 8, in <module>
    from .expression import (
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/expression.py", line 31, in <module>
    from .functions import func, modifier, FunctionElement, Function
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/functions.py", line 11, in <module>
    from . import sqltypes, schema
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/sqltypes.py", line 16, in <module>
    from .elements import quoted_name, type_coerce, _defer_name
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 21, in <module>
    from .base import Executable, PARSE_AUTOCOMMIT, Immutable, NO_ARG
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/base.py", line 49, in <module>
    class _DialectArgView(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

# python3 -V                       
Python 3.10.13

How do I fix this ?
Regards

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedAPD throws errors about Python

Seems iRedAPD doesn't support latest SQLalchemy package, will investigate this shortly.

3

Re: iRedAPD throws errors about Python

This was reported before: https://github.com/iredmail/iRedAPD/issues/15
Will investigate it today.