Hi All, I seem to be stuck with this problem <http...
# ask-community
o
Hi All, I seem to be stuck with this problem https://github.com/PrefectHQ/prefect/issues/4393#issuecomment-927268724. I have bash installed and the shell path set
k
What is the output if you do
sys.platform
?
win32
?
o
Yes
This is the trace I get
k
Something is wrong with the traceback I think. You are lacking slashes. Can you show the command?
o
my_task = ShellTask(shell=r"C:\\Windows\\System32\\bash.exe", log_stderr=True, return_all=True, stream_output=True)
with Flow("shell") as f:
   
result = my_task(command="ls")
   
print(result)
out = f.run()
k
Did you try the suggestion in the issue how they solved it?
o
Yes, I have the same issue as the last post on the thread. Their traceback looks the same One Sec: I think his solution is above the problem. Looks like I have to edit the source. Is there a way around it?
k
you can create you own importable task based off of it?
o
Ahhhh, thanks 🙂. Still my first day on Prefect
k
no worries! that was a real question (but yes you can)