Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test "training" case fail in active mode #10

Open
MrMathias opened this issue Sep 17, 2015 · 0 comments
Open

Test "training" case fail in active mode #10

MrMathias opened this issue Sep 17, 2015 · 0 comments

Comments

@MrMathias
Copy link

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

@MrMathias MrMathias changed the title Test fail in active mode Test "training" case fail in active mode Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant