0

I have been following this website. I have installed dronekit and dronekit-sitl as by using the following commands.

pip install dronekit
pip install dronekit-sitl

But the problem is that , when I import this module in my python script it says MODULE NOT FOUND.

pi@raspberrypi:~ $ \python
Python 2.7.18 (default, Jul 14 2021, 08:11:37)
[GCC 10.2.1 20210110] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dronekit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dronekit
>>>

Whenever I use pip install it states we successfully installed . Now I have used the following commands.


pi@raspberrypi:~ $ python -m dronekit
/usr/bin/python: No module named dronekit
pi@raspberrypi:~ $ python2 -m dronekit
/usr/bin/python2: No module named dronekit
pi@raspberrypi:~ $ python3 -m dronekit
/usr/bin/python3: No module named dronekit.__main__; 'dronekit' is a package and cannot be directly executed                                                 cannot be directly executed
pi@raspberrypi:~ $


Please help me how to tackle this problem.

Thanking you.

4
  • "Please help me how to tackle this problem" don't waste your (and our) time with 6 year old posts.
    – Milliways
    Dec 6, 2021 at 11:04
  • @Milliways I would be highly obliged if you provide me the link. Dec 6, 2021 at 11:05
  • have you tried from dronekit install * or from dronekit import connect, VehicleMode? Dec 6, 2021 at 12:59
  • @SteveRobillard No sir. Dec 6, 2021 at 17:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.