Hi. I built a custom Dockerfile and it failed during “Validate Submission” with exit code 127. And this error message.
<private_file>: line 19: <sensitive_data>: command not found
cp: missing destination file operand after ‘<private_test_file>’
Try ‘cp --help’ for more information.
<private_file>: line 20: <sensitive_data>: command not found
cp: missing destination file operand after ‘<private_test_file>’
Try ‘cp --help’ for more information.
<private_file>: line 32: <sensitive_data>: command not found
timeout: failed to run command ‘<sensitive_data>’: No such file or directory
Can an admin help me determine what I need to add to my Dockerfile to avoid these strange obfuscated errors? This is submission 286388. Thank you!
2025-05-31 18:34:00.825
timeout: failed to run command 'python': No such file or directory
2025-05-31 18:34:00.825
timeout: failed to run command 'python': No such file or directory
2025-05-31 18:34:00.823
/aicrowd-source/run.sh: line 32: python: command not found
2025-05-31 18:34:00.823
/aicrowd-source/run.sh: line 32: python: command not found
2025-05-31 18:34:00.823
Try 'cp --help' for more information.
2025-05-31 18:34:00.823
Try 'cp --help' for more information.
2025-05-31 18:34:00.823
cp: missing destination file operand after 'search.py'
2025-05-31 18:34:00.823
cp: missing destination file operand after 'search.py'
2025-05-31 18:34:00.822
/aicrowd-source/run.sh: line 20: python: command not found
2025-05-31 18:34:00.822
/aicrowd-source/run.sh: line 20: python: command not found
2025-05-31 18:34:00.821
Try 'cp --help' for more information.
2025-05-31 18:34:00.821
Try 'cp --help' for more information.
2025-05-31 18:34:00.821
cp: missing destination file operand after 'image_api.py'
2025-05-31 18:34:00.821
cp: missing destination file operand after 'image_api.py'
2025-05-31 18:34:00.820
/aicrowd-source/run.sh: line 19: python: command not found
2025-05-31 18:34:00.820
/aicrowd-source/run.sh: line 19: python: command not found
These are the un-obfuscated errors.
1 Like
I think the issue could be due to we trying to use python
while your image contains only python3
.
@Chris_Deotte can you try adding this line to your Dockerfile
towards the end and see if it works?
RUN ln -s /usr/bin/python3 /usr/bin/python
1 Like
Yes, thank you. Linking python to python3 fixed that error.
1 Like