
Comment: An exception occurred in this state: Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/salt/state.py", line 1851, in call

**cdata['kwargs'])


 "/usr/lib/python3/dist-packages/salt/loader.py", line 1795, in wrapper

return f(*args, **kwargs)


 "/usr/lib/python3/dist-packages/salt/states/postgres_privileges.py", line 180, in present

name, object_name, object_type, **kwargs):


 "/usr/lib/python3/dist-packages/salt/modules/postgres.py", line 2827, in has_privileges

retval = perms.sort() == _privileges[name].keys().sort()

AttributeError: 'dict_keys' object has no attribute 'sort'

Started: 08:43:19.595202

Traceback (most recent call last):


 "1.py", line 19, in <module>

import paddlehub as hub


 "/home/ycc/PaddleHub-release-v2.0.0-rc/paddlehub/__init__.py", line 24, in <module>

from paddlehub import datasets


 "/home/ycc/PaddleHub-release-v2.0.0-rc/paddlehub/datasets/__init__.py", line 15, in <module>

from paddlehub.datasets.canvas import Canvas


 "/home/ycc/PaddleHub-release-v2.0.0-rc/paddlehub/datasets/canvas.py", line 23, in <module>

from paddlehub.vision.utils import get_img_file


 "/home/ycc/PaddleHub-release-v2.0.0-rc/paddlehub/vision/utils.py", line 159, in <module>

def subtract_imagenet_mean_batch(batch: paddle.Tensor) -> paddle.Tensor:
AttributeError: module 'paddle' has no attribute 'Tensor'
