Traceback (most recent call last):


 "/usr/local/bin/pip", line 6, in <module>

from pkg_resources import load_entry_point


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3037, in <module>

@_call_aside


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3021, in _call_aside

f(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3065, in _initialize_master_working_set

for dist in working_set


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3065, in <genexpr>

for dist in working_set


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2595, in activate

declare_namespace(pkg)


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2163, in declare_namespace

_handle_ns(packageName, path_item)


 "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2098, in _handle_ns

loader.load_module(packageName)


 "/usr/lib/python2.7/pkgutil.py", line 246, in load_module

mod = imp.load_module(fullname, self.file, self.filename, self.etc)


 "/usr/local/lib/python2.7/dist-packages/google-1.9.3-py2.7.egg/google/__init__.py", line 49, in <module>

from bs4 import BeautifulSoup


 "/usr/local/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>

from .builder import builder_registry, ParserRejectedMarkup


 "/usr/local/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 314, in <module>

from . import _html5lib


 "/usr/local/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in <module>

class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

Traceback (most recent call last):


 "/opt/py3/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner

response = get_response(request)


 "/opt/py3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/opt/py3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/usr/lib64/python3.6/contextlib.py", line 52, in inner

return func(*args, **kwds)


 "/opt/py3/lib64/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view

return view_func(*args, **kwargs)


 "/opt/py3/lib64/python3.6/site-packages/django/views/generic/base.py", line 71, in view

return self.dispatch(request, *args, **kwargs)


 "/opt/py3/lib64/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch

response = self.handle_exception(exc)


 "/opt/py3/lib64/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception

self.raise_uncaught_exception(exc)


 "/opt/py3/lib64/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch

response = handler(request, *args, **kwargs)


 "/opt/py3/lib64/python3.6/site-packages/rest_framework/generics.py", line 241, in get

return self.list(request, *args, **kwargs)


 "/opt/py3/lib64/python3.6/site-packages/rest_framework/mixins.py", line 40, in list

queryset = self.filter_queryset(self.get_queryset())


 "/opt/jumpserver/apps/assets/api/node.py", line 158, in get_queryset

queryset = [node.as_tree_node() for node in queryset]


 "/opt/jumpserver/apps/assets/api/node.py", line 158, in <listcomp>

queryset = [node.as_tree_node() for node in queryset]


 "/opt/jumpserver/apps/assets/models/node.py", line 553, in as_tree_node

name = '{} ({})'.format(self.value, self.assets_amount)


 "/opt/jumpserver/apps/common/utils/common.py", line 241, in __get__

value = self.func(instance)


 "/opt/jumpserver/apps/assets/models/node.py", line 320, in assets_amount

amount = self.tree().assets_amount(self.key)


 "/opt/jumpserver/apps/assets/utils.py", line 154, in assets_amount

return len(self.all_assets(nid))


 "/opt/jumpserver/apps/assets/utils.py", line 135, in all_assets

if node.data is None:
AttributeError: 'NoneType' object has no attribute 'data'
