Skip to Content.
Sympa Menu

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

Subject: perfSONAR User Q&A and Other Discussion

List archive

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


Chronological Thread 
  • From: <>
  • To: <>
  • Subject: [perfsonar-user] Issue: Recent python-djangorestframework-filters upgrade breaks esmond
  • Date: Thu, 9 Aug 2018 02:44:38 +0000
  • Accept-language: en-US, en-AU
  • Ironport-phdr: 9a23:7ftTmBxyMpkAu5jXCy+O+j09IxM/srCxBDY+r6Qd2+0RIJqq85mqBkHD//Il1AaPAd2Fraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HSbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHolikJKiI5/m/UhMxxkK1UrwmsqAZjz4LIeoyZKOZycr3bcNgHRWRBRMFRVylZD467c4YAEvAOPeNCo4TgvVQOsB6+ChetBOP01j9HmGX20LYm3OQ6EAHGxgsgE8gUv3TJtdj4MroZX+OtzKTQ0znOYO9a1Df45YfTbhwtve2AULdrfsbN1UUiEh3JgkuMpYHgOj6Y1+sAvm2U4uZ9Te6jlWEqpx1xrzWq3cgglpXFip4Qx13F6Sl13YM4KcC6RUJnZNOpFYVcuiSVOoduTMMtXWJltDo/x7ADt5O0YSwHxZYiyhHCb/GLb4mF7xfjWeuTOzh3nndodbO9ihuy7EetzPD3WNOu31ZQtCVFl8HBtnAT2BzX7ciKUuV9/ka91jqW0A7d9P1JIUcplarHJJMt2KI/loESsUTZGS/6gl/5jLKOekUl/Oin9fjnb634qpKTK4N5igTzPb8ylsCjHeg1NxMBU3SH9em5yrHv41H1TbBPg/A3naTUtZ/XKdkDqq68GQBV04Ij6xilDzeh1dQVhWEHLEhbeBKcl4XkOVHDLO76APqwnlugjClnyO3eM7D9H5rCNH3DnK38cLln9k5czRQ8zdFE55JIFL4BOun+VVPqtNzZFB85NBa4zPz6CNllzIMRRXqPArOFMKPVqVKI/vwgI/OCZI8Ovzb9LeIq5+T3gX8kgl8SY7Op0IATaHC5BfRmP16ZbWT2jtcAF2cKohQxTPbsiFKcTT5feWy+ULwh6TEmW8qaCtKXXo23jqeG2i6hW4BNa3puC1aQHG3uepneHfoAdXTBDNVml2lQfLSoTskL3AyruQ7h17d9BuHP+zcf85v+gosmr9bPnA0/oGQnR/+W1HuAGjl5

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

 




Archive powered by MHonArc 2.6.19.

Top of Page