Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dronekit SITL error #149

Open
Turbullance opened this issue Nov 12, 2020 · 4 comments
Open

Dronekit SITL error #149

Turbullance opened this issue Nov 12, 2020 · 4 comments

Comments

@Turbullance
Copy link

Companion Computer: RPi 4B
Dronekit : 2.9.2
Dronekit sitl: 3.3.0

I received this two errors:

  1. pi@raspberrypi:~ $ dronekit-sitl copter
    os: linux, apm: copter, release: stable
    SITL already Downloaded and Extracted.
    Ready to boot.
    Traceback (most recent call last):
    File "/home/pi/.local/bin/dronekit-sitl", line 8, in
    sys.exit(main())
    File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 601, in main
    sitl.launch(args, verbose=True)
    File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 251, in launch
    caps = ArdupilotCapabilities(self.path)
    File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 160, in init
    process = subprocess.Popen([path, '--help'], stdout=subprocess.PIPE)
    File "/usr/lib/python3.7/subprocess.py", line 775, in init
    restore_signals, start_new_session)
    File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
    OSError: [Errno 8] Exec format error: '/home/pi/.dronekit/sitl/copter-3.3/apm'

  2. pi@raspberrypi:~ $ python hello.py
    Start simulator (SITL)
    Traceback (most recent call last):
    File "hello.py", line 2, in
    import dronekit_sitl
    ImportError: No module named dronekit_sitl

@Turbullance
Copy link
Author

@peterbarker

@lemreaskin
Copy link

lemreaskin commented Nov 12, 2020

Hi @Turbullance , you get the first error because Dronekit-SITL doesn't support ARM builds (like Raspberry Pi).

Here's the link on the subject: https://dronekit-python.readthedocs.io/en/latest/develop/sitl_setup.html

@peterbarker
Copy link
Contributor

peterbarker commented Nov 13, 2020 via email

@lemreaskin
Copy link

Yeah, sure. It can be tried. It could probably work. But 100% I'm not sure.

I had the same problem 3-4 months ago. I ran the SITL on a normal laptop to test the codes I wrote. Obviously, if you don't have to, you'd better use normal laptop instead of Raspberry Pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants