[GH-ISSUE #1382] Update moduboa-postfix-maps.chk #1098

Closed
opened 2026-02-27 11:15:15 +03:00 by kerem · 9 comments
Owner

Originally created by @plvsouza on GitHub (Jan 31, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1382

I get this error when trying to update moduboa-postfix-maps.chk after update to 1.10.1

python manage.py generate_postfix_maps --force --destdir /etc/postfix/
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 341, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 123, in create
import_module(entry)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named transport

Originally created by @plvsouza on GitHub (Jan 31, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1382 I get this error when trying to update moduboa-postfix-maps.chk after update to 1.10.1 > python manage.py generate_postfix_maps --force --destdir /etc/postfix/ > Traceback (most recent call last): > File "manage.py", line 22, in <module> > execute_from_command_line(sys.argv) > File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line > utility.execute() > File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 341, in execute > django.setup() > File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup > apps.populate(settings.INSTALLED_APPS) > File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate > app_config = AppConfig.create(entry) > File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 123, in create > import_module(entry) > File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module > __import__(name) > ImportError: No module named transport
kerem closed this issue 2026-02-27 11:15:16 +03:00
Author
Owner

@ghost commented on GitHub (Jan 31, 2018):

Looks like you forgot the upgrade instructions: http://modoboa.readthedocs.io/en/latest/upgrade.html#id2

<!-- gh-comment-id:361909063 --> @ghost commented on GitHub (Jan 31, 2018): Looks like you forgot the upgrade instructions: http://modoboa.readthedocs.io/en/latest/upgrade.html#id2
Author
Owner

@plvsouza commented on GitHub (Jan 31, 2018):

I follow this steps exactly

<!-- gh-comment-id:361910906 --> @plvsouza commented on GitHub (Jan 31, 2018): I follow this steps exactly
Author
Owner

@tonioo commented on GitHub (Jan 31, 2018):

@plvsouza Looks like you're not using the right python binary so the virtualenv is not loaded. If you run the command as root, make sure to use the absolute path of the binary (like /srv/modoboa/env/bin/python)

<!-- gh-comment-id:361922336 --> @tonioo commented on GitHub (Jan 31, 2018): @plvsouza Looks like you're not using the right python binary so the virtualenv is not loaded. If you run the command as root, make sure to use the absolute path of the binary (like ``/srv/modoboa/env/bin/python``)
Author
Owner

@plvsouza commented on GitHub (Jan 31, 2018):

Now I'm having this problem when starts postfix

fatal: proxymap service is not configured for table "pgsql:/etc/postfix/sql-transport.cf"

<!-- gh-comment-id:361934097 --> @plvsouza commented on GitHub (Jan 31, 2018): Now I'm having this problem when starts postfix > fatal: proxymap service is not configured for table "pgsql:/etc/postfix/sql-transport.cf"
Author
Owner

@tonioo commented on GitHub (Jan 31, 2018):

Looks at the upgrade instructions:
http://modoboa.readthedocs.io/en/latest/upgrade.html#id2

<!-- gh-comment-id:361935750 --> @tonioo commented on GitHub (Jan 31, 2018): Looks at the upgrade instructions: http://modoboa.readthedocs.io/en/latest/upgrade.html#id2
Author
Owner

@tonioo commented on GitHub (Jan 31, 2018):

And also update proxy_read_maps.

<!-- gh-comment-id:361935980 --> @tonioo commented on GitHub (Jan 31, 2018): And also update proxy_read_maps.
Author
Owner

@plvsouza commented on GitHub (Jan 31, 2018):

And also update proxy_read_maps?

Where?

<!-- gh-comment-id:361939767 --> @plvsouza commented on GitHub (Jan 31, 2018): And also update proxy_read_maps? Where?
Author
Owner

@tonioo commented on GitHub (Jan 31, 2018):

Should be in the same file, main.cf. Have you used the installer?

<!-- gh-comment-id:361940080 --> @tonioo commented on GitHub (Jan 31, 2018): Should be in the same file, main.cf. Have you used the installer?
Author
Owner

@plvsouza commented on GitHub (Jan 31, 2018):

It works now

<!-- gh-comment-id:361945440 --> @plvsouza commented on GitHub (Jan 31, 2018): It works now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1098
No description provided.