1

Topic: Import name error after upgrade to PRO

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.8 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? iRedmail Easy
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? not yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Traceback (most recent call last):
  File "delete_sessions.py", line 16, in <module>
    from tools import ira_tool_lib
  File "/opt/www/iRedAdmin-Pro-SQL-5.5/tools/../tools/ira_tool_lib.py", line 18, in <module>
    from libs import iredutils
  File "/opt/www/iRedAdmin-Pro-SQL-5.5/tools/../libs/iredutils.py", line 21, in <module>
    from libs import regxes, l10n
ImportError: cannot import name 'regxes' from 'libs' (/opt/www/iRedAdmin-Pro-SQL-5.5/tools/../libs/__init__.py)
* iRedAdmin has been successfully upgraded.
* Restarting iredadmin service.
* Enable service: iredadmin
Created symlink /etc/systemd/system/multi-user.target.wants/iredadmin.service -> /lib/systemd/system/iredadmin.service.
* Upgrading completed.


having internal Server Error after upgrade

----

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

2

Re: Import name error after upgrade to PRO

Hi Guys,

Hoping for a reply due to we are checking if we can migrate our current email server to iRedmail.

Thank You

3

Re: Import name error after upgrade to PRO

marky.hernandez wrote:

ImportError: cannot import name 'regxes' from 'libs' (/opt/www/iRedAdmin-Pro-SQL-5.5/tools/../libs/__init__.py)

- Are you running a trial license of iRedAdmin-Pro?
- Please show me output of commands below:

ls -l /opt/www/
ls -l /opt/www/iredadmin/

4

Re: Import name error after upgrade to PRO

Same problem on my fresh installation and upgrade to PRO


:/tmp/iRedAdmin-Pro-LDAP-5.6/tools$ ls -l /opt/www/
total 12
dr-xr-xr-x 13 iredadmin iredadmin 4096 Mar 26 09:01 iRedAdmin-2.5
dr-xr-xr-x 13 iredadmin iredadmin 4096 Mar 26 17:16 iRedAdmin-Pro-LDAP-5.6
lrwxrwxrwx  1 root      root        22 Mar 26 17:16 iredadmin -> iRedAdmin-Pro-LDAP-5.6
lrwxrwxrwx  1 root      root        28 Mar 26 08:52 roundcubemail -> /opt/www/roundcubemail-1.6.5
drwxrwxr-x 13 root      root      4096 Nov  5 08:59 roundcubemail-1.6.5
/tmp/iRedAdmin-Pro-LDAP-5.6/tools$ ls -l /opt/www/iredadmin/
total 168
-r-xr-xr-x  1 iredadmin iredadmin    36 Mar 26 17:16 AUTHORS
-r-xr-xr-x  1 iredadmin iredadmin 87544 Mar 26 17:16 ChangeLog.ldap
-r-xr-xr-x  1 iredadmin iredadmin   550 Mar 26 17:16 EULA
-r-xr-xr-x  1 iredadmin iredadmin   849 Mar 26 17:16 README.md
dr-xr-xr-x  3 iredadmin iredadmin  4096 Mar 26 16:42 SQL
dr-xr-xr-x  2 iredadmin iredadmin  4096 Mar 26 17:16 __pycache__
dr-xr-xr-x  8 iredadmin iredadmin  4096 Mar 26 16:42 controllers
dr-xr-xr-x  3 iredadmin iredadmin  4096 Mar 26 16:42 docs
dr-xr-xr-x 24 iredadmin iredadmin  4096 Mar 26 16:42 i18n
-r-xr-xr-x  1 iredadmin iredadmin   432 Mar 26 17:16 iredadmin.py
dr-xr-xr-x  9 iredadmin iredadmin  4096 Mar 26 16:42 libs
dr-xr-xr-x  4 iredadmin iredadmin  4096 Mar 26 16:42 rc_scripts
-r-xr-xr-x  1 iredadmin iredadmin   603 Mar 26 17:16 requirements.txt
-r--------  1 iredadmin iredadmin  5036 Mar 26 17:16 settings.py
-r-xr-xr-x  1 iredadmin iredadmin  4608 Mar 26 17:16 settings.py.ldap.sample
dr-xr-xr-x  5 iredadmin iredadmin  4096 Mar 26 16:42 static
dr-xr-xr-x  3 iredadmin iredadmin  4096 Mar 26 16:42 templates
dr-xr-xr-x  3 iredadmin iredadmin  4096 Mar 26 16:42 tools
dr-xr-xr-x  4 iredadmin iredadmin  4096 Mar 26 16:42 web