Charles Leung
03/10/2023, 10:56 PMNotImplementedError
when using the prefect_shell collection.
It was working previously but for some reason when I tried doing it again it’s not working. I’ve already used pip install -U prefect-shell and double checked that its installed correctly in the venv Lib
But when running a simple test I get the following “Not Implemented” error:
The source code can be found below:
from prefect import flow
from prefect_shell import shell_run_command
@flow
def example_shell_run_command_flow():
return shell_run_command(command="ls .", return_all=True)
if name == "main":
print("test")
example_shell_run_command_flow()
error message from the cloud UI is attached.
Error_msg▾
1569×931 120 KB▾
Nate
03/11/2023, 12:41 AMfrom prefect_shell import ShellOperation
ShellOperation(commands=["ls ."]).run()
ShellOperation
is not a task, but can be wrapped in a task
if desired. shell_run_command
is still a thing for the sake of backwards compatibility, but recommend the use of ShellOperation
Charles Leung
03/11/2023, 12:57 AMNate
03/11/2023, 1:00 AMCharles Leung
03/11/2023, 1:03 AMNate
03/12/2023, 2:29 AMshell_run_command
call?
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
Charles Leung
03/13/2023, 5:23 PMNate
03/13/2023, 5:31 PM