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

When is next release scheduled to fix the "AttributeError: 'function' object has no attribute '__func__'" error in cache.py? #1775

Closed
vignirvignir opened this issue May 11, 2023 · 2 comments

Comments

@vignirvignir
Copy link

TLDR; When is the next release scheduled?

This error is present in version 4.0.0 when making any request on an endpoint using django rest framework.
I see it has been probably fixed in the latest commit a6b65a7

            | Traceback (most recent call last):
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
            |     response = get_response(request)
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/sentry_sdk/integrations/django/middleware.py", line 176, in __call__
            |     return f(*args, **kwargs)
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/middleware.py", line 64, in __call__
            |     panel.disable_instrumentation()
         |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/panels/cache.py", line 217, in disable_instrumentation
         |     self._unmonkey_patch_cache(cache)
         |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/panels/cache.py", line 171, in _unmonkey_patch_cache
         |     if original_method.__func__ == getattr(cache.__class__, name):
         | AttributeError: 'function' object has no attribute '__func__'
@matthiask
Copy link
Member

I do not have specific plans. Probably some time after #1773 has been merged (I'd really like tests to be green again)

FreneticScribbler added a commit to nottinghamtec/PyRIGS that referenced this issue May 12, 2023
This contains a major update to selenium and the associated changes to test files.

It also temporarily disables debug toolbar because of jazzband/django-debug-toolbar#1775
@matthiask
Copy link
Member

Fixed in 4.1.

francoisfreitag added a commit to gip-inclusion/les-emplois that referenced this issue May 24, 2023
github-merge-queue bot pushed a commit to gip-inclusion/les-emplois that referenced this issue Jun 2, 2023
github-merge-queue bot pushed a commit to gip-inclusion/les-emplois that referenced this issue Jun 5, 2023
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

2 participants