Launch File/setup.py not working correctly

Hiya,

I get the error “Caught exception when trying to load file of format [py]: ‘module’ object is not callable” in my command terminal when trying to launch my launch file in section 2 of ros2 in 5 days. My simple.py file works as I tested using ros2 run. I have looked through previous FAQs on this forum but none seem to be working. I have attached photos of my setup.py and my launch file.


image

Hi @CalumMacphersonCyber, welcome to the community!

it seems you are missing "launch" in

(os.path.join("share", package_name, "launch"), glob("launch/*.launch.py"))

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.