HailoRT Exception

Hello,I installed HailoRT 4.18 to my raspberry pi 5 and I downloaded source code from github but I got error,how can I fix that?

Code:
hef_path = ‘yolox_s_leaky_h8l_mz.hef’
video_dir = ‘video.mp4’
hef = HEF(hef_path)
mp4_files = video_dir
devices = Device.scan()

with VDevice(device_ids=devices) as target:
configure_params = ConfigureParams.create_from_hef(hef, interface=HailoStreamInterface.PCIe)
network_group = target.configure(hef, configure_params)[0]

Error:
Exception has occurred: HailoRTException
libhailort failed with error: 8 (HAILO_INTERNAL_FAILURE)
hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 8

The above exception was the direct cause of the following exception:

File “/home/halil/hailo_platform_venv/son.py”, line 23, in
network_group = target.configure(hef, configure_params)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hailo_platform.pyhailort.pyhailort.HailoRTException: libhailort failed with error: 8 (HAILO_INTERNAL_FAILURE)

Hey @faikkom66,

Could you please run the command hailortcli fw-control identify? Also please make sure the HEF file is version compatible to 4.18.

Hello,me again.I run the command hailortcli fw-control identify and it worked very well.My .hef file is compiled for hailo8l.Also,I got that error running source code from github:

Error:
[HailoRT] [error] CHECK failed - max_desc_page_size given 16384 is bigger than hw max desc page size 4096
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INTERNAL_FAILURE(8)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INTERNAL_FAILURE(8)

Hi,
Please see this section I added to our guide:
PCIe Page Size Issue

Hi,me again.I have a new error message about source code from github.How can I solve that?

Code:
resized_img = cv2.resize(frame, (INPUT_RES_H, INPUT_RES_W), interpolation = cv2.INTER_AREA)
with InferVStreams(network_group, input_vstreams_params, output_vstreams_params) as infer_pipeline:
input_data = {input_vstream_info.name: np.expand_dims(np.asarray(resized_img), axis=0).astype(np.float32)}
with network_group.activate(network_group_params):
infer_results = infer_pipeline.infer(input_data)

        # create dictionary that returns layer name from tensor shape (required for postprocessing)
        layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}

Error Message:

Exception has occurred: AttributeError
‘list’ object has no attribute ‘shape’
File “/home/halil/hailo_platform_venv/son.py”, line 67, in
layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}
^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/halil/hailo_platform_venv/son.py”, line 67, in
layer_from_shape: dict = {infer_results[key].shape:key for key in infer_results.keys()}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘list’ object has no attribute ‘shape’