Trouble with Python API in ZED SDK Docker Container Setup

Followed the official guide: How to Install ZED SDK with Docker on Linux | Stereolabs

And built a docker container from this image: Docker

(I have a docker container built from an official ZED SDK Docker Image)

I have ran the ‘get_python_api.py’ script to download what’s necessary for the python api: GitHub - stereolabs/zed-python-api: Python API for the ZED SDK

I want to run a default svo_export.py script: zed-sdk/svo_export.py at master · stereolabs/zed-sdk · GitHub

When I run it I get the following error and do not know how to fix it

Traceback (most recent call last):
  File "svo_export.py", line 212, in <module>
    main()
  File "svo_export.py", line 105, in main
    image_size = zed.get_camera_information().camera_configuration.resolution
AttributeError: 'pyzed.sl.CameraConfiguration' object has no attribute 'resolution'

CameraConfiguration class has an attribute ‘resolution’
I’m not sure what’s getting called incorrectly or if something else is going on.

Hi,

Since 4.0 had API breaks, the new samples only work with 4.0. If you install the SDK 4.0 and the python wrapper with it, it will work correctly.

You can also go to the previous version of the sample (tag 3.8) or use the samples that are shipped with the SDK if you don’t want to update.