xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

[FVT]:xcat-inventory diff returns No module named deepdiff on ubuntu #148

Closed tingtli closed 5 years ago

tingtli commented 5 years ago

when we run xcat-inventory diff on ubuntu system, we get "No module named deepdiff" failure. please take a look.

on ubuntu 18.04.1

root@c910f03c11k09:/opt/xcat/share/xcat/tools/autotest# cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

here is the result.

root@c910f03c11k09:/opt/xcat/share/xcat/tools/autotest# dpkg -l |grep -i xcat-inventory
ii  xcat-inventory                        0.1.5-c35                         all          xcat inventory

root@c910f03c11k09:/opt/xcat/share/xcat/tools/autotest# xcat-inventory diff
Traceback (most recent call last):
  File "/opt/xcat/lib/python/xcclient/inventory/shell.py", line 78, in main
    InventoryShell('xcat-inventory','0.1.5 (git commit 8bfa208d490d4be702c953df2d2f3ce769670070)').run(sys.argv[1:], '1.0', "xCAT inventory management tool")
  File "/opt/xcat/lib/python/xcclient/shell.py", line 198, in run
    return args.func(args)
  File "/opt/xcat/lib/python/xcclient/inventory/shell.py", line 67, in do_diff
    from inventorydiff import InventoryDiff
  File "/opt/xcat/lib/python/xcclient/inventory/inventorydiff.py", line 4, in <module>
    from structurediff import StructureDiff
  File "/opt/xcat/lib/python/xcclient/inventory/structurediff.py", line 4, in <module>
    import deepdiff
ImportError: No module named deepdiff
immarvin commented 5 years ago

try pip install deepdiff