I would like to sync the outputs of a Script and the SpatialLocationCalculator, but it seems like the sync node does not exist (I am working with the newest dai version).

sync = pipeline.create(dai.node.Sync)
sync.setSyncThreshold(timedelta(milliseconds=100))
spatialCalc.out.link(sync.inputs["s1"])
script1.outputs['featIdsBuf'].link(sync.inputs["s2"])

sync = pipeline.create(dai.node.Sync)
                       ^^^^^^^^^^^^^
AttributeError: module 'depthai.node' has no attribute 'Sync'
sync = pipeline.create(dai.node.MessageDemux)
                       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'depthai.node' has no attribute 'MessageDemux'
  • Hi ADP
    You are running depthai==2.22, when the latest version is 24.

    Thanks,
    Jaka

Hi @ADP
Doesn't look like you are on the latest version though. Any chance you are using an IDE (VSC has some problems with this) that is selecting a different environment at runtime. Try from inside the terminal. which python3.

Thanks,
Jaka

Yes, I was working with VSC, but simply executing from the Terminal doesn't seem to solve the problem.

    Hi ADP
    You are running depthai==2.22, when the latest version is 24.

    Thanks,
    Jaka

    • ADP replied to this.

      jakaskerl Thanks,
      my mistake, i overlooked, that depthai-sdk is based on version 2.22 and therefore uninstalls 2.24 to use it.