You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSError: [Errno 2] No such file or directory: 'java'
When running the evaluation, even with java definitely installed. This SO discusses it: https://stackoverflow.com/a/55675914/2332296. I was able to solve it by setting shell=True and making cmd in
I solved this error, by using absolute path in sys.path.append() to include the coco-caption file .
I still get this error running in Pycharm,but it works well by using terminal command
@ynuwm that is automatically added by the line cmd.append(os.path.join(path_to_jar_dirname, os.path.basename(tmp_file.name))). Just change that line into cmd[0] += os.path.join(path_to_jar_dirname, os.path.basename(tmp_file.name))
Like in #22 (comment) , I got
When running the evaluation, even with java definitely installed. This SO discusses it: https://stackoverflow.com/a/55675914/2332296. I was able to solve it by setting
shell=True
and makingcmd
infrom
(where 'tmpWS5p0Z' is the name of the
tempfile.NamedTemporaryFile
that is added), into:The text was updated successfully, but these errors were encountered: