Help with: Unable to import python module. "ModuleNotFoundError: No module named"
Hi all
I know this question has been asked a lot of times, but it has been mostly relevant to when writing custom python modules and then importing them. My scenario is a bit different, I am trying to use the nmea_navsat_driver package. After cloning, it builds without any warnings/errors with catkin build. However, whenever I try to run the serial driver via. rosrun nmea_navsat_driver nmea_serial_driver _port:=/dev/ttyUSB0 _baud:=38400
, I get the error
Traceback (most recent call last):
File "/home/fpbot/catkin_ws/src/nmea_navsat_driver/scripts/nmea_serial_driver", line 35, in <module> import libnmea_navsat_driver.nodes.nmea_serial_driver
ModuleNotFoundError: No module named 'libnmea_navsat_driver
This is a pretty standard package which is widely used. Regardless I have checked the requirements for importing python modules and everything seems to be aligned ros documentation. This leads me to assume that the err is on my end. But I am not able to figure it out. Kindly help.
P.S. I tried other packages which involve importing python modules. The issue was reproduced for each of those packages. Therefore, it is definitely not this particular package.