Using Dagit I am trying to run a python script fro...
# ask-community
s
Using Dagit I am trying to run a python script from within a shell script that’s called from the create_shell_command_op(). This is running from within a Docker container. The shell script is definitely being called. However, inside the shell script, I try to call “python /opt/dagster/hello-world.py” and I get the following error: dagster.core.definitions.events.Failure: Shell command execution failed with output: python3: can’t open file ‘/opt/dagster/hello-world.py’: [Errno 2] No such file or directory I can confirm that when I bash into the Docker container, I can run the shell script from the command line (sh hello-world.sh), which then calls the python script, which then prints “Hello World!“. But from within Dagit it’s just not working… Any help would be super awesome! Thanks!
d
Hey Saad - What run launcher are you using? Is it spinning up a container to launch the run in using an image with that script in it?