Skip to content

[3.14][3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269)#151283

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:codec_initregistry14
Jun 10, 2026
Merged

[3.14][3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269)#151283
vstinner merged 1 commit into
python:3.14from
vstinner:codec_initregistry14

Conversation

@vstinner

Copy link
Copy Markdown
Member

gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250)

If "import encodings" fails at Python startup, dump the Python path configuration to help users debugging their configuration. The encodings module is the first module imported during Python startup.

(cherry picked from commit 7b6e989) (cherry picked from commit 10f616c)

…c_InitRegistry() failure (python#151250) (python#151269)

pythongh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (python#151250)

If "import encodings" fails at Python startup, dump the Python path
configuration to help users debugging their configuration. The
encodings module is the first module imported during Python startup.

(cherry picked from commit 7b6e989)
(cherry picked from commit 10f616c)
@vstinner vstinner added needs backport to 3.13 bugs and security fixes and removed skip news labels Jun 10, 2026
@vstinner vstinner enabled auto-merge (squash) June 10, 2026 20:06
@vstinner vstinner merged commit b3a7758 into python:3.14 Jun 10, 2026
55 checks passed
@vstinner vstinner deleted the codec_initregistry14 branch June 10, 2026 20:31
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker b3a7758d8a6333501fd60c052a40ae5c958e3d14 3.13

@bedevere-app

bedevere-app Bot commented Jun 10, 2026

Copy link
Copy Markdown

GH-151287 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 10, 2026
vstinner added a commit that referenced this pull request Jun 10, 2026
…Registry() failure (#151250) (#151269) (#151283) (#151287)

[3.14][3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269) (#151283)

[3.15] gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250) (#151269)

gh-151253: Dump the Python path configuration on _PyCodec_InitRegistry() failure (#151250)

If "import encodings" fails at Python startup, dump the Python path
configuration to help users debugging their configuration. The
encodings module is the first module imported during Python startup.

(cherry picked from commit 7b6e989)
(cherry picked from commit 10f616c)
(cherry picked from commit b3a7758)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant