Hi everyone. Quick Question the code that is suggested in the Download Pupup, labelled ‘Using the SDK’ no longer seems to work. I know for sure it worked two weeks ago but when running my unchanged code today it gave me this error:
AttributeError: module ‘labelbox’ has no attribute ‘FileConverter’
This is the code snippet im refering to:
import labelbox
LB_API_KEY = ''
client = labelbox.Client(api_key = LB_API_KEY)
export_task = labelbox.ExportTask.get_task(client, " ")
# Download the file to a local path
converter = labelbox.FileConverter(file_path="export-output.json")
export_task.get_stream(converter=converter).start()
# Stream the file to stdout
def json_stream_handler(output: labelbox.JsonConverterOutput):
print(output.json_str)
export_task.get_stream().start(stream_handler=json_stream_handler)
While I cant find a reference to the FileConverter in the labelbox docs I also dont see anything in the most recent changelog about it being taken out. Am I the idiot here? What am I missing? I can still manually download the json so its fine but id still like to know why the default code that is suggested when you export stopped working.