Error with project.create_batch()

I have been using this line to add machine-assisted labels to Labelbox. Until this week or so it was working:

project.create_batch(‘’.join([“Initial_batch_”,get_datetime()]),
[data_row.uid],
2)
But now I am getting this error and cannot find any documentation as to what has changed:

Cannot query field “createBatch” on type “MutationProject”. Did you mean “createBatchV2”, “updateBatch”, “deleteBatch”, or “createEmptyBatch”?(‘Cannot query field “createBatch” on type “MutationProject”. Did you mean “createBatchV2”, “updateBatch”, “deleteBatch”, or “createEmptyBatch”?’, None)

Hi @willwe, could you please ensure that you are using the most up to date version of the Labelbox SDK (v.3.34.0)?

You can do so by running pip install labelbox -U.

Please let me know how this goes for you!

Hi @Zeke , thanks for your quick reply. Yes, that worked!

My “did you try unplugging it and plugging it back in” moment :sweat_smile: . I’ll update more regularly given how fast you all are pushing updates.

Thanks!

1 Like