django-dbbackup icon indicating copy to clipboard operation
django-dbbackup copied to clipboard

Fail to backup MySql db file

Open meet1919 opened this issue 3 years ago • 1 comments
trafficstars

django version : 4.0.3 django-dbbackup version: 3.3.0 python version: Python 3.9.7

When running this command python manage.py dbbackup an error come: ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'

If from site-packages/django-dbbackup/apps.py you replace ugettext_lazy with gettext_lazy, the above error wont come but an new error comes. dbbackup.db.exceptions.CommandConnectorError: Error running: mysqldump payupdb --quick --host=localhost --user=root --password=****

meet1919 avatar Mar 31 '22 05:03 meet1919

For what it is worth I am on django version : 4.0.4 django-dbbackup version: 3.3.0 python version: Python 3.10.4

and it worked fine after changing to gettext_lazy. Would be really great if gettext_lazy could be permanently fixed.

andreyyudin avatar Apr 14 '22 10:04 andreyyudin

Looks like this fixed with #342 which was merged into pre-release 4.0.0b0, and 4.0.2 was just released yesterday if you don't want to use the pre-release version. Could you attempt to upgrade and verify it is fixed?

chambersh1129 avatar Sep 29 '22 00:09 chambersh1129

This one was fixed with version 4.0.0.

Archmonger avatar Sep 29 '22 00:09 Archmonger