perfsonar-user - [perfsonar-user] Could not import 'rest_framework_filters.backends.DjangoFilterBackend'
Subject: perfSONAR User Q&A and Other Discussion
List archive
[perfsonar-user] Could not import 'rest_framework_filters.backends.DjangoFilterBackend'
Chronological Thread
- From:
- To:
- Subject: [perfsonar-user] Could not import 'rest_framework_filters.backends.DjangoFilterBackend'
- Date: Fri, 3 Aug 2018 18:53:49 +0000 (UTC)
- Ironport-phdr: 9a23:gbqSkxcJKvFUo3KVf7FhLqptlGMj4u6mDksu8pMizoh2WeGdxcqzbR7h7PlgxGXEQZ/co6odzbaO7ea4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYL5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM37mHZhNFyg6xYrx2uuxNxzYnaboyOKPpwY7nQcc8ASGZdQMpcUTFKDIOmb4sICuoMJehYrobnq1oAtxS+AwasCfjqyjBSh3/22bc20/k9EQHBxgwgGNQOsGjTrNnvKKgdS+a4x7TLwzXbd/5axyvx5YrSfh0jofyAR698fMvexEU1CQ/JkEicpIr4ND2PzOsNqXKU7+94WOKvlWEnrwZxryCrxsctkYnJmpkVxk7e+SV4xoY1OcO3SFR9YdG6DJtcqTuWOJVrTcM/W21ouSA6xaMauZOjYiQG1JYqywTdZvGHaYSE/xPuWemLLTtmmn5pZaqzhxOo/kihzu38WNO00FFPridditnMq2sC1wfT68iCUvty5Fys2TeJ1wDP9O5EO0Y0mrTHK5I/2LI/iIccsVnbEi/shEr2lLOWdlkj+uWw8+TofK/mppGHN49zjAHxKL4ultWiAeQjLAcORXOW+eC91L344U35W6tGguc3kqnfrJDVO94bpqinDA9JzIov8QiwACq70IdQoX5SNF9fdgmAiYHzfkzVLerQDPGjjk6qnSsxgf3KI+7PGJLIe3bT1qjoe7lV7kddzEwu0ddF4JRIDfcKKaGgEnTtvcDVW0dqeze/xPzqXY1w
Hello all,
I have installed pS 4.0 on Ubuntu 16.04. Running fine except getting an
internal server error. The esmond is not running properly.
Anyone can point out a fix if ever experienced this? Thanks!
Regards,
Frank
Below is from the django log.
ImportError: Could not import
'rest_framework_filters.backends.DjangoFilterBackend' for API setting
'DEFAULT_FILTER_BACKENDS'. ImportError: cannot import name rest_framework.
2018-08-03 13:31:42,789 [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
205, in __getattr__
val = perform_import(val, attr)
File "/usr/lib/python2.7/dist-packages/rest_framework/settings.py", line
150, 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
166, 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.
- [perfsonar-user] Could not import 'rest_framework_filters.backends.DjangoFilterBackend', fx . wang, 08/03/2018
- Re: [perfsonar-user] Could not import 'rest_framework_filters.backends.DjangoFilterBackend', Antoine Delvaux, 08/05/2018
Archive powered by MHonArc 2.6.19.