Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error - Django 3.0.1 - ImportError: cannot import name 'available_attrs' from 'django.utils.decorators' #280

Closed
SulanthaM opened this issue Dec 28, 2019 · 11 comments
Milestone

Comments

@SulanthaM
Copy link

Hi, I am using drf-extensions 0.5.0 with Django 3.0.1 and Python 3.7.
However, when I try to use the package, I get this error. I believe this has something to do with compatibility if Django 3.0.

Is this an easy fix?

File "/sam/Service/venv/lib/python3.7/site-packages/rest_framework_extensions/cache/decorators.py", line 4, in <module>
    from django.utils.decorators import available_attrs
ImportError: cannot import name 'available_attrs' from 'django.utils.decorators' (/sam/Service/venv/lib/python3.7/site-packages/django/utils/decorators.py)


@SulanthaM
Copy link
Author

I believe that this is due to the fact the pypi repo is not properly updated. The tar and whl files still contain the bugs fixed in #276

@MadSmiley
Copy link

Any Idea, when the pypi repo will be update with a new release?

@auvipy
Copy link
Collaborator

auvipy commented Jan 17, 2020

will push a new pypi release soon

@OskarPersson
Copy link
Contributor

@auvipy Any issue you see as a must to be fixed before release?

@auvipy
Copy link
Collaborator

auvipy commented Jan 26, 2020

check your email

@brianhelba
Copy link

@auvipy Can this issue be closed?

@SulanthaM
Copy link
Author

SulanthaM commented Aug 20, 2020 via email

@auvipy auvipy closed this as completed Aug 21, 2020
@auvipy
Copy link
Collaborator

auvipy commented Aug 21, 2020

thanks

@oneandonlyonebutyou
Copy link

I still face the same issue

  from drf_yasg.views import get_schema_view
  File ".venv/lib/python3.7/site-packages/drf_yasg/views.py", line 5, in <module>
    from django.utils.decorators import available_attrs
ImportError: cannot import name 'available_attrs' from 'django.utils.decorators'

@alex3381
Copy link

File "/app/.heroku/python/lib/python3.9/site-packages/drf_yasg/views.py", line 5, in
from django.utils.decorators import available_attrs
ImportError: cannot import name 'available_attrs' from 'django.utils.decorators' (/app/.heroku/python/lib/python3.9/site-packages/django/utils/decorators.py)

@auvipy
Copy link
Collaborator

auvipy commented Jul 25, 2021

File "/app/.heroku/python/lib/python3.9/site-packages/drf_yasg/views.py", line 5, in
from django.utils.decorators import available_attrs

not related to this package

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

No branches or pull requests

7 participants