I am trying to use the IBM Watson Rank and Retrieve service and I am following the tutorial with the sample data present in the portal i.e cranfield-data. However when I am trying to train the ranker using train.py I am getting the following error:
note: 1) I have uploaded the required JSON files 2) I am running the code in python2 environment.
Any help?

Which file from the tutorial are you passing in as the
-i {relevance_file}parameter? Is it this one: https://watson-developer-cloud.github.io/doc-tutorial-downloads/retrieve-and-rank/cranfield-gt.csv?Other things to check:
q=*:*should yield 1400 results)