# Unable to run MAVSDK-python examples

**URL:** <https://discuss.px4.io/t/unable-to-run-mavsdk-python-examples/35776>\
**Category:** MAVSDK\
**Created:** [December 10, 2023, 9:15am UTC](https://discuss.px4.io/t/unable-to-run-mavsdk-python-examples/35776 "2023-12-10T09:15:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoro\_Juro](https://discuss.px4.io/user_avatar/discuss.px4.io/zoro_juro/32/13670_2.png) [@Zoro\_Juro](https://discuss.px4.io/u/Zoro_Juro)\
**Post date:** [December 10, 2023, 9:15am UTC](https://discuss.px4.io/t/unable-to-run-mavsdk-python-examples/35776/1 "2023-12-10T09:15:18Z")

</div>

```auto
import asyncio
from mavsdk import System

async def run():

    drone = System()
    await drone.connect(system_address="udp://:14540")

    status_text_task = asyncio.ensure_future(print_status_text(drone))

    print("Waiting for drone to connect...")
    async for state in drone.core.connection_state():
        if state.is_connected:
            print(f"-- Connected to drone!")
            break

    print("Waiting for drone to have a global position estimate...")
    async for health in drone.telemetry.health():
        if health.is_global_position_ok and health.is_home_position_ok:
            print("-- Global position estimate OK")
            break

    print("-- Arming")
    await drone.action.arm()

    print("-- Taking off")
    await drone.action.takeoff()

    await asyncio.sleep(10)

    print("-- Landing")
    await drone.action.land()

    status_text_task.cancel()

async def print_status_text(drone):
    try:
        async for status_text in drone.telemetry.status_text():
            print(f"Status: {status_text.type}: {status_text.text}")
    except asyncio.CancelledError:
        return

if __name__ == " __main__":
    # Run the asyncio loop
    asyncio.run(run())

```

when i run i am getting this output

```auto
This installation does not provide an embedded 'mavsdk_server' binary.
If you installed using pip, this means that 'mavsdk_server' is not distributed
for your platform yet (e.g. arm).

You will need to get and run the 'mavsdk_server' binary manually:

  1. Download 'mavsdk_server' from: https://github.com/mavlink/mavsdk/releases
     or build it from source.

  2. Run it, e.g. on port 50051:
     './mavsdk_server -p 50051'

  3. Set the 'mavsdk_server_address' and port when creating the System:
     'drone = System(mavsdk_server_address='localhost', port=50051)'

```

please help me

---

<div class="post-metadata">

**Author:** ![Rafi\_S.M](https://discuss.px4.io/user_avatar/discuss.px4.io/rafi_s.m/32/11927_2.png) [@Rafi\_S.M](https://discuss.px4.io/u/Rafi_S.M)\
**Post date:** [January 19, 2024, 5:53am UTC](https://discuss.px4.io/t/unable-to-run-mavsdk-python-examples/35776/2 "2024-01-19T05:53:34Z")

</div>

Are you trying to connect to a real drone ? Can you provide a screenshot for the setup?

---

<div class="post-metadata">

**Author:** ![JonasVautherin](https://discuss.px4.io/user_avatar/discuss.px4.io/jonasvautherin/32/4186_2.png) [@JonasVautherin](https://discuss.px4.io/u/JonasVautherin)\
**Post date:** [February 6, 2024, 11:09pm UTC](https://discuss.px4.io/t/unable-to-run-mavsdk-python-examples/35776/3 "2024-02-06T23:09:41Z")

</div>

Did you try following the instructions in the error message you copy-pasted above?
