Python build error (msys2, CMake, Win 11) #315
-
I'm attempting to build mrv2 as GPL (clone of [200/265] Performing build step for 'Python'
FAILED: deps/Python/src/Python-stamp/Python-build C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-stamp/Python-build
C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microsoft\WindowsApps|C:\Users\kenobi8\AppData\Local\GitHubDesktop\bin|C:\Users\kenobi8\.dotnet\tools|C:\msys64\ucrt64\bin|C:\Program Files\JetBrains\JetBrains Rider 2024.2.6\bin|C:\Users\kenobi8\AppData\Local\JetBrains\Toolbox\scripts|C:\Users\kenobi8\.dotnet\tools|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe|C:\msys64\usr\bin\site_perl|C:\msys64\usr\bin\vendor_perl|C:\msys64\usr\bin\core_perl" -DCMAKE_INSTALL_PREFIX=C:/mrv2-main/BUILD-Msys-amd64/Release/install -P C:/mrv2-main/cmake/build_python_windows.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-stamp/Python-build"
-- Python_COMMAND=build
-- CMAKE_INSTALL_PREFIX=C:/mrv2-main/BUILD-Msys-amd64/Release/install
-- Running: PCbuild\build.bat;-q;-p;x64;--pgo in C:/mrv2-main/BUILD-Msys-amd64/Release/install/../deps/Python/src/Python...
Downloading nuget...
Installing Python via nuget...
Feeds used:
Installing package 'pythonx86' to 'C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python\externals'.
Unable to find package 'pythonx86'
Fetching external libraries... The build stops a short bit later with Here is a filtered list of all mentions of "python" in my Search "python" (68 hits in 1 file of 1 searched) [Normal]
C:\mrv2-main\BUILD-Msys-amd64\Release\compile.log (68 hits)
Line 16: Build Python........................ ON (BUILD_PYTHON)
Line 17: Python FUTURE location: /c/mrv2-main/BUILD-Msys-amd64/Release/install/bin/python.exe
Line 20: Build embedded Python............... ON (MRV2_PYBIND11)
Line 5881: > cmake -G 'Ninja' -D CMAKE_BUILD_TYPE=Release -D CMAKE_VERBOSE_MAKEFILE=OFF -D CMAKE_INSTALL_PREFIX=/c/mrv2-main/BUILD-Msys-amd64/Release/install -D CMAKE_PREFIX_PATH=/c/mrv2-main/BUILD-Msys-amd64/Release/install -D CMAKE_OSX_ARCHITECTURES= -D CMAKE_OSX_DEPLOYMENT_TARGET=11.0 -D BUILD_PYTHON=ON -D BUILD_X11=ON -D BUILD_WAYLAND=ON -D MRV2_NETWORK=ON -D MRV2_PYFLTK=ON -D MRV2_PYBIND11=ON -D MRV2_PDF=ON -D FLTK_BUILD_SHARED=ON -D TLRENDER_ASAN=OFF -D TLRENDER_AV1=ON -D TLRENDER_EXR=ON -D TLRENDER_FFMPEG=ON -D TLRENDER_FFMPEG_MINIMAL=ON -D TLRENDER_HAP=ON -D TLRENDER_JPEG=ON -D TLRENDER_NDI= -D TLRENDER_NDI_SDK="C:/Program Files/NDI/NDI 6 SDK/" -D TLRENDER_NET=ON -D TLRENDER_NFD=OFF -D TLRENDER_RAW=ON -D TLRENDER_STB=ON -D TLRENDER_TIFF=ON -D TLRENDER_USD=ON -D TLRENDER_VPX=ON -D TLRENDER_WAYLAND=ON -D TLRENDER_X11=ON -D TLRENDER_X264=ON -D TLRENDER_YASM=ON -D TLRENDER_PROGRAMS=OFF -D TLRENDER_EXAMPLES=FALSE -D TLRENDER_TESTS=FALSE -D TLRENDER_USD_PYTHON=/c/mrv2-main/BUILD-Msys-amd64/Release/install/bin/python.exe -D TLRENDER_QT6=OFF -D TLRENDER_QT5=OFF ../..
Line 5925: [2/265] Creating directories for 'Python'
Line 6013: [44/265] Performing download step (download, verify and extract) for 'Python'
Line 6015: dst='C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-3.11.9.tar.xz'
Line 6018: -- Using src='https://www.python.org/ftp/python/3.11.9/Python-3.11.9.tar.xz'
Line 6122: src='C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-3.11.9.tar.xz'
Line 6123: dst='C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python'
Line 6129: [45/265] No update step for 'Python'
Line 6130: [46/265] Performing patch step for 'Python'
Line 6131: [47/265] No configure step for 'Python'
Line 8837: -- Install Python bindings: OFF
Line 11150: [200/265] Performing build step for 'Python'
Line 11151: FAILED: deps/Python/src/Python-stamp/Python-build C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-stamp/Python-build
Line 11152: C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microso ...
Line 11152: C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microso ...
Line 11152: C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microso ...
Line 11152: C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microso ...
Line 11152: C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\mrv2-v1.2.8\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microso ...
Line 11153: -- Python_COMMAND=build
Line 11155: -- Running: PCbuild\build.bat;-q;-p;x64;--pgo in C:/mrv2-main/BUILD-Msys-amd64/Release/install/../deps/Python/src/Python...
Line 11157: Installing Python via nuget...
Line 11160: Installing package 'pythonx86' to 'C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python\externals'.
Line 11161: Unable to find package 'pythonx86'
Line 11164: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/bzip2-1.0.8'...
Line 11183: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/sqlite-3.45.1.0'...
Line 11202: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/xz-5.2.5'...
Line 11321: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/zlib-1.3.1'...
Line 11341: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/libffi-3.4.4'...
Line 11360: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/openssl-bin-3.0.13'...
Line 11450: Cloning into '/c/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python/externals/tcltk-8.6.12.1'...
Line 11544: Installing Python via nuget...
Line 11550: Installing package 'pythonx86' to 'C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python\externals'.
Line 11552: Unable to find package 'pythonx86'
Line 11554: Cannot locate python.exe on PATH or as PYTHON variable
Line 11556: CMake Error at C:/mrv2-main/cmake/build_python_windows.cmake:34 (execute_process): I tried adding a system env variable Here's my complete log: compile.log |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
I am not familiar with nuget. But in general to build python on Windows, you should download a version of python for Windows from the official web page not from nuget or from Msys' pacman. You don't need it in your PATH I believe, as the installer will use py.exe and that will select the latest version of python. Anyway, in any case, in an MSys window, check:
I should probably add to the build instructions for Windows that you may need some python version already installed. Anyway, let me know if that helps. |
Beta Was this translation helpful? Give feedback.
-
Ok, after uninstalling mrv2-1.2.8 and the Microsoft Store version of Python, I downloaded the standalone Python 3.13 installer directly, installed for all users and added it to PATH. After a restart, MSYS gives me these results: $ which python
/c/Program Files/Python313/python
$ which py
/c/Windows/py Much better. That'll teach me to use MS Store to manage dev environment tools! Trying to recompile mrv2 as GPL now. If I don't report back, that'll mean my issue is resolved. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Ok, got the same failure interestingly... [181/265] Performing build step for 'Python'
FAILED: deps/Python/src/Python-stamp/Python-build C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-stamp/Python-build
C:\Windows\system32\cmd.exe /C "cd /D C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python && "C:\Program Files\CMake\bin\cmake.exe" -D Python_COMMAND=build -D Python_PLATFORM=x64 "-DPATH=C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin|C:\mrv2-main\BUILD-Msys-amd64\Release\install\bin\Scripts|C:\msys64\usr\local\bin|C:\msys64\usr\bin|C:\msys64\usr\bin|C:\msys64\opt\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX64\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\VCPackages|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\Roslyn|C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\Microsoft\CodeCoverage.Console|C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64|C:\Program Files (x86)\Windows Kits\10\bin\x64|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64|C:\Windows\Microsoft.NET\Framework64\v4.0.30319|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools|C:\Program Files\dotnet|C:\Program Files\Python313\Scripts|C:\Program Files\Python313|C:\Windows\system32|C:\Windows|C:\Windows\System32\Wbem|C:\Windows\System32\WindowsPowerShell\v1.0|C:\Windows\System32\OpenSSH|C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common|C:\Program Files\Mullvad VPN\resources|C:\Program Files\Git\cmd|C:\Program Files\PowerShell\7|D:\Perforce|C:\Program Files\Perforce|C:\Program Files\Perforce\Server|C:\Program Files\dotnet|C:\Program Files\doxygen\bin|C:\Program Files\Graphviz\bin|C:\Program Files\Meson|C:\Program Files\CMake\bin|C:\Users\kenobi8\AppData\Local\Microsoft\WindowsApps|C:\Users\kenobi8\AppData\Local\GitHubDesktop\bin|C:\Users\kenobi8\.dotnet\tools|C:\msys64\ucrt64\bin|C:\Program Files\JetBrains\JetBrains Rider 2024.2.6\bin|C:\Users\kenobi8\AppData\Local\JetBrains\Toolbox\scripts|C:\Users\kenobi8\.dotnet\tools|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja|C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\VC\Linux\bin\ConnectionManagerExe|C:\msys64\usr\bin\site_perl|C:\msys64\usr\bin\vendor_perl|C:\msys64\usr\bin\core_perl" -DCMAKE_INSTALL_PREFIX=C:/mrv2-main/BUILD-Msys-amd64/Release/install -P C:/mrv2-main/cmake/build_python_windows.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/mrv2-main/BUILD-Msys-amd64/Release/deps/Python/src/Python-stamp/Python-build"
-- Python_COMMAND=build
-- CMAKE_INSTALL_PREFIX=C:/mrv2-main/BUILD-Msys-amd64/Release/install
-- Running: PCbuild\build.bat;-q;-p;x64;--pgo in C:/mrv2-main/BUILD-Msys-amd64/Release/install/../deps/Python/src/Python...
Downloading nuget...
Installing Python via nuget...
Feeds used:
Installing package 'pythonx86' to 'C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python\externals'.
Unable to find package 'pythonx86'
.....
Using "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe" (found in the PATH)
Installing Python via nuget...
Feeds used:
Installing package 'pythonx86' to 'C:\mrv2-main\BUILD-Msys-amd64\Release\deps\Python\src\Python\externals'.
Unable to find package 'pythonx86'
Cannot locate python.exe on PATH or as PYTHON variable
CMake Error at C:/mrv2-main/cmake/build_python_windows.cmake:34 (execute_process):
execute_process failed command indexes:
1: "Child return code: 3"
.....
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_FLAGS
CMAKE_POLICY_DEFAULT_CMP0091
-- Build files have been written to: C:/mrv2-main/BUILD-Msys-amd64/Release/tlRender/etc/SuperBuild/CURL/src/CURL-build
ninja: build stopped: subcommand failed. |
Beta Was this translation helpful? Give feedback.
-
The problem seems to be with the nuget's python installer that does not exist. Please download and install python (>3.9) from the official repository at: https://www.python.org/downloads/ Then start the MSys2 terminal again. BTW, you don't need to add this downloaded python to the directory. If you want to use it, you would call py.exe instead of python.exe. |
Beta Was this translation helpful? Give feedback.
-
If that still does not work, to debug it, try: cd BUILD-MSys-amd64/Release/deps/Python/src/Python In PCbuild/, there's build.bat and find_python.bat. Try adding some echo commands to print out the variables in both build.bat and find_python.bat and manually run: PCbuild/build.bat |
Beta Was this translation helpful? Give feedback.
-
Okay, I found the issue. The find_python.bat script looks for python versions only up to 3.10 (it has not been updated) and it has the nuget approach completely broken. I had installed v3.10 myself in my machine and that's why it was working for me. In any case, do:
Give it a try as it works for me now. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I've run into another issue, seems to involve a failure to compile a class for USD build step: [220/3282] Copying ilmbase_halfLimits.h ...
[221/3282] Building CXX object pxr\base\arch\CMakeFiles\arch.dir\pch.cpp.obj
FAILED: pxr/base/arch/CMakeFiles/arch.dir/pch.cpp.obj
C:\PROGRA~2\MICROS~2\2022\BUILDT~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe /nologo /TP -DARCH_EXPORTS=1 -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_PYTHON_NO_PY_SIGNATURES -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DMFB_ALT_PACKAGE_NAME=arch -DMFB_PACKAGE_MODULE=Arch -DMFB_PACKAGE_NAME=arch -DNOMINMAX -DOPENEXR_DLL -DPXR_BUILD_LOCATION=usd -DPXR_GL_SUPPORT_ENABLED -DPXR_MATERIALX_SUPPORT_ENABLED -DPXR_PLUGIN_BUILD_LOCATION=../plugin/usd -DWIN32_LEAN_AND_MEAN -DYY_NO_UNISTD_H -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -Darch_EXPORTS -IC:\mrv2-main\BUILD-Msys-amd64\Release\install\build\USD\include /EHsc /Zc:rvalueCast /Zc:strictStrings /Zc:inline- /W3 /bigobj /Zi /MP /Gm- /wd4003 /wd4244 /wd4305 /wd4267 /wd4506 /wd4091 /wd4273 /wd4180 /wd4334 /Zm150 /MD /O2 /Ob2 /DNDEBUG -std:c++17 /Yc"pxr/base/arch/pch.h" /FI"pxr/base/arch/pch.h" /Fp"C:/mrv2-main/BUILD-Msys-amd64/Release/install/build/USD/include/pxr/base/arch/Release/pch.pch" /showIncludes /Fopxr\base\arch\CMakeFiles\arch.dir\pch.cpp.obj /Fdpxr\base\arch\CMakeFiles\arch.dir\ /FS -c C:\mrv2-main\BUILD-Msys-amd64\Release\install\build\USD\pxr\base\arch\pch.cpp
c1xx: fatal error C1083: Cannot open compiler intermediate file: 'C:/mrv2-main/BUILD-Msys-amd64/Release/install/build/USD/include/pxr/base/arch/Release/pch.pch': No such file or directory
[...]
ninja: build stopped: subcommand failed.
ERROR: Failed to run 'cmake --build . --config Release --target install -- -j32' in C:\mrv2-main\BUILD-Msys-amd64\Release\install\build\USD. I checked the intermediate file dir referenced above and |
Beta Was this translation helpful? Give feedback.
-
Try pulling main (or tag v1.2.9) and compile again. I fixed the USD build with a patch (Pixar inadvertently broke the compilation on Windows) |
Beta Was this translation helpful? Give feedback.
Okay, I found the issue. The find_python.bat script looks for python versions only up to 3.10 (it has not been updated) and it has the nuget approach completely broken. I had installed v3.10 myself in my machine and that's why it was working for me.
In any case, do:
Give it a try as it works for me now.