解决DPDK脚本python执行时“OSError: [Errno 2] No such file or directory”的问题

在执行dpdk的网卡驱动挂载脚本是出现 “ OSError: [Errno 2] No such file or directory” 问题,经查证,是因为没有安装lspci的程序。
[root@bogon tools]# yum install pciutils
安装之后就解决这个问题了。


[root@bogon tools]# ./dpdk_nic_bind.py --bind=igb_uio em2
Traceback (most recent call last):
  File "./dpdk_nic_bind.py", line 539, in 
    main()
  File "./dpdk_nic_bind.py", line 535, in main
    get_nic_details()
  File "./dpdk_nic_bind.py", line 228, in get_nic_details
    dev_lines = check_output(["lspci", "-Dvmmn"]).splitlines()
  File "./dpdk_nic_bind.py", line 120, in check_output
    stderr=stderr).communicate()[0]
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

你可能感兴趣的:(dpdk)