I’m stuck on Stage #QJ0 (Executing a quoted executable).
Given that my code passes the previous stages, I thought the previously implemented argument parsing should make this stage pass. However, it doesn’t and I am finding this difficult to debug.
Nothing prints to stdout when running 'exe with space' <file>
so I tried printing stderr:
exe with space: applet not found
Not sure what exactly that means - maybe the executable is not found? so I tried using Python’s os.listdir
at the executable’s path and I can see the executables and text files are all present.
But trying to run file <executablePath>
to understand the executable with Python’s subprocess.run
fails and I only get the first line of the Traceback:
Traceback (most recent call last):
I am assuming the tester only waits for the first line of stdout and then fails the test when it not expected - but this means I am unable to debug the issue causing the traceback since the first line doesn’t help much.