Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lcm
>>> from robot_msgs import double_t
>>> lcm = lcm.LCM("udpm://239.255.76.67:7667?ttl=2")
>>> double_msg = double_t()
>>> channel = "TEST"
>>> lcm.publish(channel, double_msg.encode())
<stdin>:1: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
Example:
this runs fine on Python 3.6.9