I had problems running the "depthai-viewer" on mi Ubuntu 22.04.4 LTS computer after the instalation (https://docs.luxonis.com/en/latest/pages/tutorials/first_steps/#depthai-viewer). when I install it, the program run perfectly but after closing the program I try to run "depthai-viewer" and it returns "order not found". A person in a forum advice mi to run "sudo python3 -mpip install depthai", after running that the command "depthai-viewer" start working but when I try to change the AI model, the image stop working and the terminal display:
[20s] System information
----------------------------------------
Ddr used / total - 98.30 / 333.45 MiB
Cmx used / total - 2.49 / 2.50 MiB
LeonCss heap used / total - 24.10 / 82.46 MiB
LeonMss heap used / total - 5.01 / 40.66 MiB
Chip temperature - average: 47.58, css: 48.47, mss: 46.90, upa: 48.25, dss: 46.68
Cpu usage - Leon CSS: 47.52 %, Leon MSS: 28.05 %
Pipeline config: auto=False cameras=[CameraConfiguration(fps=30, resolution=<CameraSensorResolution.THE_1080_P: 'THE_1080_P'>, kind=<CameraSensorType.COLOR: 0>, board_socket=<CameraBoardSocket.CAM_A: 0>, stream_enabled=True, name='color')] depth=None ai_model=AiModelConfiguration(display_name='Age gender recognition', path='age-gender-recognition-retail-0013', camera=<CameraBoardSocket.CAM_A: 0>) imu=ImuConfiguration(report_rate=100, batch_report_threshold=5)
Updating pipeline...
Cam running, closing...
Usb speed: UsbSpeed.SUPER
Creating camera: fps=30 resolution=<CameraSensorResolution.THE_1080_P: 'THE_1080_P'> kind=<CameraSensorType.COLOR: 0> board_socket=<CameraBoardSocket.CAM_A: 0> stream_enabled=True name='color'
Connected cam doesn't have IMU, skipping IMU creation...
Starting pipeline
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/main.py", line 185, in <module>
DepthaiViewerBack(args.port, args.sdk_port)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/main.py", line 52, in init
self.run()
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/main.py", line 158, in run
self.result_queue.put(self.handle_action(action, \*\*kwargs))
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/main.py", line 112, in handle_action
message = self.on_update_pipeline(kwargs.get("runtime_only")) # type: ignore[arg-type]
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/main.py", line 98, in on_update_pipeline
message = self._device.update_pipeline(runtime_only)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/_backend/device.py", line 590, in update_pipeline
self._oak.start(blocking=False)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/venv-0.1.8/lib/python3.10/site-packages/depthai_sdk/oak_camera.py", line 499, in start
handler.setup(self.pipeline, self.device, self._new_msg_callbacks)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/venv-0.1.8/lib/python3.10/site-packages/depthai_sdk/classes/packet_handlers.py", line 226, in setup
xout = output(device)
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/venv-0.1.8/lib/python3.10/site-packages/depthai_sdk/components/nn_component.py", line 636, in call
return XoutTwoStage(det_nn=self._comp._input,
File "/home/manuel/.local/lib/python3.10/site-packages/depthai_viewer/venv-0.1.8/lib/python3.10/site-packages/depthai_sdk/oak_outputs/xout/xout_nn.py", line 194, in init
self.whitelist_labels: Optional[List[int]] = second_nn._multi_stage_nn.whitelist_labels
AttributeError: 'NoneType' object has no attribute 'whitelist_labels'
I thank you in advance to everyone who answers