1

Topic: ModuleNotFoundError: No module named 'web'

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: CentOS Linux 7
- 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.
====

Hi there! I have this error when run py script:

python3 greylisting_admin.py --list
Traceback (most recent call last):
  File "greylisting_admin.py", line 8, in <module>
    import web
ModuleNotFoundError: No module named 'web'

python3 wblist_admin.py --list --whitelist
Traceback (most recent call last):
  File "wblist_admin.py", line 8, in <module>
    import web

python3 --version
Python 3.6.8

What should I install? Thanks.

----

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

2

Re: ModuleNotFoundError: No module named 'web'

Please upgrade to latest iRedAPD then try again:
https://docs.iredmail.org/upgrade.iredapd.html

By the way, "End dates are coming for CentOS Stream 8 and CentOS Linux 7", time to upgrade your CentOS 7:
https://blog.centos.org/2023/04/end-dat … s-linux-7/

- CentOS Stream 8: May 31, 2024
- CentOS 7: June 30, 2024

3

Re: ModuleNotFoundError: No module named 'web'

ZhangHuangbin wrote:

Please upgrade to latest iRedAPD then try again:

Thanks for reply!

IredAPD upgrade is some radical to me at this time. Maybe I should install some module for python and it will works? But I don't know what it the package.

4

Re: ModuleNotFoundError: No module named 'web'

ok, then run:

pip3 install -U web.py