Sling version:
1.5.19
What is the Operating System?
Windows
Do you have a CLI Pro/Platform subscription?
Yes
Description of the issue
When running a replication using the Python wrapper (import sling) on Windows, the execution fails with a file syntax error.
It appears that the internal code preserves the quotes around the YAML file path when passing the command to Windows, making Windows reject the filename.
Note that this code was running perfectly in previous versions. The issue started appearing only yesterday after I upgraded to the latest version (v1.5.19).
Temporary Workaround:
Setting the environment variable os.environ["SLING_PYTHON_USE_SHELL"] = "true" before running the replication bypasses the issue.
Replication Configuration
import os
from sling import Replication
This fails in v1.5.19 on Windows:
replication = Replication(file_path="csv_load.yaml")
replication.run()
Log Output
fatal:
~ Unable to open replication path: "csv_load.yaml"
open "csv_load.yaml": The filename, directory name, or volume label syntax is incorrect.
Exception: Sling command failed:
Unable to open replication path: "csv_load.yaml"
Sling version:
1.5.19
What is the Operating System?
Windows
Do you have a CLI Pro/Platform subscription?
Yes
Description of the issue
When running a replication using the Python wrapper (
import sling) on Windows, the execution fails with a file syntax error.It appears that the internal code preserves the quotes around the YAML file path when passing the command to Windows, making Windows reject the filename.
Note that this code was running perfectly in previous versions. The issue started appearing only yesterday after I upgraded to the latest version (v1.5.19).
Temporary Workaround:
Setting the environment variable
os.environ["SLING_PYTHON_USE_SHELL"] = "true"before running the replication bypasses the issue.Replication Configuration
import os
from sling import Replication
This fails in v1.5.19 on Windows:
replication = Replication(file_path="csv_load.yaml")
replication.run()
Log Output
fatal:
~ Unable to open replication path: "csv_load.yaml"
open "csv_load.yaml": The filename, directory name, or volume label syntax is incorrect.
Exception: Sling command failed:
Unable to open replication path: "csv_load.yaml"