salaniz / pycocoevalcap

Python 3 support for the MS COCO caption evaluation tools
Other
300 stars 84 forks source link

[Errno 22] Invalid argument for self.meteor_p.stdin.flush() #5

Closed homelifes closed 5 years ago

homelifes commented 5 years ago

Hi. I followed your steps but i get this error. I have java 1.8 and i'm using windows. I printed the value of score_line, and it is attached in the second image below. It seems that the flush()method isn't supported on windows? Any solution to this?

capture capture1

salaniz commented 5 years ago

From my understanding this only seems to happen on Windows and unfortunately, I currently do not have the possibility to debug the code on Windows. Maybe we can figure it out together.

Could you navigate to the meteor directory (where meteor.py is located) and check that the following command executes without error: java -jar -Xmx2G meteor-1.5.jar - - -stdio -l en -norm

In fact it should wait for standard input so you can try to paste your "SCORE" line to check that this part is working correctly.

If that works, you can also try to remove the flush() command and report back what output/error you get then.