mokelly/wabbit_wappa

Test "training" case fail in active mode

MrMathias opened this issue · 0 comments

Traceback (most recent call last):
File "test_wabbit_wappa.py", line 146, in
training()
File "test_wabbit_wappa.py", line 73, in training
('b', -1 - random.random())]
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/init.py", line 290, in send_example
result = self.send_line(line, parse_result=parse_result)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/init.py", line 259, in send_line
self.vw_process.sendline(line) # Send line, along with newline
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/active_learner.py", line 64, in sendline
self.sock.sendall(line)
BrokenPipeError: [Errno 32] Broken pipe

command arg. activer_learning should just be active

self.vw_process = pexpect.spawn(command)
active_learner.py line 47
should spawn a process, but nothing happens: using command in terminal work as intended

Adding time.sleep(5) right after self.vw_process = pexpect.spawn(command) solves the problem