質問編集履歴

2

OSバージョンの追加

2017/05/30 11:01

投稿

morutemu
morutemu

スコア45

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- OS:Lubuntu
5
+ OS:Lubuntu16.04
6
6
 
7
7
  python:3.52
8
8
 

1

エラー内容の追加

2017/05/30 11:01

投稿

morutemu
morutemu

スコア45

test CHANGED
File without changes
test CHANGED
@@ -8,6 +8,28 @@
8
8
 
9
9
 
10
10
 
11
+ エラー内容
12
+
13
+
14
+
15
+ Traceback (most recent call last):
16
+
17
+ File "/home/ユーザー名/USB給電制御.py", line 102, in <module>
18
+
19
+ ret = subprocess.check_output(cmd, shell = True)
20
+
21
+ File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
22
+
23
+ **kwargs).stdout
24
+
25
+ File "/usr/lib/python3.5/subprocess.py", line 708, in run
26
+
27
+ output=stdout, stderr=stderr)
28
+
29
+ subprocess.CalledProcessError: Command 'sudo lsusb' returned non-zero exit status 1
30
+
31
+
32
+
11
33
  ソースは以下の通りです。
12
34
 
13
35