jazzband / django-smart-selects

chained and grouped selects for django forms
https://django-smart-selects.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.1k stars 348 forks source link

ImportError: cannot import name 'six' from 'django.utils' #302

Closed gianluigiruggeri closed 4 years ago

gianluigiruggeri commented 4 years ago

Using last version I have the same issues as reported here

Is there a way to avoid this as code-fix?

manelclos commented 4 years ago

@gianluigiruggeri install from master branch:

pip install -e git+https://github.com/jazzband/django-smart-selects.git#egg=django-smart-selects
JudiPuak commented 4 years ago

hi manelclos

i can see that in the github repo, the db_fields.py is already updated from this: from django.utils import six to this: import six

however, when i run pip install --upgrade django-smart-selects, it says: requirement already up-to-date <1.5.4> and yet my db_fields.py still says: from django.utils import six

then i created a new virtual env and ran pip install django-smart-selects==1.5.4 to that virtualenv yet the db_fields.py of the new installation still says: from django.utils import six

could someone please help make the updated db_fields.py get installed in a fresh installation of django-smart-select?

yes, you gave that "pip install -e git+https......" but a fresh installation without that extra command should install the updated db_fields.py, don't you think? this is necessary so that we can simply include django-smart-selects==1.5.4 in requirements.txt for heroku and the updated db_fields.py will be guaranteed to be installed

thank you so much

jud

manelclos commented 4 years ago

@JudiPuak a new release is out: https://pypi.org/project/django-smart-selects/

Can you please try it out and let me know how it works?

JudiPuak commented 4 years ago

hi manelclos:

i just did a pip install django-smart-selects==1.5.6 and yes, the db_fields.py says:

import six

thank you so much jud

manelclos commented 4 years ago

great, closing this issue.