Steven D'Aprano <steve+pyt...@pearwood.info> added the comment: Hi Sébastien,
This is a bug tracker for reporting bugs, not a help desk to help with your code. There are many community resources to help you debug your code, but this is not one of them. You can try: * Reddit's /r/learnpython * the Python-list mailing list or news group https://mail.python.org/mailman/listinfo/python-list or comp.lang.python * The Python Discuss forums https://discuss.python.org/c/users/7 * various IRC channels https://www.python.org/community/irc/ * other forums https://www.python.org/community/forums/ There may be others. However I guess you probably need ROS specific forums. It may help to read these first: https://stackoverflow.com/help/minimal-reproducible-example http://www.sscce.org/ http://catb.org/~esr/faqs/smart-questions.html If there is a problem with pointcloud2.readpoint returning two values when you expected one, you should check the pointcloud2 documentation, or the ROS project, and report the bug to them. I'm going to close this as "Third Party", as any bug is most likely in the pointcloud2 library, or your own code. Unfortunately, even if it turns out to be a bug in struct.unpack_from, although I don't understand why you think it might be, we aren't accepting any bug reports for Python 2, it is no longer maintained. Please upgrade to Python 3.9 and see if that fixes the problem. Please note that your sample code gives a function "read_points" but the callback calls a different function "read_points2". ---------- nosy: +steven.daprano resolution: -> third party stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42494> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com