mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #1651] Bug when Upgrading #1297
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Th0rGer on GitHub (Jan 7, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1651
Impacted versions
Steps to reproduce
Try to upgrade
Current behavior
python manage.py migrate
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 364, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 308, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/srv/modoboa/instance/instance/settings.py", line 331, in
from modoboa_amavis import settings as modoboa_amavis_settings
ImportError: No module named modoboa_amavis
Expected behavior
...
@tonioo commented on GitHub (Jan 9, 2019):
@Th0rGer you forgot to load the virtualenv before running the migration process. Please consult the documentation: https://modoboa.readthedocs.io/en/latest/upgrade.html.
I know the upgrade process is a bit tricky but there is an open sponsoring (https://modoboa.org/en/projects/8/) to improve it.