'ExportTask' object has no attribute 'get_buffered_stream'

When using the export() method, I get the following error:
AttributeError: 'ExportTask' object has no attribute 'get_buffered_stream'

This is the code I’m using:

export_task = test_project.export()
export_task.wait_till_done()

# Check for any errors in the export task
if export_task.has_errors():
    export_task.get_buffered_stream(
        stream_type=lb.StreamType.ERRORS
        ).start(stream_handler=lambda error: print(error))

The code is taken from the export overview documentation page:

Any idea why this is the case?

2 Likes

Getting idea more clear

What is your SDK version? you need to have higher than 3.71