質問編集履歴

1

発生している問題、エラーメッセージにTracebackを載せました

2019/09/10 07:40

投稿

OMIM
OMIM

スコア6

test CHANGED
File without changes
test CHANGED
@@ -20,14 +20,102 @@
20
20
 
21
21
  ```
22
22
 
23
+ (py27) C:\Users\admin\img2poem\code\src>python test.py
24
+
25
+ Loading Extracting Feature Module...
26
+
27
+ Traceback (most recent call last):
28
+
29
+ File "test.py", line 8, in <module>
30
+
31
+ extract_feature = nn_process.create('extract_feature')
32
+
33
+ File "C:\Users\admin\img2poem\code\src\nn_process.py", line 19, in create
34
+
35
+ proc.start()
36
+
37
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\process.py", line 130, in start
38
+
39
+ self._popen = Popen(self)
40
+
41
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 277, in __init__
42
+
43
+ dump(process_obj, to_child, HIGHEST_PROTOCOL)
44
+
45
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 199, in dump
46
+
47
+ ForkingPickler(file, protocol).dump(obj)
48
+
49
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 224, in dump
50
+
51
+ self.save(obj)
52
+
53
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 331, in save
54
+
55
+ self.save_reduce(obj=obj, *rv)
56
+
57
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 425, in save_reduce
58
+
59
+ save(state)
60
+
61
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 286, in save
62
+
63
+ f(self, obj) # Call unbound method with explicit self
64
+
65
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 655, in save_dict
66
+
67
+ self._batch_setitems(obj.iteritems())
68
+
69
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 687, in _batch_setitems
70
+
23
-  ...
71
+ save(v)
72
+
73
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 286, in save
74
+
75
+ f(self, obj) # Call unbound method with explicit self
76
+
77
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\pickle.py", line 754, in save_global
78
+
79
+ (obj, module, name))
80
+
81
+ pickle.PicklingError: Can't pickle <function pipe_process at 0x000000000358A978>: it's not found as nn_process.pipe_process
82
+
83
+
84
+
85
+ (py27) C:\Users\admin\img2poem\code\src>Loading Extracting Feature Module...
86
+
87
+ Traceback (most recent call last):
88
+
89
+ File "<string>", line 1, in <module>
90
+
91
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 380, in main
92
+
93
+ prepare(preparation_data)
94
+
95
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 510, in prepare
96
+
97
+ '__parents_main__', file, path_name, etc
98
+
99
+ File "C:\Users\admin\img2poem\code\src\test.py", line 8, in <module>
100
+
101
+ extract_feature = nn_process.create('extract_feature')
102
+
103
+ File "C:\Users\admin\img2poem\code\src\nn_process.py", line 19, in create
104
+
105
+ proc.start()
106
+
107
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\process.py", line 130, in start
108
+
109
+ self._popen = Popen(self)
110
+
111
+ File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 258, in __init__
112
+
113
+ cmd = get_command_line() + [rhandle]
24
114
 
25
115
  File "C:\Users\admin\Anaconda3\envs\py27\lib\multiprocessing\forking.py", line 358, in get_command_line
26
116
 
27
117
  is not going to be frozen to produce a Windows executable.''')
28
118
 
29
-
30
-
31
119
  RuntimeError:
32
120
 
33
121
  Attempt to start a new process before the current process