Skip to content

Commit d206647

Browse files
committed
system: use block for big print message
1 parent 2861139 commit d206647

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mavsdk/system.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,14 @@ def _start_mavsdk_server(system_address=None):
172172
stdout=subprocess.DEVNULL,
173173
stderr=subprocess.DEVNULL)
174174
except FileNotFoundError:
175-
print("\nIt seems like this installation does not provide an embedded 'mavsdk_server' binary. If you installed from pip, it means that 'mavsdk_server' is not distributed for your platform (yet). You will need to get and run it manually:\n\n 1. Download 'mavsdk_server' from releases: https://github.com/mavlink/mavsdk/releases (or build it from source).\n 2. Run it, e.g. on port 50051: './mavsdk_server -p 50051'.\n 3. Set the 'mavsdk_server_address' and port when creating the System:\n 'drone = System(mavsdk_server_address='localhost', port=50051)'\n")
175+
print("""
176+
It seems like this installation does not provide an embedded 'mavsdk_server' binary. If you installed from pip, it means that 'mavsdk_server' is not distributed for your platform (yet). You will need to get and run it manually:
177+
178+
1. Download 'mavsdk_server' from releases: https://github.com/mavlink/mavsdk/releases (or build it from source).
179+
2. Run it, e.g. on port 50051: './mavsdk_server -p 50051'.
180+
3. Set the 'mavsdk_server_address' and port when creating the System:
181+
'drone = System(mavsdk_server_address='localhost', port=50051)'
182+
""")
176183
sys.exit(1)
177184

178185

0 commit comments

Comments
 (0)