Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<uavcan/protocol/GetNodeInfo.hpp> not detected #130

Open
akvavit01 opened this issue Oct 15, 2020 · 2 comments
Open

<uavcan/protocol/GetNodeInfo.hpp> not detected #130

akvavit01 opened this issue Oct 15, 2020 · 2 comments

Comments

@akvavit01
Copy link

When building using make all, GetNodeInfo,hpp is not found

Screenshot from 2020-10-15 17-59-29

@RPFey
Copy link

RPFey commented Jan 4, 2021

Hi, I encounter a similar problem. I can't find file NodeStatus.hpp. I find the same module libuavcan in PX4 repo Firmware and I can build it. So I believe the building environment is wrong.
I check the build output and find the python generator fail. I disable the conda environment and use python 2.7 to build, and it pass.
I think you should check the building environment according to PX4 Guide and use the same environment to build PX4-FLOW.
Good Luck!

@sbaccam90
Copy link

sbaccam90 commented May 13, 2021

@akvavit01 and @RPFey I think I solved it. The problem happens with the new versions of Python; I am using the 3.8.5 which comes with Ubuntu 20.04, here more information. Specifically, you need to handle the stopIteration exception version in /PX4-Flow/src/lib/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py since after Python 3.6 this will end up in an error. In this case, the error stops the generation process of some files such as Nodeinfo.hpp. Specifically, I modified the line 300 in init.py for handling the exception:
try:
last = next(it)
except StopIteration:
return

Excuse me for the identation, be careful with that since Python is very picky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants