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

针对ubuntu20.04和ros noetic:

错误截图如下:

No module named ‘SerialClient‘和Cannot import package : rosserial_arduino_第1张图片

No module named ‘SerialClient‘和Cannot import package : rosserial_arduino_第2张图片

解决途径:

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_第3张图片



 


 

 

 

 

你可能感兴趣的:(No module named ‘SerialClient‘和Cannot import package : rosserial_arduino)