python / python/cpython

test_python_executable failure on macOS 12.7.5

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

まだ誰も着手していません。

OS-mac tests
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Test added in #120006 fails when running in my private buildbots.

Since it passed in CI, I suspect this means it was relying on the machine configuration or the presence of the source tree to get through the tests. The CI machine was running macOS-13.6.7-x86_64-i386-64bit-Mach-O and mine is macOS-12.7.5-x86_64-i386-64bit-Mach-O.

Mine also applies some install_name_tool modifications to the binaries and deploys them to a new machine before running tests, but given every other test passes and the failure here is to locate a Python module rather than a native one, I have to assume that's not impactful.

stderr:
---
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000000115121600 (most recent call first):
  <no Python frame>
---

I'm not in a position to test or debug, unfortunately. I see that Ned proposed to deprecate this variable entirely in #91057, so I wonder how badly we need this test?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

#120006 で追加された test_python_executable テストから始め、報告書に記載された macOS 12.7.5 ビルドで再現してください。報告されている deployment と install_name_tool の違いを含め、その動作を macOS 13.6.7 の CI 環境と比較してください。encodings モジュールが見つからない原因を特定し、テストまたはその前提を変更する必要があるかどうかを明らかにできれば完了です。

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

評価

技術スタック
macos, python
領域
operating-systems, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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