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

Embedded Python 3.11 on windows warns about<exec_prefix> #98790

Closed
Assignees
zooba
Labels
3.11only security fixes3.12only security fixesOS-windowstype-bugAn unexpected behavior, bug, or error
@davidhewitt

Description

@davidhewitt

Bug report

On Windows, with Python 3.11, an embedded Python interpreter prints a new warning at startupCould not find platform dependent libraries <exec_prefix>.

3.10 and older versions do not exhibit this.

Sample program (I'm using Rust / PyO3 because it's what I know, however I'm fairly sure that it's not relevant to the repro. If you've got a recommended way to configure a windows C toolchain for building an embedded Python I'd be happy to demonstrate the same issue in C):

fnmain(){unsafe{         pyo3::ffi::Py_Initialize();dbg!(pyo3::ffi::Py_IsInitialized());}}

Running outputs:

Could not find platform dependent libraries <exec_prefix>[src\main.rs:4] pyo3::ffi::Py_IsInitialized() = 1

Execution then proceeds without issue. (We observe thisin PyO3's test suite, which passes all 3.11 tests despite emitting this warning.)

I have a couple of thoughts:

  • Documentation forexec_prefix suggests it is irrelevant on Windows. So is this warning actually useful?
  • I suspect this is because of the reimplementation ofgetpath into Python? (Rewrite getpath.c in Python #89745)

Your environment

  • CPython versions tested on: 3.11.0
  • Operating system and architecture: Windows x64

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixesOS-windowstype-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