From 05c866c2745ca56cb85577598a5f266e11868aa2 Mon Sep 17 00:00:00 2001 From: Prithvi Malhotra <47061269+prithvi081099@users.noreply.github.com> Date: Mon, 16 Sep 2024 19:17:50 -0600 Subject: [PATCH] [Core] Added spaces to disallowed char for working dir (#46767) 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 091384c96921..2766e6a7acab 100644 --- a/python/ray/_private/runtime_env/packaging.py +++ b/python/ray/_private/runtime_env/packaging.py @@ -208,7 +208,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, "_")