KRS icon indicating copy to clipboard operation
KRS copied to clipboard

AttributeError: 'NoneType' object has no attribute 'split'

Open ctgulzh opened this issue 2 years ago • 2 comments

Sorry to bother everyone, I recently encountered a problem while learning KRS: referring to the guidance at https://xilinx.github.io/KRS/sphinx/build/html/docs/install.html I built the KRS development environment on a virtual machine , when I proceed to "Select the KR260 firmware artifact and rebuild the accelerator configured for the KR260 build", the following error appears:

[0.356s] ERROR:colcon:colcon acceleration: 'NoneType' object has no attribute 'split' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 522, in verb_main rc = context.args.main(context=context) File "/home/lzh/krs_ws/install/lib/python3.10/site-packages/colcon_hardware_acceleration/subverb/select.py", line 48, in main firmware_options = get_firmware_options() File "/home/lzh/krs_ws/install/lib/python3.10/site-packages/colcon_hardware_acceleration/subverb/list.py", line 27, in get_firmware_options firmware_options = outs.split("\n") AttributeError: 'NoneType' object has no attribute 'split'

So,how to solve this problem? I referred to a previous answer: https://github.com/Xilinx/KRS/issues/30 but failed to solve the attribute error problem by following the above method.

ctgulzh avatar Sep 12 '23 06:09 ctgulzh

@ctgulzh, I have not encountered this problem, can you share the complete steps to reproduce? Just a quick check, have you sourced the environment properly i.e., "source install/setup.bash" ?

jasvinderkhurana avatar Sep 14 '23 07:09 jasvinderkhurana

Yes I did "source install/setup.bash"

ctgulzh avatar Jul 05 '24 06:07 ctgulzh