# Bash failing, no subprocess.run() error

**URL:** <https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918>\
**Category:** Challenges\
**Tags:** challenge:claude-code\
**Created:** [February 18, 2026, 10:24pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918 "2026-02-18T22:24:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristoBeers](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/christobeers/32/23348_2.png) [@ChristoBeers](https://forum.codecrafters.io/u/ChristoBeers)\
**Post date:** [February 18, 2026, 10:24pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/1 "2026-02-18T22:24:26Z")

</div>

I’m having trouble getting Bash to work in the claude code challenge step #0Q5, on python.

First I tried the command suggested in the instructions:

result = subprocess.run(command, capture\_output=True, text=True)

but got an error: module ‘asyncio.subprocess’ has no attribute ‘run’.

Googling suggested this is a python 3.7 vs \<=3.6 issue?

So to be 3.6-compatible, I went with loop=asyncio.get\_event\_loop(), but got this error: There is no current event loop in thread ‘MainThread’.

Then I updated to new\_event\_loop(), but codecrafters has been “running tests” for 10-15 minutes now… and I think it may be frozen and I’m not sure how to force-close?

Thanks!

---

<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:** [February 19, 2026, 2:14am UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/2 "2026-02-19T02:14:14Z")

</div>

Hey @ChristoBeers, could you [upload your code to GitHub](https://docs.codecrafters.io/features/publish-to-github) and share the link? It will be much easier to debug if I can run it directly.

---

<div class="post-metadata">

**Author:** ![ChristoBeers](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/christobeers/32/23348_2.png) [@ChristoBeers](https://forum.codecrafters.io/u/ChristoBeers)\
**Post date:** [February 19, 2026, 5:43pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/4 "2026-02-19T17:43:36Z")

</div>

Thanks Andy, my trial period ended so I’m pivoting to build my actual project. It was fun working on the challenge too bad I didnt get to finish it.

---

<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:** [February 19, 2026, 7:22pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/5 "2026-02-19T19:22:07Z")

</div>

@ChristoBeers Would you mind clarifying what you mean by “trial period”? The Claude Code challenge is currently still in beta, so it’s available to try for free.

---

<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:** [February 25, 2026, 1:13pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/7 "2026-02-25T13:13:36Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<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:** [March 2, 2026, 1:14pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918/8 "2026-03-02T13:14:08Z")

</div>

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