You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, with Python 3.11, an embedded Python interpreter prints a new warning at startup Could 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):
Bug report
On Windows, with Python 3.11, an embedded Python interpreter prints a new warning at startup
Could 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):
Running outputs:
Execution then proceeds without issue. (We observe this in PyO3's test suite, which passes all 3.11 tests despite emitting this warning.)
I have a couple of thoughts:
exec_prefixsuggests it is irrelevant on Windows. So is this warning actually useful?getpathinto Python? (Rewrite getpath.c in Python #89745)Your environment