Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-509

Trec Eval not working on some versions of windows?

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.3
    • Fix Version/s: 5.0, 4.4
    • Component/s: None
    • Labels:
      None

      Description

      15:36:23.917 [main] INFO o.t.evaluation.TrecEvalEvaluation - Evaluating result file: C:\Users\EBONBL~1\AppData\Local\Temp\junit7869397084152464540/org.terrier.matching.models.InL2_0.res
      A problem occurred: java.lang.RuntimeException: java.io.IOException: Cannot run program "C:\Users\EBONBL~1\AppData\Local\Temp\jtrec_eval6174761322235560139\trec_eval3833889679340255372.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher
      java.lang.RuntimeException: java.io.IOException: Cannot run program "C:\Users\EBONBL~1\AppData\Local\Temp\jtrec_eval6174761322235560139\trec_eval3833889679340255372.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher
              at uk.ac.gla.terrier.jtreceval.trec_eval.runAndGetOutput(trec_eval.java:151)
              at org.terrier.evaluation.TrecEvalEvaluation.evaluate(TrecEvalEvaluation.java:101)

        Attachments

          Issue Links

            Activity

            Hide
            craigm Craig Macdonald added a comment -

            Richard,

            Can you download the two Windows files in https://github.com/terrierteam/jtreceval/tree/master/src/main/resources
            Rename them to end with .exe
            You will need cygwin1.dll in the same directory too
            Let me know if either works?
            Craig

            Show
            craigm Craig Macdonald added a comment - Richard, Can you download the two Windows files in https://github.com/terrierteam/jtreceval/tree/master/src/main/resources Rename them to end with .exe You will need cygwin1.dll in the same directory too Let me know if either works? Craig
            Hide
            richardm Richard McCreadie added a comment -

            The maven compliation does not seem to correctly pull the windows executables for jtreceval and put them on the class path.

            Jtreceval sources are pulled correctly and attempt to copy the exe to the temp folder, but when looking for the missing resource exe it fails to find, but does not issue an error. Strangely this does result in an exe file being written to the temp folder, but it is empty. Calling this empty exe file is what causes the above issue.

            Errors are resolved when the executables are manually copied into Terrier\modules\tests\src\main\resources

            Show
            richardm Richard McCreadie added a comment - The maven compliation does not seem to correctly pull the windows executables for jtreceval and put them on the class path. Jtreceval sources are pulled correctly and attempt to copy the exe to the temp folder, but when looking for the missing resource exe it fails to find, but does not issue an error. Strangely this does result in an exe file being written to the temp folder, but it is empty. Calling this empty exe file is what causes the above issue. Errors are resolved when the executables are manually copied into Terrier\modules\tests\src\main\resources

              People

              • Assignee:
                craigm Craig Macdonald
                Reporter:
                richardm Richard McCreadie
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: