Skip to content

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

Merged
vstinner merged 1 commit into
python:3.15from
vstinner:codec_initregistry15
Jun 10, 2026
Merged

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

Conversation

@vstinner

@vstinner vstinner commented Jun 10, 2026

Copy link
Copy Markdown
Member

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)

…egistry() 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)
@vstinner vstinner added skip news needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 10, 2026
@vstinner vstinner merged commit 10f616c into python:3.15 Jun 10, 2026
61 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

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

cherry_picker 10f616cf3939f87605081d05c1913ba630046c54 3.14

@vstinner vstinner deleted the codec_initregistry15 branch June 10, 2026 20:03
@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 10f616cf3939f87605081d05c1913ba630046c54 3.13

vstinner added a commit to vstinner/cpython that referenced this pull request Jun 10, 2026
…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)
@bedevere-app

bedevere-app Bot commented Jun 10, 2026

Copy link
Copy Markdown

GH-151283 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 10, 2026
@vstinner vstinner 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
…c_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)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant