Skip to content

Commit

Permalink
[dialogflow_task_executive] force to use python3 for additional depen…
Browse files Browse the repository at this point in the history
…ds of dialogflow_intent_client
  • Loading branch information
mqcmd196 committed Nov 13, 2024
1 parent 6b792a9 commit 8459ebc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dialogflow_task_executive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ elseif("$ENV{ROS_DISTRO}" STRGREATER "melodic")
else()
catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in
PYTHON_INTERPRETER python2
PYTHON_INTERPRETER python3
)
endif()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def make_dialog_msg(self, result):
# check if ROS_PYTHON_VERSION exists in indigo
if (self.language == 'ja-JP'
and ("ROS_PYTHON_VERSION" not in os.environ
or os.environ["ROS_PYTHON_VERSION"] == "2")):
or sys.version_info.major <= 2)):
msg.query = result.query_text.encode("utf-8")
msg.response = result.fulfillment_text.encode("utf-8")
else:
Expand Down

0 comments on commit 8459ebc

Please sign in to comment.