-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CMake+Vcpkg] Could NOT find Python (missing: Python_LIBRARIES Development Development.Module Development.Embed) (found version "3.11.8") #3405
Comments
I don't believe the vcpkg build supports Python out of the box. You'd likely need to provide the Python variables to CMake as well so it knows what Python executable to run. I'm just copying from the other issue so you'd need to change these values to what you have on your system.
|
Thanks for the suggestion, couple of follow ups -
|
On further investigation - I am getting python3 from vcpkg as well, I don't explicitly use the system python. I checked for some CMake variables, and they all seem to be set. config-x64-windows-vs2022-rel-CMakeCache.txt.log -
|
We generally build with a python install that's outside of the vcpkg setup, i.e., c:\path\to\my\python, and invoke build_usd.py with that. @pmolodo and @tylerm-nv might know more. |
Filed as internal issue #USD-10409 |
IIRC, we invoke build_usd.py with it, AND pass the various python cmake vars. (I think we first tried just invoking build_usd.py, but still ran into some issues with some interpreters, like those installed via venv. Both may not be required for most use cases... or even for our common use cases. But it also doesn't hurt...) |
Thanks @pmolodo -- when you get a chance, can you copy/paste the build_usd.py and cmake command lines that get generated by our internal usd-ci? |
I think I might have found the reason for the issue. I am getting python 3.11 from vcpkg, but the system was pre-installed with python 3.12 which seems to be having conflicting environment variables. I was able to solve the issue in two ways -
Thanks to all for looking into this issue, but this doesn't seem to be a USD+Python issue. Though it would be nice to have an override parameter that can explicitly look for python to build for USD - in this case to look into the vcpkg python. |
Both the CMake and the build_usd.py allow for passing in information on how to find Python. I'm not sure who maintains the vcpkg package though or how vcpkg exposes overrides. |
That would be nice to have for vcpkg, the only options I see are -
The problem is that to build USD Tools->Python and I don't see anywhere we can set it explicitly. |
Description of Issue
Facing issue when building USD with Python tools on Windows 10, the same build seems to pass through on Windows 11. Getting USD through Vcpkg and building it using CMake for C++ project.
config-x64-windows-vs2022-out.log
vcpkg command log -
Steps to Reproduce
System Information (OS, Hardware)
OS - Windows 10, x64, MINGW
Package Versions
vcpkg package management program version 2024-08-01-fd884a0d390d12783076341bd43d77c3a6a15658
Cmake - 3.29.2
Triplet x64-windows-vs2022...
Compiler found - 14.36.32532/bin/Hostx64/x64/cl.exe
USD version - usd:[email protected]#5
Build Flags
-DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON and -DPXR_BUILD_USD_TOOLS:BOOL=ON
The text was updated successfully, but these errors were encountered: