From cc249d29e611fc563119efbab6a1905e5a2307e8 Mon Sep 17 00:00:00 2001 From: Naoto Tsukamoto Date: Mon, 24 Jul 2023 17:40:01 +0900 Subject: [PATCH] [ros_google_cloud_language] Fix importing unidecode in python2 --- ros_google_cloud_language/node_scripts/analyze_text.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ros_google_cloud_language/node_scripts/analyze_text.py b/ros_google_cloud_language/node_scripts/analyze_text.py index bd1a452ca..d8366a3dd 100644 --- a/ros_google_cloud_language/node_scripts/analyze_text.py +++ b/ros_google_cloud_language/node_scripts/analyze_text.py @@ -9,7 +9,10 @@ import rospy import os import sys -from unidecode import unidecode +try: + from unidecode import unidecode +except ImportError: + pass from ros_google_cloud_language.msg import AnalyzeTextAction from ros_google_cloud_language.msg import AnalyzeTextResult