ERROR numerapi.base_api: invalid tournament

Why is below erroes happened? for the record,I can upload the submission.csv direct using the upload button, so the file should be ok,but using the code get below erroes
,code is from:

You already have the newest data! Current round is: 232
2020-10-10 15:27:06,659 INFO numerapi.base_api: uploading predictions…
2020-10-10 15:29:11,151 ERROR numerapi.base_api: invalid tournament
Traceback (most recent call last):
File “D:/PycharmProjects/numerai/”, line 97, in
napi.upload_predictions(“submission.csv”, tournament=tournament)
File “D:\Program_Files\Anaconda3\lib\site-packages\numerapi\”, line 960, in upload_predictions
create = self.raw_query(create_query, arguments, authorization=True)
File “D:\Program_Files\Anaconda3\lib\site-packages\numerapi\”, line 125, in raw_query
raise ValueError(err)
ValueError: invalid tournament

In that example script there is a mixup between round and tournament. round is the number of the weekly round, tournament is an integer that defines the tournament you want to participate in. That is basically irrelevant right now, because there is only one tournament active (that used to be different in the past).
to fix your script, just do napi.upload_predictions("submissions") (so no tournament parameter) and you should be fine.

Tell me how it went!

1 Like

Thanks very much for your answer , I will give a try recently~

man,you are correct~~ thanks again