Dsdl compiler error

Hi,
I cloned the latest version of px4 firmware from git. I added new files in UAVCAN. When I built it,

FAILED: cd /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan && /usr/bin/python /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc test/dsdl_test/root_ns_a test/dsdl_test/root_ns_b /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/…/dsdl/uavcan -Oinclude/dsdlc_generated && /usr/bin/cmake -E touch /home/niran/Firmware/build/px4_fmu-v5_default/libuavcan_dsdlc_run.stamp
Internal error
Traceback (most recent call last):
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/dsdl/parser.py”, line 606, in parse**
** return self.parse_source(filename, source_text)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/dsdl/parser.py”, line 598, in parse_source**
** raise ex**
DsdlException: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]
Compiler failure
Traceback (most recent call last):
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc”, line 61, in **
** dsdlc_run(args.source_dir, args.incdir, args.outdir)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 58, in run**
** types = run_parser(source_dirs, include_dirs + source_dirs)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 97, in run_parser**
** die(ex)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 90, in die**
** raise DsdlCompilerException(str(text))**
DsdlCompilerException: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Internal error: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]
/home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Internal error: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]

I had a previous import from git few weeks ago and this error is not popping up in that one.
Any ideas how this is happening?
it would be great if someone could help me in this.
Thanks and Regards
Niranjan

Remove spaces from your data type names.

1 Like

I removed all my old codes and started from scratch and removed unnecessary spaces. It worked. Thank you.