Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Issue: Recent python-djangorestframework-filters upgrade breaks esmond

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Issue: Recent python-djangorestframework-filters upgrade breaks esmond


Chronological Thread 
  • From: Antoine Delvaux <>
  • To:
  • Cc:
  • Subject: Re: [perfsonar-user] Issue: Recent python-djangorestframework-filters upgrade breaks esmond
  • Date: Thu, 9 Aug 2018 12:18:57 +0000
  • Ironport-phdr: 9a23:R5T1wRAJ9TWinXAW03byUyQJP3N1i/DPJgcQr6AfoPdwSPX5osbcNUDSrc9gkEXOFd2Cra4c1ayO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhTexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoIKzE2/nzXhMNygqxVrxGvpxJhzYDTe4yVKON+fqbBcdMaWWZMXMBcXDFBDIOmaIsPCvIMMPper4nhoFsOrB2+ChexD+3h1DBIgmH20rcn0+UuDArL2xYvH9QSsHTTrdX1MrkdXfqow6bWyTXDcelZ2Sry6YXTdxAuu/eMUahoccrWyEgvERnKjlOKpYz9OzOYz+IAuHWV4epnUOKgkW8nqwdprziuwMcslpfGhpgTyl/a6SV13pw5KsOlR05mZ9OvDZhetzmCOodoXs8uX3xktSM5x7EaupO2eS0HxIklyhPRbvGLbpWE7gr+WOuRLjp0nnBodbylixqv80WtxffwWte73VtOqCdOj8PCuWoX1xPJ78iKUvt98Vml2TaIzw3c8f9LIVoplarfMZEt2LswmYAVsUjZBi/2n0T3jKmMeUUi4OSo8+Dnbq3npp+aKYB0lhnzProylsCjHOg1NwsDU3SY9Om50bDv4E/0TbtPg/Erj6XVqJXaKt4apq69DQ9VyIEj6xOnAji81tQYgX4HLFNDeB2ZlYTmJk/BIPTmDfilnlStnyxmx/XcMb3nGJnNNn/Dkbbnfbln7U5Q0hIzzdRH65JOFr4BOO7zWlP2tNHAFh82LRa0w+j8CNV60IMRQ3iPDraEMKPJr1CI/PkiI+2NZI8OpDb9MOYp6+TvjX8/hV8SY7Op3Z0JZ3CkAPhqOVuWbmfxgoRJLGERowBrTPD2kEbQFnlXZm2uROQ94C02EoSrEd2FS4ywx6eQ2T+yWYZXaWZBBF7LCXryeZ6DXf4WLT+JL9UyrjtRfLSoTskL3AyruQ7h17d9BuHP+zcf85v+h/Zv4OiGvBcu8j1yAoyx3mWTRnxk1jcBQSMx3aZy50BwzkmKzLhQhvVeU8RU9fVAVEEiMciPnKRBF9nuV1eZLZ+yQ1G8T4D+DA==

Hello Adam,

Yes, you're correct. Preparing for the upcoming 4.1 release an updated
python-djangorestframework-filters package got wrongly published to the
current 4.0 repository. This shouldn't have happened.

For anyone who received this updated package through the unattended-upgrade
process, you can revert to the previous version by running this command:

apt-get install python-djangorestframework-filters=0.6.0-2

Sorry for the inconvenience caused by this issue.

Antoine.

> Le 9 août 2018 à 02:44,
> <>
>
> <>
> a écrit :
>
> Hi All,
>
> On the second of august (02/08/2018) an update to the package
> “python-djangorestframework-filters” was released which has broken Esmond
> on my toolkit nodes.
>
> Looks like someone packaged the latest version of this library and uploaded
> it to the perfsonar debian repo. Perhaps it was meant to be bundled with an
> upgrade to Esmond as well?
>
> The upgrade:
>
> Start-Date: 2018-08-02 06:39:47
> Commandline: /usr/bin/unattended-upgrade
> Upgrade: python-djangorestframework-filters:amd64 (0.6.0-2, 0.10.2-2)
> End-Date: 2018-08-02 06:39:48
>
> The problem:
>
> 2018-08-09 12:27:43,414 [ERROR]
> /usr/lib/python2.7/dist-packages/django/core/handlers/base.py: Internal
> Server Error: /esmond/perfsonar/archive/
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
> line 119, in get_response
> resolver_match = resolver.resolve(request.path_info)
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line
> 365, in resolve
> for pattern in self.url_patterns:
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line
> 401, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line
> 395, in urlconf_module
> self._urlconf_module = import_module(self.urlconf_name)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> File "/usr/lib/python2.7/dist-packages/esmond/urls.py", line 10, in
> <module>
> from esmond.api.api_v2 import (
> File "/usr/lib/python2.7/dist-packages/esmond/api/api_v2.py", line 18, in
> <module>
> from rest_framework import (viewsets, serializers, status,
> File "/usr/lib/python2.7/dist-packages/rest_framework/viewsets.py", line
> 26, in <module>
> from rest_framework import generics, mixins, views
> File "/usr/lib/python2.7/dist-packages/rest_framework/generics.py", line
> 25, in <module>
> class GenericAPIView(views.APIView):
> File "/usr/lib/python2.7/dist-packages/rest_framework/generics.py", line
> 44, in GenericAPIView
> filter_backends = api_settings.DEFAULT_FILTER_BACKENDS
> File "/usr/lib/python2.7/dist-packages/rest_framework/settings.py", line
> 203, in __getattr__
> val = perform_import(val, attr)
> File "/usr/lib/python2.7/dist-packages/rest_framework/settings.py", line
> 148, in perform_import
> return [import_from_string(item, setting_name) for item in val]
> File "/usr/lib/python2.7/dist-packages/rest_framework/settings.py", line
> 164, in import_from_string
> raise ImportError(msg)
> ImportError: Could not import
> 'rest_framework_filters.backends.DjangoFilterBackend' for API setting
> 'DEFAULT_FILTER_BACKENDS'. ImportError: cannot import name rest_framework.
>
>
> Running apt upgrade produces no other packages available for upgrade.
> Reverting python-djangorestframework-filters to the previous version
> resolves the issue.
>
> Cheers
> Adam
>
> -----------------------------------
> Adam Baumeister
> CSIRO IM&T Network Engineer
> CSIRO Yarralumla
> M: 0421645316
> P: 0261241441
>
>
> --
> To unsubscribe from this list:
> https://lists.internet2.edu/sympa/signoff/perfsonar-user




Archive powered by MHonArc 2.6.19.

Top of Page