国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

腳本之家,腳本語(yǔ)言編程技術(shù)及教程分享平臺(tái)!
分類(lèi)導(dǎo)航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|

服務(wù)器之家 - 腳本之家 - Python - 啟動(dòng)targetcli時(shí)遇到錯(cuò)誤解決辦法

啟動(dòng)targetcli時(shí)遇到錯(cuò)誤解決辦法

2020-12-13 00:45Leshami Python

這篇文章主要介紹了啟動(dòng)targetcli時(shí)遇到錯(cuò)誤解決辦法的相關(guān)資料,希望通過(guò)本文能幫助到大家,讓大家遇到這樣的錯(cuò)誤解決,需要的朋友可以參考下

 啟動(dòng)targetcli時(shí)遭遇ImportError: cannot import name ALUATargetPortGroup故障

targetcli是一個(gè)iSCSI配置管理工具,該工具簡(jiǎn)單易用,可以直接替換scsi-target-utils。滿心歡喜的裝上它,正準(zhǔn)備一睹為快,就杯具了。報(bào)錯(cuò)ImportError: cannot import name ALUATargetPortGroup。下面就這針對(duì)這個(gè)錯(cuò)誤的解決方案。

一、故障現(xiàn)象

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
當(dāng)前環(huán)境
[root@centos7-router ~]# more /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
 
安裝targetcli工具包
# yum install targetcli
 
故障現(xiàn)象
[root@centos7-router ~]# targetcli
Traceback (most recent call last):
 File "/usr/bin/targetcli", line 24, in <module>
  from targetcli import UIRoot  ### Author : Leshami
 File "/usr/lib/python2.7/site-packages/targetcli/__init__.py", line 18, in <module>
  from .ui_root import UIRoot  ### Blog : http://blog.csdn.net/leshami
 File "/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 30, in <module>
  from .ui_backstore import complete_path, UIBackstores
 File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 29, in <module>
  from rtslib_fb import ALUATargetPortGroup
ImportError: cannot import name ALUATargetPortGroup

二、解決方案

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
從上面的錯(cuò)誤提示可知,python文件有問(wèn)題。于是驗(yàn)證一下python是否已正確安裝
[root@centos7-router ~]# python
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
 
python可以正常工作,繼續(xù)google,原來(lái)是缺少python-rtslib這個(gè)包。
 
[root@centos7-router ~]# yum install python-rtslib -y
 
再次執(zhí)行成功
[root@centos7-router ~]# targetcli
targetcli shell version 2.1.fb46
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
 
/> help
 
GENERALITIES
============
This is a shell in which you can create, delete and configure
configuration objects.
 
The available commands depend on the current path or target
path you want to run a command in: different path have
different sets of available commands, i.e. a path pointing at
an iscsi target will not have the same availaible commands as,
say, a path pointing at a storage object.
 
The prompt that starts each command line indicates your
current path. Alternatively (useful if the prompt displays
an abbreviated path to save space), you can run the
pwd command to display the complete current path.
 
Navigating the tree is done using the cd command. Without
any argument, cd will present you wil the full objects
tree. Just use arrows to select the destination path, and
enter will get you there. Please try help cd for navigation
tips.
 
COMMAND SYNTAX
==============
Commands are built using the following syntax:
 
[TARGET_PATH] COMMAND_NAME [OPTIONS]
 
The TARGET_PATH indicates the path to run the command from.
If ommited, the command will be run from your current path.
 
The OPTIONS depend on the command. Please use help
COMMAND to get more information.
 
 
AVAILABLE COMMANDS
==================
The following commands are available in the
current path:
 
 - bookmarks action [bookmark]
 - cd [path]
 - clearconfig [confirm]
 - exit
 - get [group] [parameter...]
 - help [topic]
 - ls [path] [depth]
 - pwd
 - refresh
 - restoreconfig [savefile] [clear_existing]
 - saveconfig [savefile]
 - sessions [action] [sid]
 - set [group] [parameter=value...]
 - status
 - version

如有疑問(wèn),請(qǐng)留言或者到本站社區(qū)交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!

原文鏈接:http://blog.csdn.net/leshami/article/details/78320262

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 日本www视频| 国产精品久久久久久久久久ktv | 免费毛片黄色视频 | 天天综合网久久综合网 | 国产精品免费观看 | 欧美精品 | 亚洲人成网站b2k3cm | 欧美一区二区三区在线 | 噜噜噜在线观看免费视频日本 | 亚洲在看 | 黄网在线免费观看 | 亚洲成人高清 | 久草高清在线 | 色视频在线免费观看 | 亚洲国产精品一区二区三区 | 国产日韩精品一区 | 一级片免费视频 | 亚洲aaa在线观看 | 久久国产精品久久国产精品 | 成人在线视频免费观看 | 婷婷狠狠| 成年人视频在线观看免费 | 毛片网页| 国产高清在线精品一区二区三区 | 国产一区二区av | 女生高潮在线观看 | 在线色站| 欧美老妇交乱视频 | 欧美一区免费 | 免费看的av | 日韩中文字幕一区二区三区 | 一区二区不卡视频 | 国产三区在线视频 | 在线观看亚洲成人 | 无码日韩精品一区二区免费 | 毛片高清 | 美女扒开尿口来摸 | 久久久久黄| 国产情侣av自拍 | 午夜影视 | 日本免费在线 |