1

Topic: Need to import_users.py

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

sudo python2 import_users.py /opt/users.list

Traceback (most recent call last):
  File "import_users.py", line 94, in <module>
    from libs import iredutils
  File "/home/user/iRedAdmin-Pro-SQL-4.6/tools/../libs/iredutils.py", line 92
    def is_auth_email(s) -> bool:
                         ^
SyntaxError: invalid syntax

this is the syntax i'm using: user@domain.mx, password, 2048, User Name,

do i need to change something?

2

Re: Need to import_users.py

The latest iRedAdmin-Pro now requires Python 3, please run it with command "python3", not "python2".

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Need to import_users.py

ZhangHuangbin wrote:

The latest iRedAdmin-Pro now requires Python 3, please run it with command "python3", not "python2".

i got this with python3 :

sudo python3 import_users.py /opt/users.list
Traceback (most recent call last):
  File "import_users.py", line 94, in <module>
    from libs import iredutils
  File "/home/user/iRedAdmin-Pro-SQL-4.6/tools/../libs/iredutils.py", line 20, in <module>
    import settings
ModuleNotFoundError: No module named 'settings'