-
Notifications
You must be signed in to change notification settings - Fork 0
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
en/latest/windows #8
Comments
我在windows环境下,安装poetry依赖的时候遇到错误:(貌似是这个包的问题pygobject (==3.48.2))
ChefBuildError Backend subprocess exited when trying to invoke build_wheel
..\meson.build:1:0: ERROR: Compiler cl cannot compile programs. A full log can be found at C:\Users\renyc-a\AppData\Local\Temp\tmpssz914ep\pygobject-3.48.2.mesonpy-z64o_u0p\meson-logs\meson-log.txt at ~\pipx\venvs\poetry\Lib\site-packages\poetry\installation\chef.py:164 in _prepare Note: This error originates from the build backend, and is likely not a problem with poetry but with pygobject (3.48.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pygobject (==3.48.2)"'. 我尝试单独去安装pygobject包,但是一直安装失败: × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
Hi @xdcsGod, Compiling on Windows is always more tricky that it's should have been. You're trying to compile everything directly from a Chef script? I recommend you use GVSBuild (https://github.com/wingtk/gvsbuild), as it provide all fixes required to build on Windows. |
I tried to package on a Windows 11 x64 system, but during the installation process, it prompted me that pygoobject import was unsuccessful. I followed the steps in the documentation and reinstalled PyGOobject and pycairo using the GVSBuild wheel. The installation was successful, and the Poetry Run Poe package prompted me with No module named 'pyinstaller_version file'. The following is the error message poetry show Package operations: 1 install, 1 update, 0 removals
ChefBuildError Backend subprocess exited when trying to invoke build_wheel
..\meson.build:22:20: ERROR: Python dependency not found A full log can be found at C:\Users\admin\AppData\Local\Temp\tmpkrozbxqd\pygobject-3.48.2.mesonpy-3o4jyuq4\meson-logs\meson-log.txt at ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\poetry\installation\chef.py:164 in _prepare Note: This error originates from the build backend, and is likely not a problem with poetry but with pygobject (3.48.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pygobject (==3.48.2)"'. (venv) PS D:\project-python\gaphor> poetry run pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) [notice] A new release of pip is available: 24.0 -> 24.1 [notice] A new release of pip is available: 24.0 -> 24.1
|
Gaphor on Windows - Gaphor documentation
https://docs.gaphor.org/en/latest/windows.html
The text was updated successfully, but these errors were encountered: