From 18dd6923e63797e0ebd29eec6d2314dd658660c2 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 13 Dec 2016 23:23:36 +0100 Subject: [PATCH] integrationtests: use Python2 for dependencies This changes the shebang of the integration test files to python2 because the scripts fail on systems with Python 3 as the default. Even though ROS has been ported to Python 3, there are still some dependencies not playing along. The error that comes up when starting with Python 3 is: > No module named 'mavexpression' --- .../python_src/px4_it/mavros/mavros_offboard_attctl_test.py | 5 ++++- .../python_src/px4_it/mavros/mavros_offboard_posctl_test.py | 5 ++++- integrationtests/python_src/px4_it/mavros/mission_test.py | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/integrationtests/python_src/px4_it/mavros/mavros_offboard_attctl_test.py b/integrationtests/python_src/px4_it/mavros/mavros_offboard_attctl_test.py index 9c90289737..7dbe7ed5bd 100755 --- a/integrationtests/python_src/px4_it/mavros/mavros_offboard_attctl_test.py +++ b/integrationtests/python_src/px4_it/mavros/mavros_offboard_attctl_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 #*************************************************************************** # # Copyright (c) 2015 PX4 Development Team. All rights reserved. @@ -35,6 +35,9 @@ # # @author Andreas Antener # +# The shebang of this file is currently Python2 because some +# dependencies such as pymavlink don't play well with Python3 yet. + PKG = 'px4' import unittest diff --git a/integrationtests/python_src/px4_it/mavros/mavros_offboard_posctl_test.py b/integrationtests/python_src/px4_it/mavros/mavros_offboard_posctl_test.py index c39f400a67..188110c03f 100755 --- a/integrationtests/python_src/px4_it/mavros/mavros_offboard_posctl_test.py +++ b/integrationtests/python_src/px4_it/mavros/mavros_offboard_posctl_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 #*************************************************************************** # # Copyright (c) 2015 PX4 Development Team. All rights reserved. @@ -35,6 +35,9 @@ # # @author Andreas Antener # +# The shebang of this file is currently Python2 because some +# dependencies such as pymavlink don't play well with Python3 yet. + PKG = 'px4' import unittest diff --git a/integrationtests/python_src/px4_it/mavros/mission_test.py b/integrationtests/python_src/px4_it/mavros/mission_test.py index 95b71b9411..f4db60d90d 100755 --- a/integrationtests/python_src/px4_it/mavros/mission_test.py +++ b/integrationtests/python_src/px4_it/mavros/mission_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 #*************************************************************************** # # Copyright (c) 2015 PX4 Development Team. All rights reserved. @@ -35,6 +35,10 @@ # # @author Andreas Antener # + +# The shebang of this file is currently Python2 because some +# dependencies such as pymavlink don't play well with Python3 yet. + PKG = 'px4' import unittest