Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Six removed from django 3.0 #151

Closed
ortegoncarlos opened this issue Apr 24, 2020 · 7 comments
Closed

Six removed from django 3.0 #151

ortegoncarlos opened this issue Apr 24, 2020 · 7 comments

Comments

@ortegoncarlos
Copy link

Hello thanks for your work, the library django.utils.six was removed from django 3.0

https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis

  File "django_projects/Asostartups/venv/lib/python3.7/site-packages/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py", line 5, in <module>
    from django.utils import six
ImportError: cannot import name 'six' from 'django.utils' (/Users/carlosortegon/django_projects/Asostartups/venv/lib/python3.7/site-packages/django/utils/__init__.py)

During handling of the above exception, another exception occurr
@ortegoncarlos
Copy link
Author

actually you just imported but don't use it, it can be erase that line

from django.utils import six

@Nefonfo
Copy link

Nefonfo commented Apr 29, 2020

I have the same problem with the import name 'six'

@ortegoncarlos
Copy link
Author

not the "best practice" way to fix it but a hacky way:

Go to
/site-packages/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
and erase line

from django.utils import six

@nodarai
Copy link

nodarai commented May 8, 2020

@ortegoncarlos maybe worth to make a new release in order to make the package compatible with Django 3

@eghlima
Copy link

eghlima commented May 11, 2020

@ortegoncarlos
Thanks for this library. as most of users using the django3, I think that is better to have a new release.
when you think we can have a new release?

@douglasmiranda
Copy link
Owner

I'll be pushing a new release very soon, sorry for the delay.

@douglasmiranda
Copy link
Owner

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants