针对ubuntu20.04和ros noetic:

错误截图如下:

No module named ‘SerialClient‘和Cannot import package : rosserial_arduino_python

No module named ‘SerialClient‘和Cannot import package : rosserial_arduino_ubuntu_02

解决途径:

ModuleNotFoundError: No module named 'SerialClient'

输入如下:

sudo gedit /opt/ros/noetic/lib/python3/dist-packages/rosserial_arduino/__init__.py

修改:

from SerialClient import * (修改前)

from .SerialClient import *  (修改后)

一切正常!

No module named ‘SerialClient‘和Cannot import package : rosserial_arduino_ubuntu_03