Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

run.py: Python solutions are skipped on Windows when run via python instead of python3

オープン
#29 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@tanujb03 がすでに取り組んでいます。

2026年10月10日 から。

  • #32 @tanujb03 による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

The bug is in run.py, where LANGUAGES[".py"] hardcodes "python3" as the interpreter, so Python solutions are skipped on Windows when only python exists. Check whether the runner can use sys.executable for the .py entry instead, then run python run.py --lang py on Windows and confirm the six solution.py and solution_naive.py files execute and are checked against cases.txt. Pull request #32 already targets this, so review it before starting new work.

索引モデルが issue の本文から書いたものです。

説明

bug good first issue

What I did

  1. Fresh checkout of main on Windows 11 with Python installed via the standard python.org Windows installer (providing python.exe on PATH, with no python3.exe symlink/binary).
  2. Run the solution check using the command specified in the README:
python run.py --lang py

What I expected
The README section "Running the checks" says:

"It needs Python 3. On Windows the command is python. Solutions in languages you don't have installed are skipped."

Because Python 3 is installed and running run.py, the 6 Python solutions (solution.py across problems) should be executed and checked against cases.txt.

What happened instead
Every Python solution is skipped because run.py looks specifically for python3:

anagram
binary-search
  skip  solution.py (python3 isn't installed)
fibonacci
  skip  solution.py (python3 isn't installed)
  skip  solution_naive.py (python3 isn't installed)
palindrome
  skip  solution.py (python3 isn't installed)
prime
  skip  solution.py (python3 isn't installed)
roman-numerals
  skip  solution.py (python3 isn't installed)

Summary: 0 passed, 0 failed, 6 skipped

The runner exits 0, skipping all Python checks even though Python 3 is actively executing the runner. On Windows machines with Microsoft Store app aliases enabled, shutil.which('python3') resolves to the WindowsApps stub, which errors out with "Python was not found", causing every Python solution to fail spuriously.

In run.py, LANGUAGES[".py"] hardcodes "python3":

".py": ("python3", None, ["python3", "{src}"])

Instead, using sys.executable ensures the runner launches solutions with the same Python 3 interpreter currently executing run.py.

Environment
Windows 11, Python 3.14 (python.exe), code-corner main @ 0c95800.

I would like to work on this fix.

主要言語
Python
スター
1
フォーク
6
平均マージ
17時間 52分
マージ済み PR(30日)
14

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

techcsispit/code-corner のほかの issue

techcsispit/code-corner の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。