ros-drivers / rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial
517 stars 525 forks source link

cannot import name 'RosSerialServer' from 'rosserial_python' #418

Closed seo2730 closed 5 years ago

seo2730 commented 5 years ago

When I run rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0, there is a problem

Traceback (most recent call last): File "/opt/ros/kinetic/lib/rosserial_python/serial_node.py", line 39, in from rosserial_python import SerialClient, RosSerialServer ImportError: cannot import name 'RosSerialServer' from 'rosserial_python' (/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/init.py)

I don't know how to fix it

seo2730 commented 5 years ago

I found it. It was my laptop python version was 3.6 so it didn't work