Skip to content

Commit 815868e

Browse files
committed
[dialogflow_task_executive] force to use python3 for additional depends of dialogflow_intent_client
1 parent 7eed5ff commit 815868e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dialogflow_task_executive/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ elseif("$ENV{ROS_DISTRO}" STRGREATER "melodic")
6868
else()
6969
catkin_generate_virtualenv(
7070
INPUT_REQUIREMENTS requirements.in
71-
PYTHON_INTERPRETER python2
71+
PYTHON_INTERPRETER python3
7272
)
7373
endif()
7474

dialogflow_task_executive/node_scripts/dialogflow_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def make_dialog_msg(self, result):
117117
# check if ROS_PYTHON_VERSION exists in indigo
118118
if (self.language == 'ja-JP'
119119
and ("ROS_PYTHON_VERSION" not in os.environ
120-
or os.environ["ROS_PYTHON_VERSION"] == "2")):
120+
or sys.version_info.major <= 2)):
121121
msg.query = result.query_text.encode("utf-8")
122122
msg.response = result.fulfillment_text.encode("utf-8")
123123
else:

0 commit comments

Comments
 (0)