Facing the error while compiling the pixhawk code with "make px4fmu-v2_default "
I already tried the “python -m easy_install empy catkin_pkg” and “python -m pip install empy catkin_pkg” Then “make distclean” and “make px4fmu-v2_default” but it didn’t change anything.
Please find the error I am facing:
python import error: No module named genmsg.template_tools
@NitinNaik What is “pixhawk_toolchain console on windows 7”?
If it’s an old msys based toolchain or you built it up yourself chances are you are running against multiple issues even if you fixed that particular error. I’m telling you this not to intimidate but to save your time.
I re-tried to compile the code using mentioned Cygwin tool but I am still getting the same error.
I don’t understand why that should happen. So you installed the toolchain using the MSI installer but in which console with what repository did you try to compile?
Because if you install the cygwin toolchain, you use the toolchain’s cygwin console C:\PX4\run-console.bat and you clone and build inside that environment I’m almost certain it works because 1. I use that setup for my day to day work and 2. the CI of PX4 automatically builds every change that’s made this way. You don’t need to execute any of these python setup commands manually if you use this toolchain.
Can you provide more details on what exact steps you performed? What’s the exact output? Screenshot?
I need more data to find out what’s going wrong.