Reputation: 1
Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
I'm getting this error while importing the pygobject
module. I don't know how to solve the problem.
Any one has any idea how to solve it?
Thanks in advance
I tried pip install PyGObject pip install -m PyGObject still getting the error in downloading the file
Upvotes: 0
Views: 1321
Reputation: 1
Try this, here are my troubleshooting steps
Ensure that Python is properly installed, write this on your Windows command prompt python --version Expected: Python 3.12.4 or something similar Ensure that pip is installed properly pip --version Expected: pip 24.2 Ensure the latest version of Python build dependencies are installed in your machine: pip install --upgrade pip setuptools wheel scikit-build-core Expected: Successfully installed ....."scikit-build-core-0.10.6, setuptools-75.0.0, wheel-0.44.0" Check for architecture issues python -c "import struct; print(struct.calcsize('P')*8)" Expected: if your machine is 64-bit, the expected output should also be 64-bit Create a Virtual environment in your machine so it doesnt get tangled with your main machine DM if you need help with this step Check CMake installation is correct To check, type this in your Windows command prompt cmake --version Expected: cmake version 3.29.8 After getting the basics downpacked, if still facing issues with CMake Errors like I gotten them as well
Try the following advanced troubleshooting steps
Ensure the required build tools are installed properly Download Microsoft Visual Studio Community 2022 (FREE VERSION) i.e. 17.11.3 Select the right components because the problems we are facing is that
Open Developer Command Prompt in your Windows START menu
Run the following command: nmake /? Expected: Microsoft (R) Program Maintenance Utility Version 14.41.34120.0 Copyright (C) Microsoft Corporation. All rights reserved.
Usage: NMAKE @commandfile NMAKE [options] [/f makefile] [/x stderrfile] [macrodefs] [targets]
Options: .....
SUCCESS!!! You should see that the above checker, suggest that NMake is properly installed in your machine
You can continue and that should solve your issue
Let me know how you get on
Upvotes: -3