django-dbbackup: Failing with django 3

Django 3 removed six from django.utils. This breaks django-dbbackup when using django 3.

  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/vent/backend/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/home/vent/backend/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
    django.setup()
  File "/home/vent/backend/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/vent/backend/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate
    app_config.ready()
  File "/home/vent/backend/lib/python3.8/site-packages/dbbackup/apps.py", line 15, in ready
    from dbbackup import checks
  File "/home/vent/backend/lib/python3.8/site-packages/dbbackup/checks.py", line 3, in <module>
    from django.utils.six import string_types
ModuleNotFoundError: No module named 'django.utils.six'

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 11
  • Comments: 21 (4 by maintainers)

Commits related to this issue

Most upvoted comments

So, django-storages supports Django 3.0 now.

Can we get a release?

@all django-dbbackup 3.3.0 has been released on pypy

I’m am sorry for the latency, I didn’t realise so much people were using this tool. Is there anyone interested to be maintainer ?

Hi,

I’m am sorry for the latency, I didn’t realise so much people were using this tool.

Thanks, AlekSIS reintroduced dbbackup tonight and the new release works great!

Is there anyone interested to be maintainer ?

As we strongly depend on the ecosystem, helping you woth maintenance task would be something I could do.

Same 😕

Thanks for keeping support for ancient versions forever 😦.

The latest hash works, so we just need a new release. The last one was created 3 years ago!

It’s always sad to see projects, which are active but cannot be used as they don’t release on regular basis. What do you think @pkkid @ZuluPro ?

+1 for a release

Workaround until a stable release for Django 3 is launched:

Navigate into the virtual python env and search for string “django.utils.six”

You will probably get these files if the string is found: env/lib/python3.8/site-packages/dbbackup/db/*

In all files, replace “django.utils.six” with string “six”