Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rosserial "ImportError: No module named serial"

I am trying to follow the rosserial tutorial. I am running Debian 8.5 on Beaglebone Black. I installed rosserial from source using the following:

git clone https://github.com/ros-drivers/rosserial.git cd <ws> catkin_make

This ran fine with no errors, got lots of files and directories with "rosserial" in the name :)

Then I'm ready to test, command (from tutorial) is:

rosrun rosserial_python serial_node.py /dev/ttyUSB0

result is:

Traceback (most recent call last): File "/home/debian/ros_catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 39, in <module> from rosserial_python import SerialClient, RosSerialServer File "/home/debian/ros_catkin_ws/devel/lib/python2.7/dist-packages/rosserial_python/__init__.py", line 35, in <module> exec(__fh.read()) File "<string>", line 1, in <module> File "/home/debian/ros_catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 44, in <module> from serial import * ImportError: No module named serial

All help will be appreciated.

Bob

rosserial "ImportError: No module named serial"

I am trying to follow the rosserial tutorial. I am running Debian 8.5 on Beaglebone Black. I installed rosserial from source using the following:

git clone https://github.com/ros-drivers/rosserial.git
 cd <ws>
  catkin_make

catkin_make

This ran fine with no errors, got lots of files and directories with "rosserial" in the name :)

Then I'm ready to test, command (from tutorial) is:

rosrun rosserial_python serial_node.py /dev/ttyUSB0

/dev/ttyUSB0

result is:

Traceback (most recent call last):
  File "/home/debian/ros_catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 39, in <module>
    from rosserial_python import SerialClient, RosSerialServer
  File "/home/debian/ros_catkin_ws/devel/lib/python2.7/dist-packages/rosserial_python/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 1, in <module>
  File "/home/debian/ros_catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 44, in <module>
    from serial import *
ImportError: No module named serial

serial

All help will be appreciated.

Bob