質問編集履歴
1
stacktraceを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,72 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
```
|
14
|
+
|
15
|
+
runfile('C:/Users/(ユーザー名)/.spyder-py3/自作コード/おためし.py', wdir='C:/Users/(ユーザー名)/.spyder-py3/自作コード')
|
16
|
+
|
17
|
+
Traceback (most recent call last):
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
File "<ipython-input-2-629fea9ac1e7>", line 1, in <module>
|
22
|
+
|
23
|
+
runfile('C:/Users/(ユーザー名)/.spyder-py3/自作コード/おためし.py', wdir='C:/Users/(ユーザー名)/.spyder-py3/自作コード')
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile
|
28
|
+
|
29
|
+
execfile(filename, namespace)
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile
|
34
|
+
|
35
|
+
exec(compile(f.read(), filename, 'exec'), namespace)
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
File "C:/Users/(ユーザー名)/.spyder-py3/自作コード/おためし.py", line 6, in <module>
|
40
|
+
|
41
|
+
number = pytesseract.image_to_string(img)
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\site-packages\pytesseract\pytesseract.py", line 122, in image_to_string
|
46
|
+
|
47
|
+
config=config)
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\site-packages\pytesseract\pytesseract.py", line 46, in run_tesseract
|
52
|
+
|
53
|
+
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 209, in __init__
|
58
|
+
|
59
|
+
super(SubprocessPopen, self).__init__(*args, **kwargs)
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\subprocess.py", line 665, in __init__
|
64
|
+
|
65
|
+
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\subprocess.py", line 916, in _get_handles
|
70
|
+
|
71
|
+
c2pwrite = self._make_inheritable(c2pwrite)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
File "C:\Users(ユーザー名)\Anaconda3\lib\subprocess.py", line 948, in _make_inheritable
|
76
|
+
|
77
|
+
_winapi.DUPLICATE_SAME_ACCESS)
|
78
|
+
|
79
|
+
|
14
80
|
|
15
81
|
OSError: [WinError 6] ハンドルが無効です。
|
16
82
|
|