From ef011107d89dcab1978f1935294d6dd41c36041d Mon Sep 17 00:00:00 2001 From: prithvi-mac Date: Tue, 23 Jul 2024 18:18:53 -0600 Subject: [PATCH] Added spaces to disallowed char for working dir Signed-off-by: prithvi-mac --- python/ray/_private/runtime_env/packaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/_private/runtime_env/packaging.py b/python/ray/_private/runtime_env/packaging.py index 7e386dba8607..c90f4a94b682 100644 --- a/python/ray/_private/runtime_env/packaging.py +++ b/python/ray/_private/runtime_env/packaging.py @@ -207,7 +207,7 @@ def parse_uri(pkg_uri: str) -> Tuple[Protocol, str]: else: package_name = f"{protocol.value}_{uri.netloc}{uri.path}" - disallowed_chars = ["/", ":", "@", "+"] + disallowed_chars = ["/", ":", "@", "+", " "] for disallowed_char in disallowed_chars: package_name = package_name.replace(disallowed_char, "_")