r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.8k stars 555 forks source link

Do you have plans to support Python 3.13 #1536

Open itmeicn opened 5 days ago

itmeicn commented 5 days ago

Specification

Description

pip install pywebview: Error:

Building wheel for proxy-tools (pyproject.toml) ... done Created wheel for proxy-tools: filename=proxy_tools-0.1.0-py3-none-any.whl size=2909 sha256=9e42f8a837fe0ba1c3546db5e5fc21d905188900faa7b53d7c639e3d7d2b2f40
Stored in directory: c:\users\ghc\appdata\local\pip\cache\wheels\7a\0e\b0\718ab16be13deaa5b23b1008c9b7b68d560e1c2f6f297bedf5 Building wheel for pythonnet (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pythonnet (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [146 lines of output]

:468: SyntaxWarning: invalid escape sequence '\*' :533: SyntaxWarning: invalid escape sequence '\*' running bdist_wheel running build running build_ext 正在检查来自 https://www.nuget.org/api/v2/ 的更新。 当前正在运行 NuGet.exe 4.1.0。 正在将 NuGet.exe 更新到 6.12.1。 更新成功。 找不到指定版本的 msbuild:“14” MSBuild 自动检测: 使用来自 "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" 的 msbuild 版本 "4.0"。 C:\Users\ghc\AppData\Local\Temp\NuGetScratch\utwcqxyw.dnn.nugetrestore.targets(131,23): error MSB4066: 无法识别元素 中的特性“Version”。 [C:\Users\ghc\AppData\Local\Temp\NuGetScratch\0yublmip.xbv.nugetinputs.targets] 警告: 读取 msbuild 项目信息时出错,请确保输入解决方案或项目文件有效。将跳过 NETCore 和 UAP 项目,仅还原 packages.config 文件。 Restoring NuGet package NUnit.ConsoleRunner.3.11.1. Restoring NuGet package System.ValueTuple.4.5.0. Restoring NuGet package UnmanagedExports.1.2.7. Restoring NuGet package NUnit.3.12.0. GET https://api.nuget.org/v3-flatcontainer/nunit.consolerunner/3.11.1/nunit.consolerunner.3.11.1.nupkg GET https://api.nuget.org/v3-flatcontainer/system.valuetuple/4.5.0/system.valuetuple.4.5.0.nupkg GET https://api.nuget.org/v3-flatcontainer/unmanagedexports/1.2.7/unmanagedexports.1.2.7.nupkg GET https://api.nuget.org/v3-flatcontainer/nunit/3.12.0/nunit.3.12.0.nupkg OK https://api.nuget.org/v3-flatcontainer/nunit.consolerunner/3.11.1/nunit.consolerunner.3.11.1.nupkg 197ms OK https://api.nuget.org/v3-flatcontainer/nunit/3.12.0/nunit.3.12.0.nupkg 546ms OK https://api.nuget.org/v3-flatcontainer/system.valuetuple/4.5.0/system.valuetuple.4.5.0.nupkg 554ms OK https://api.nuget.org/v3-flatcontainer/unmanagedexports/1.2.7/unmanagedexports.1.2.7.nupkg 566ms Installed System.ValueTuple 4.5.0 from https://api.nuget.org/v3/index.json to C:\Users\ghc\.nuget\packages\system.valuetuple\4.5.0 with content hash okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==. Adding package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Added package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Installed UnmanagedExports 1.2.7 from https://api.nuget.org/v3/index.json to C:\Users\ghc\.nuget\packages\unmanagedexports\1.2.7 with content hash bPIbzFaAj4AFxjHGFGPrYnUSCyIWJMkT/LFuiphWdpUbO2L9fP68W/1SP9cHCAxgiekV+kFNbybA2VvRo8PYIQ==. Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Installed NUnit.ConsoleRunner 3.11.1 from https://api.nuget.org/v3/index.json to C:\Users\ghc\.nuget\packages\nunit.consolerunner\3.11.1 with content hash JONNeR6DlUMup+s9qTFxzdncsDlAtLbq45Cj6NiJJ8r3PzxOf93AviJ7jc0kFNQK9m7oSV5C/uR29KnePhm0BQ==. Adding package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Added package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Installed NUnit 3.12.0 from https://api.nuget.org/v3/index.json to C:\Users\ghc\.nuget\packages\nunit\3.12.0 with content hash 3oJTrcUcT9wmweBUwgUf0f1XIYy6RZq2ziV+RM95HMKAJGsHPN2i3MKK1dAPvDPMRLz799Llj4eyu/STB9Q7OA==. Adding package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' Added package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\packages' GET https://api.nuget.org/v3/vulnerabilities/index.json OK https://api.nuget.org/v3/vulnerabilities/index.json 255ms GET https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json GET https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json OK https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json 169ms OK https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json 264ms 使用的 NuGet 配置文件: C:\Users\ghc\AppData\Roaming\NuGet\NuGet.Config 使用的源: https://api.nuget.org/v3/index.json 已安装: packages.config projects 的 4 包 Traceback (most recent call last): File "C:\Users\ghc\AppData\Local\Temp\pip-install-wemigku_\pythonnet_5db253de1d0343f0a5075c08fd2458ee\tools\geninterop\geninterop.py", line 29, in from pycparser import c_ast, c_parser ModuleNotFoundError: No module named 'pycparser' Traceback (most recent call last): File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in main() ~~~~^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ metadata_directory) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\build_meta.py", line 438, in build_wheel return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)]) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\build_meta.py", line 426, in _build return self._build_with_temp_dir( ~~~~~~~~~~~~~~~~~~~~~~~~~^ cmd, ^^^^ ...<3 lines>... self._arbitrary_args(config_settings), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\build_meta.py", line 407, in _build_with_temp_dir self.run_setup() ~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "", line 630, in File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\__init__.py", line 117, in setup return distutils.core.setup(**attrs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup return run_commands(dist) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands dist.run_commands() ~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands self.run_command(cmd) ~~~~~~~~~~~~~~~~^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "", line 612, in run File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\command\bdist_wheel.py", line 381, in run self.run_command("build") ~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) ~~~~~~~~~~~~~~~~^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() ~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-4o8g58dk\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) ~~~~~~~~~~~~~~~~~~~~^^^^^ File "", line 302, in build_extension File "D:\installed\Python313\Lib\subprocess.py", line 419, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['D:\\company_python\\krcTransfor\\venv\\Scripts\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop313.cs']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pythonnet Successfully built proxy-tools Failed to build pythonnet ERROR: Could not build wheels for pythonnet, which is required to install pyproject.toml-based projects [notice] A new release of pip is available: 23.2.1 -> 24.3.1 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS D:\company_python\krcTransfor> pip install cefpython3 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://mirrors.aliyun.com/pypi/simple/, https://pypi.mirrors.ustc.edu.cn/simple/ Collecting cefpython3 Downloading https://mirrors.ustc.edu.cn/pypi/packages/3b/d4/f313221a999e4d295cc8fcb15fc4ac9c98f6759e50735d6f6ce84fd3e98a/cefpython3-66.1-py2.py3-none-win_amd64.whl (69.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.0/69.0 MB 17.2 MB/s eta 0:00:00 Installing collected packages: cefpython3 Successfully installed cefpython3-66.1 [notice] A new release of pip is available: 23.2.1 -> 24.3.1 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS D:\company_python\krcTransfor> pip install pywebview Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://mirrors.aliyun.com/pypi/simple/, https://pypi.mirrors.ustc.edu.cn/simple/ Collecting pywebview Using cached https://mirrors.ustc.edu.cn/pypi/packages/b4/4f/fadb1eb352dbe8171dba983a7b8234af50e493b1a8aedb7fef902550019f/pywebview-5.3.2-py3-none-any.whl (452 kB) Collecting proxy-tools (from pywebview) Using cached proxy_tools-0.1.0-py3-none-any.whl Collecting bottle (from pywebview) Using cached https://mirrors.ustc.edu.cn/pypi/packages/7e/0a/a5260c758ff813acc6967344339aa7ba15f815575f4d49141685c4345d39/bottle-0.13.2-py2.py3-none-any.whl (104 kB) Collecting typing-extensions (from pywebview) Using cached https://mirrors.ustc.edu.cn/pypi/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl (37 kB) Collecting pythonnet (from pywebview) Using cached https://mirrors.ustc.edu.cn/pypi/packages/f7/18/be276f27f649199563a59561623c0c008e72bbcb6ecb8b2ca0404a741ae1/pythonnet-2.5.2.tar.gz (1.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pycparser (from pythonnet->pywebview) Using cached https://mirrors.ustc.edu.cn/pypi/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: pythonnet Building wheel for pythonnet (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pythonnet (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [132 lines of output] :468: SyntaxWarning: invalid escape sequence '\*' :533: SyntaxWarning: invalid escape sequence '\*' running bdist_wheel running build running build_ext 正在检查来自 https://www.nuget.org/api/v2/ 的更新。 当前正在运行 NuGet.exe 4.1.0。 正在将 NuGet.exe 更新到 6.12.1。 更新成功。 找不到指定版本的 msbuild:“14” MSBuild 自动检测: 使用来自 "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" 的 msbuild 版本 "4.0"。 C:\Users\ghc\AppData\Local\Temp\NuGetScratch\k5p335qk.jxh.nugetrestore.targets(131,23): error MSB4066: 无法识别元素 中的特性“Version”。 [C:\Users\ghc\AppData\Local\Temp\NuGetScratch\pcdech4l.nll.nugetinputs.targets] 警告: 读取 msbuild 项目信息时出错,请确保输入解决方案或项目文件有效。将跳过 NETCore 和 UAP 项目,仅还原 packages.config 文件。 Restoring NuGet package NUnit.ConsoleRunner.3.11.1. Restoring NuGet package NUnit.3.12.0. Restoring NuGet package UnmanagedExports.1.2.7. Restoring NuGet package System.ValueTuple.4.5.0. Adding package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Adding package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Adding package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Added package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Added package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' Added package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\packages' CACHE https://api.nuget.org/v3/vulnerabilities/index.json CACHE https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json CACHE https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json 使用的 NuGet 配置文件: C:\Users\ghc\AppData\Roaming\NuGet\NuGet.Config 使用的源: C:\Users\ghc\.nuget\packages\ https://api.nuget.org/v3/index.json 已安装: packages.config projects 的 4 包 Traceback (most recent call last): File "C:\Users\ghc\AppData\Local\Temp\pip-install-7esr09mh\pythonnet_49f66c03593e457fac8fb726a5689301\tools\geninterop\geninterop.py", line 29, in from pycparser import c_ast, c_parser ModuleNotFoundError: No module named 'pycparser' Traceback (most recent call last): File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in main() ~~~~^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ metadata_directory) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\build_meta.py", line 438, in build_wheel return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)]) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\build_meta.py", line 426, in _build return self._build_with_temp_dir( ~~~~~~~~~~~~~~~~~~~~~~~~~^ cmd, ^^^^ ...<3 lines>... self._arbitrary_args(config_settings), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\build_meta.py", line 407, in _build_with_temp_dir self.run_setup() ~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "", line 630, in File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\__init__.py", line 117, in setup return distutils.core.setup(**attrs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup return run_commands(dist) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands dist.run_commands() ~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands self.run_command(cmd) ~~~~~~~~~~~~~~~~^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "", line 612, in run File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\command\bdist_wheel.py", line 381, in run self.run_command("build") ~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) ~~~~~~~~~~~~~~~~^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() ~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-arp_5lyx\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) ~~~~~~~~~~~~~~~~~~~~^^^^^ File "", line 302, in build_extension File "D:\installed\Python313\Lib\subprocess.py", line 419, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['D:\\company_python\\krcTransfor\\venv\\Scripts\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop313.cs']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pythonnet Failed to build pythonnet ERROR: Could not build wheels for pythonnet, which is required to install pyproject.toml-based projects [notice] A new release of pip is available: 23.2.1 -> 24.3.1 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS D:\company_python\krcTransfor> pip install pythonnet Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://mirrors.aliyun.com/pypi/simple/, https://pypi.mirrors.ustc.edu.cn/simple/ Collecting pythonnet Using cached https://mirrors.ustc.edu.cn/pypi/packages/f7/18/be276f27f649199563a59561623c0c008e72bbcb6ecb8b2ca0404a741ae1/pythonnet-2.5.2.tar.gz (1.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pycparser (from pythonnet) Using cached https://mirrors.ustc.edu.cn/pypi/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: pythonnet Building wheel for pythonnet (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pythonnet (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [132 lines of output] :468: SyntaxWarning: invalid escape sequence '\*' :533: SyntaxWarning: invalid escape sequence '\*' running bdist_wheel running build running build_ext 正在检查来自 https://www.nuget.org/api/v2/ 的更新。 当前正在运行 NuGet.exe 4.1.0。 正在将 NuGet.exe 更新到 6.12.1。 更新成功。 找不到指定版本的 msbuild:“14” MSBuild 自动检测: 使用来自 "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" 的 msbuild 版本 "4.0"。 C:\Users\ghc\AppData\Local\Temp\NuGetScratch\pzgg3egd.aqw.nugetrestore.targets(131,23): error MSB4066: 无法识别元素 中的特性“Version”。 [C:\Users\ghc\AppData\Local\Temp\NuGetScratch\4qle3tcl.w24.nugetinputs.targets] 警告: 读取 msbuild 项目信息时出错,请确保输入解决方案或项目文件有效。将跳过 NETCore 和 UAP 项目,仅还原 packages.config 文件。 Restoring NuGet package NUnit.ConsoleRunner.3.11.1. Restoring NuGet package UnmanagedExports.1.2.7. Restoring NuGet package NUnit.3.12.0. Restoring NuGet package System.ValueTuple.4.5.0. Adding package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Adding package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Adding package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Added package 'NUnit.ConsoleRunner.3.11.1' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Added package 'System.ValueTuple.4.5.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' Added package 'NUnit.3.12.0' to folder 'C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\packages' CACHE https://api.nuget.org/v3/vulnerabilities/index.json CACHE https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json CACHE https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json 使用的 NuGet 配置文件: C:\Users\ghc\AppData\Roaming\NuGet\NuGet.Config 使用的源: C:\Users\ghc\.nuget\packages\ https://api.nuget.org/v3/index.json 已安装: packages.config projects 的 4 包 Traceback (most recent call last): File "C:\Users\ghc\AppData\Local\Temp\pip-install-fozgbz8h\pythonnet_5d58e88d2b8e4367b5f0681f3c7d2917\tools\geninterop\geninterop.py", line 29, in from pycparser import c_ast, c_parser ModuleNotFoundError: No module named 'pycparser' Traceback (most recent call last): File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in main() ~~~~^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\company_python\krcTransfor\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ metadata_directory) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\build_meta.py", line 438, in build_wheel return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)]) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\build_meta.py", line 426, in _build return self._build_with_temp_dir( ~~~~~~~~~~~~~~~~~~~~~~~~~^ cmd, ^^^^ ...<3 lines>... self._arbitrary_args(config_settings), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\build_meta.py", line 407, in _build_with_temp_dir self.run_setup() ~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "", line 630, in File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\__init__.py", line 117, in setup return distutils.core.setup(**attrs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup return run_commands(dist) File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands dist.run_commands() ~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands self.run_command(cmd) ~~~~~~~~~~~~~~~~^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "", line 612, in run File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\command\bdist_wheel.py", line 381, in run self.run_command("build") ~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) ~~~~~~~~~~~~~~~~^^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\dist.py", line 995, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() ~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\ghc\AppData\Local\Temp\pip-build-env-x5_19t88\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) ~~~~~~~~~~~~~~~~~~~~^^^^^ File "", line 302, in build_extension File "D:\installed\Python313\Lib\subprocess.py", line 419, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['D:\\company_python\\krcTransfor\\venv\\Scripts\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop313.cs']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pythonnet Failed to build pythonnet ERROR: Could not build wheels for pythonnet, which is required to install pyproject.toml-based projects
r0x0r commented 5 days ago

This is a pythonnet issue. Nothing I can do, until pythonnet supports 3.13 https://github.com/pythonnet/pythonnet/issues/2489