Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exception in ucs2lib_utf8_encoder in _bootstrap_python #94526

Closed
Labels
3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@pgy

Description

@pgy

Bug report

I am building python in a directory that has non-ascii name on linux and get the following error:

./_bootstrap_python ./Programs/_freeze_module.py abc ./Lib/abc.py Python/frozen_modules/abc.hException ignored error evaluating path:Traceback (most recent call last):  File "<frozen getpath>", line 349, in <module>ModuleNotFoundError: No module named 'encodings'Fatal Python error: error evaluating pathPython runtime state: core initializedCurrent thread 0x00007f16d6c10740 (most recent call first):  <no Python frame>make: *** [Makefile:1218: Python/frozen_modules/abc.h] Error 1

The problem seems to be that the limited environment used to execute the precompiledModules/getpath.py does not have theencodings module.

I tracked the exception to aPyImport_ImportModule("encodings"); call inPython/codecs.c which is a consequence of aPyCodec_LookupError that happens inucs2lib_utf8_encoder which I think gets called ingetpath_dirname.

The original string is/home/pgy/letöltések/cpython/_bootstrap_python, and the unicode objectucs2lib_utf8_encoder gets as an argument is:

(rr) p PyObject_Print(unicode, stderr, 0)'/home/pgy/let\udcc3\udcb6lt\udcc3\udca9sek/cpython/_bootstrap_python'

Your environment

  • CPython versions tested on:7db1d2e
  • Operating system and architecture:Linux hostname 5.15.44-1-lts #1 SMP Mon, 30 May 2022 13:45:47 +0000 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp