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

IOError: [Errno 32] Broken pipe #58

Closed
shaunakjoshi12 opened this issue Jan 31, 2019 · 2 comments
Closed

IOError: [Errno 32] Broken pipe #58

shaunakjoshi12 opened this issue Jan 31, 2019 · 2 comments

Comments

@shaunakjoshi12
Copy link

shaunakjoshi12 commented Jan 31, 2019

Traceback (most recent call last):
  File "test_results.py", line 41, in <module>
    metrics_dict = nlgeval.compute_metrics(references, hypotheses)
  File "/home/shaunak/ProjectSSSP/FULL S/caption_generator_resnet/nlg_eval_master/nlgeval/__init__.py", line 292, in compute_metrics
    score, scores = scorer.compute_score(refs, hyps)
  File "/home/shaunak/ProjectSSSP/FULL S/caption_generator_resnet/nlg_eval_master/nlgeval/pycocoevalcap/meteor/meteor.py", line 62, in compute_score
    stat = self._stat(res[i][0], gts[i])
  File "/home/shaunak/ProjectSSSP/FULL S/caption_generator_resnet/nlg_eval_master/nlgeval/pycocoevalcap/meteor/meteor.py", line 84, in _stat
    self.meteor_p.stdin.write(score_line)
IOError: [Errno 32] Broken pipe
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/shaunak/anaconda2/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/shaunak/ProjectSSSP/FULL S/caption_generator_resnet/nlg_eval_master/nlgeval/pycocoevalcap/meteor/meteor.py", line 50, in close
    if atexit is not None and atexit.unregister is not None:
AttributeError: 'module' object has no attribute 'unregister'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/home/shaunak/anaconda2/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/shaunak/ProjectSSSP/FULL S/caption_generator_resnet/nlg_eval_master/nlgeval/pycocoevalcap/meteor/meteor.py", line 50, in close
    if atexit is not None and atexit.unregister is not None:
AttributeError: 'module' object has no attribute 'unregister'

In 'self.meteor_p.stdin.write(score_line)' ioerror32: Broken Pipe appears in meteor.py

@juharris
Copy link
Member

The line numbers don't match up with the master branch. Would you git pull origin master and try again?

@juharris
Copy link
Member

I'm pretty sure this has been corrected in master. Closing due to staleness.

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

2 participants