# Failing first stage in Build: Shell with Python

**URL:** <https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [May 8, 2026, 6:15pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098 "2026-05-08T18:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartik-Tatiparti](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kartik-tatiparti/32/25511_2.png) [@Kartik-Tatiparti](https://forum.codecrafters.io/u/Kartik-Tatiparti)\
**Post date:** [May 8, 2026, 6:15pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/1 "2026-05-08T18:15:17Z")

</div>

I’m stuck on Stage #008 (I’m not sure where I can get the code, scanned the page. This is the “print a prompt” stage in build:shell with python)

I’ve tried uncommenting the line and running the codecrafters submit command. However, the test still fails

Here are my logs:

```auto
[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

[tester::#OO8] Running tests for Stage #OO8 (Print a prompt)
[tester::#OO8] Running ./your_program.sh
[tester::#OO8] Expected prompt ("$ ") but received ""
[tester::#OO8] Test failed

NOTE: This failure is expected! Uncomment code in app/main.py.

View instructions: https://app.codecrafters.io/courses/shell/stages/oo8

```

And here’s a snippet of my code:

```python
import sys

def main():
    sys.stdout.write("$ ")
    pass

if __name__ == " __main__":
    main()

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 8, 2026, 6:54pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/3 "2026-05-08T18:54:13Z")

</div>

Hey @Kartik-Tatiparti, could you share a screenshot of how the code appears in your editor? That’ll help us debug this further.

---

<div class="post-metadata">

**Author:** ![Kartik-Tatiparti](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kartik-tatiparti/32/25511_2.png) [@Kartik-Tatiparti](https://forum.codecrafters.io/u/Kartik-Tatiparti)\
**Post date:** [May 9, 2026, 2:59pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/4 "2026-05-09T14:59:18Z")

</div>

Here’s the screenshot of the code in my editor -

 ![Screenshot 2026-05-09 at 8.28.52 PM](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/6/0/60e0572f068017b8cfab1871aac3f3bbfd7eae58.png)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 9, 2026, 7:15pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/5 "2026-05-09T19:15:03Z")

</div>

@Kartik-Tatiparti Thanks for sharing the screenshot! Looks like the changes in `main.py` are uncommitted:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/1/6/1633c11d432d6e0579fba7fb9f58e50d42163bf3.jpeg)

Could you try running:

```auto
git add .
git commit -m "save stage 1 changes"
git push

```

and check the ouutput?

---

<div class="post-metadata">

**Author:** ![Kartik-Tatiparti](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/kartik-tatiparti/32/25511_2.png) [@Kartik-Tatiparti](https://forum.codecrafters.io/u/Kartik-Tatiparti)\
**Post date:** [May 9, 2026, 7:47pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/6 "2026-05-09T19:47:48Z")

</div>

Thanks for looking into this! I tried the steps you outlined, however I got the output that there were no changes to add/commit. To be sure, I deleted the repo, cloned it again, made the change and ran the git add, commit and push commands. Now the test has run successfully. Thanks again for your time!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [May 14, 2026, 7:48pm UTC](https://forum.codecrafters.io/t/failing-first-stage-in-build-shell-with-python/16098/7 "2026-05-14T19:48:00Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
