(tar) Exporting gst-python Building project gst-python (1.26.2) The Meson build system…
- User
(tar) Exporting gst-python Building project gst-python (1.26.2) The Meson build system Version: 1.8.2 Source dir: C:\Windows\System32\build\build\x64\release\gst-python Build dir: C:\Windows\System32\build\build\x64\release\gst-python_gvsbuild-meson Build type: native build Project name: gst-python Project version: 1.26.2 C compiler for the host machine: cl (msvc 19.44.35211 "��⨬������騩 ��������� Microsoft (R) C/C++ ���ᨨ 19.44.35211 ��� x64") C linker for the host machine: link link 14.44.35211.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: YES (C:\Windows\System32\build\gtk\x64\release\bin\pkg-config.EXE) 2.4.3 Run-time dependency gstreamer-1.0 found: YES 1.26.2 Run-time dependency gstreamer-base-1.0 found: YES 1.26.2 Run-time dependency gstreamer-analytics-1.0 found: YES 1.26.2 Run-time dependency gmodule-no-export-2.0 found: YES 2.84.3 Library dl found: NO Run-time dependency pygobject-3.0 found: YES 3.52.3 Program python3 found: NO
meson.build:30:15: ERROR: python3 not found
A full log can be found at C:\Windows\System32\build\build\x64\release\gst-python_gvsbuild-meson\meson-logs\meson-log.txt Traceback (most recent call last): File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\builder.py", line 555, in build if self.__build_one(p): ~~~~~~~~~~~~~~~~^^^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\builder.py", line 686, in __build_one skip_deps = proj.build() File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\projects\gstreamer.py", line 268, in build Meson.build(self) ~~~~~~~~~~~^^^^^^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\base_builders.py", line 47, in build self._setup_meson_and_ninja(ninja_build, meson_params, add_path) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\base_builders.py", line 82, in _setup_meson_and_ninja self.exec_vs(cmd, add_path=add_path) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\base_project.py", line 194, in exec_vs self.builder.exec_vs( ~~~~~~~~~~~~~~~~~~~~^ cmd, working_dir=self._get_working_dir(), add_path=add_path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\builder.py", line 939, in exec_vs self.__execute( ~~~~~~~~~~~~~~^ self.__sub_vars(cmd), ^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... env=self.vs_env, ^^^^^^^^^^^^^^^^ ) ^ File "I:\Lada\venv_gvsbuild\Lib\site-packages\gvsbuild\utils\builder.py", line 1043, in __execute subprocess.check_call(args, cwd=working_dir, env=env, shell=True) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\Lada\python-portable\Lib\subprocess.py", line 419, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'I:\Lada\venv_gvsbuild\Scripts\python.exe C:\Windows\System32\build\tools\meson-1.8.2\meson.py setup C:\Windows\System32\build\build\x64\release\gst-python C:\Windows\System32\build\build\x64\release\gst-python_gvsbuild-meson --prefix C:\Windows\System32\build\gtk\x64\release --buildtype release' returned non-zero exit status 1. Error: gst-python build failed I:\install_lada_portable.ps1 : Installation failed: Не удается преобразовать "System.Object[]" в тип "System.String", н еобходимый для параметра "ChildPath". Указанный метод не поддерживается. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,install_lada_portable.ps1
- Assistant
- Assistant
It looks like Meson can’t find a
python3executable during the gst-python build on Windows. On Windows, the Python executable is usually namedpython.exe, but Meson expectspython3.To fix this:
-
Create a
python3shim inside your virtual environmentOpen an Administrator PowerShell and run:
cd I:\Lada\venv_gvsbuild\Scripts cmd /c mklink python3.exe python.exeThis creates a
python3.exesymlink pointing topython.exe. -
(Alternative) Create a
python3.batshimIn
I:\Lada\venv_gvsbuild\Scripts, create a file namedpython3.batwith:@echo off python %* -
Make sure
I:\Lada\venv_gvsbuild\Scriptsis on your PATHIn your PowerShell session before building:
-
- User
yes
- Assistant
Great! Here are step-by-step instructions to create the
python3shim and fix your build environment so Meson can findpython3:
Step 1: Open an Administrator PowerShell
- Press Start, type
powershell. - Right-click Windows PowerShell and choose Run as administrator.
Step 2: Create a symlink for python3.exe inside your virtual environment
Run these commands:
cd I:\Lada\venv_gvsbuild\Scripts cmd /c mklink python3.exe python.exe - Press Start, type