No Module named pymavlink
while running “sim_vehicle.py --map --console” i am getting an error that “pymavlink” is not found.
But in the list I could see that it is installed.
Please let me know how to solve this issue,
I think you might have an issue wtih your PYTHONPATH environment variable that tells the interpreter where to locate the module files imported into a program. In your case, ‘pip -v’ shows that the pymavlink module is in
/home/samuel/.local/lib/python3.6/site-packages. ‘pip --verbose list | grep pymavlink’ should also show where pymavlink is located.
As an example, the following will show the contents of the PYTONPATH environemt variable on my system:
david@hp-office:~$ python
Python 2.7.17 (default, Feb 27 2021, 15:10:58)
[GCC 7.5.0] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import sys
for p in sys.path:
… print§
…
/opt/ros/melodic/lib/python2.7/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/home/david/.local/lib/python2.7/site-packages
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3
quit()
Your variable will not be the same as the above, but should contain /home/samuel/.local/lib/python3.6/site-packages, in order for the interpreter to find pymavlink.
Hope this helps.