diff --git a/parl/remote/scripts.py b/parl/remote/scripts.py index 71677d692878eef63f65b0ff1054cb6233b0d7a5..efcb680ff4833c47693a42bf891113fefd010012 100644 --- a/parl/remote/scripts.py +++ b/parl/remote/scripts.py @@ -34,7 +34,10 @@ os.environ['XPARL'] = 'True' # Solve `Click will abort further execution because Python 3 was configured # to use ASCII as encoding for the environment` error. -locale.setlocale(locale.LC_ALL, "en_US.UTF-8") +try: + locale.setlocale(locale.LC_ALL, "en_US.UTF-8") +except: + pass #TODO: this line will cause error in python2/macOS if sys.version_info.major == 3: