質問編集履歴
2
OSバージョンの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
USBの給電制御するようなプログラムです。
|
2
2
|
|
3
|
-
OS:
|
3
|
+
OS:Lubuntu16.04
|
4
4
|
python:3.52
|
5
5
|
|
6
6
|
エラー内容
|
1
エラー内容の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
OS:Lubuntu
|
4
4
|
python:3.52
|
5
5
|
|
6
|
+
エラー内容
|
7
|
+
|
8
|
+
Traceback (most recent call last):
|
9
|
+
File "/home/ユーザー名/USB給電制御.py", line 102, in <module>
|
10
|
+
ret = subprocess.check_output(cmd, shell = True)
|
11
|
+
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
|
12
|
+
**kwargs).stdout
|
13
|
+
File "/usr/lib/python3.5/subprocess.py", line 708, in run
|
14
|
+
output=stdout, stderr=stderr)
|
15
|
+
subprocess.CalledProcessError: Command 'sudo lsusb' returned non-zero exit status 1
|
16
|
+
|
6
17
|
ソースは以下の通りです。
|
7
18
|
|
8
19
|
```python
|