coco-caption icon indicating copy to clipboard operation
coco-caption copied to clipboard

self.meteor_p.stdin.write('{}\n'.format(score_line))

Open zhangzhizz opened this issue 6 years ago • 14 comments

when i run "self.meteor_p.stdin.write('{}\n'.format(score_line))" on windows, i just get "IOError: [Errno 22] Invalid argument",everyone know it?

zhangzhizz avatar Mar 27 '18 02:03 zhangzhizz

I get IOError: [Errno 32] Broken pipe.

Sally-fyk avatar Apr 10 '18 02:04 Sally-fyk

@Sally-fyk maybe you can install this: 1、java 1.8.0 2、python 2.7

zhangzhizz avatar Apr 10 '18 02:04 zhangzhizz

I redownload the code and everything goes well. Thank you~

Sally-fyk avatar Apr 10 '18 03:04 Sally-fyk

@zhangzhizz I am facing the same issue "IOError: [Errno 22] Invalid argument" on self.meteor_p.stdin.write('{}\n'.format(score_line)). Any suggestions how to resolve it?

PRTK25 avatar Apr 25 '18 18:04 PRTK25

@PRTK25 maybe you can install this: 1、java 1.8.0 2、python 2.7

zhangzhizz avatar May 07 '18 10:05 zhangzhizz

My configuration is already java 1.8.0 and python 2.7, but still got the ERROR.

liuxx2016 avatar Jun 20 '18 03:06 liuxx2016

My configuration is already java 1.8.0 and python 2.7, but still got the ERROR.

I also have this problem, my operating system is windows10.

fei161 avatar Oct 01 '18 15:10 fei161

My configuration is already java 1.8.0 and python 2.7, but still got the ERROR.

I also have this problem, my operating system is windows10.

When I restarted the computer, the problem was solved.

fei161 avatar Oct 01 '18 16:10 fei161

same problem as Sally-fyk any suggestion ??? of course i install py27 & java1.8, also tried restart system, but nothing help

akira-l avatar Oct 29 '18 08:10 akira-l

same problem as Sally-fyk any suggestion ??? of course i install py27 & java1.8, also tried restart system, but nothing help

I suggest you redownload everything and have another try.

Sally-fyk avatar Oct 29 '18 11:10 Sally-fyk

This issue only happens at windows, and it only happens with the METEOR score. It works every time you restart your computer or generate another copy of your directory. So if it is not necessary for your application, remove the METEOR from the eval.py. After training your model, restart the computer or make another copy of the folder, and run it again to get the METEOR score. No idea why this happens.

fawazsammani avatar Feb 21 '19 16:02 fawazsammani

I also came into this error after I added keyword 'shell=True' in subprocess.Popen() in meteor.py , to solve the problem of 'OSError: [Errno 2] No such file or directory'.Finally I found the solution: using absolute path in sys.path.append(),then it works well(Running command line in terminal ,and I still get these errors running in Pycharm).

JunlongFeng avatar May 10 '19 12:05 JunlongFeng

I have same problems self.meteor_p.stdin.write('{}\n'.format(score_line)) BrokenPipeError: [Errno 32] Broken pipe

any help?

salmaelgayar avatar Aug 13 '23 16:08 salmaelgayar

I have same problems self.meteor_p.stdin.write('{}\n'.format(score_line)) BrokenPipeError: [Errno 32] Broken pipe

any help?

Hello bro, do you slove it? I meet the same question.

Layman0527 avatar Jan 05 '24 08:01 Layman0527