Tag Archives: Oak error reporting

[Solved] Error: X_LINK_COMMUNICATION_NOT_OPEN or X_LINK_ERROR

Error: X_LINK_COMMUNICATION_NOT_OPEN or X_LINK_ERROR

Error message:
couldn’t read data from stream: ‘RGB’ (x_link-error)

or couldn’t read data from stream: ‘Preview’ (x_link-error)

Solution:
possible causes:
1 The connection is unstable. Try another cable or computer
2. Linux uses dmesg – w to check whether the oak is connected normally. If the device is connected, you will see the following similar results:

/~$ dmesg -w

[223940.862544] usb 1-3.2: new high-speed USB device number 120 using xhci_hcd
[223940.963357] usb 1-3.2: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[223940.963364] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[223940.963368] usb 1-3.2: Product: Movidius MyriadX
[223940.963371] usb 1-3.2: Manufacturer: Movidius Ltd.
[223940.963373] usb 1-3.2: SerialNumber: 03e72485

3. Pipeline setting error, please check whether the input and output are set correctly
4. You have not set udev rules.

5. If the oak device cannot be connected yet, please execute: lsusb | grep 03e7 . If it is connected, you will see the following similar results:

$ lsusb | grep 03e7
Bus 001 Device 120: ID 03e7:2485 Intel Movidius MyriadX

[Solved] ERROR: ./depthai_sdk is not a valid editable requirement.

ERROR: ./depthai_sdk is not a valid editable requirement.

Error Messages:

ERROR: ./depthai_sdk is not a valid editable requirement. It should eit her be a path to a local project or a VCS URL (beginning with bzr+http, bzr+http?:, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git +https, git+ssh, git+git, git+filr, hg+file, hg+http, hg+https, hg+«sh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

Solution:
Go to the depthai directory, then execute python3 -m pip install -r . /requirements.txt
Please be sure to execute the relevant commands in the depthai folder, otherwise you will get errors such as file not found, not editable, etc.

[system] [error] Attempted to start Color camera – NOT detected

[system] [error] Attempted to start Color camera – NOT detected

Error message:
OAK-1 run script depthai_movenet_main/examples/yoga_pose_recognition/demo.py error: [system] [error] Attempted to start Color camera – NOT detected!

Solution:
please check whether the camera inside the oak is connected to the motherboard normally and whether the camera is loose. Try upgrading depthai

[Solved] AttributeError: ‘depthai.node.ObjectTracker‘ object has no attribute ‘setTrackerIdAssigmentPolicy‘

Error: AttributeError: ‘depthai.node.ObjectTracker‘ object has no attribute ‘setTrackerIdAssigmentPolicy‘

Error Messages:

gen2 blur faces error: AttributeError: ‘depthai.node.ObjectTracker’ object has no attribute ‘setTrackerIdAssigmentPolicy’

Solution:
This is the old version of api, new version: objectTracker.setTrackerIdAssignmentPolicy(dai.TrackerIdAssignmentPolicy.SMALLEST_ID)