I ran pip install -r requirements.txt accordingly to their instruction. It returned an error below. I am using a Macbook and I'm not sure if it supports the Macbook.
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 585, in setup
self.apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-install-ihp6lzb3/pyqt5_2d7c8cf990a14fda93d8e2d2a9918655/project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I have no idea of how this code functioned so did nothing.
Related
I want to download pyqt5-tools to download and use QtEditor using this command on windows
pip install pyqt5-tools
But when I put in the command in cmd I get this message
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-install-lszibq72\pyqt5_ab212e2bd45f4304b01a003f265edfc5\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
As you see everything goes fine untill the preparing metadata part. I heard that it won't work on versions above 3.9 but is there a workaround for that?
I'm trying to install pyqt5-tools, but I get this error:
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\USER\AppData\Local\Temp\pip-install-1b7x6air\pyqt5_fd0c08501ddd4417a50eaaa8c052ebbf\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\USER\AppData\Local\Temp\pip-build-env-ep3u6c42\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Someone know how to resolve this? I have already installed pyqt5, and I have tried basically everything, but it still doesn't work.
You may be using version 3.10 of the Python language. Pyqt5-tools works best in python 3.9. You can review "https://pypi.org/project/pyqt5-tools/" here.
I'm installing this package https://github.com/fuzailpalnak/kaizen, with this command:
pip3 install kaizen-mapping
but I'm getting this error. I've looked up online from many sites have a similar error, which seems to suggest that the root of the error is likely in the python version or in pip. Anyone knows how I can resolve this issue? Thanks!
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AssertionError:
Running from numpy source directory.
<string>:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AssertionError:
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
Traceback (most recent call last):
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 59, in process_pyx
from Cython.Compiler.Version import version as cython_version
ModuleNotFoundError: No module named 'Cython'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 235, in <module>
main()
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 231, in main
find_process_files(root_dir)
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 222, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 188, in process
processor_function(fromfile, tofile)
File "/private/var/folders/3g/6bwtmr4x4m3dvzm2dwby16q40000gn/T/pip-install-m94k6wqb/numpy/tools/cythonize.py", line 64, in process_pyx
raise OSError('Cython needs to be installed in Python as a module')
OSError: Cython needs to be installed in Python as a module
Cythonizing sources
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/opt/homebrew/Cellar/python#3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "/opt/homebrew/Cellar/python#3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "/opt/homebrew/Cellar/python#3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(code, locals())
File "<string>", line 499, in <module>
File "<string>", line 479, in setup_package
File "<string>", line 274, in generate_cython
RuntimeError: Running cythonize failed!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
P.S. Another thing I tried was installing it with this as I saw it from another Stackoverflow site that this is how they resolved it but the same error:
pip3 install kaizen-mapping --use-deprecated=legacy-resolver
You has not installed Cython -- This is clearly written in there:
Traceback (most recent call last):
...
OSError: Cython needs to be installed in Python as a module
You can try pip install cython and try it again.
New to Python. Attempting to install PyQt6. This is my error. Any suggestions?
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "c:\python37-32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\python37-32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\python37-32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\python37-32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "project.py", line 67, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\AFEANA~1.BRC\AppData\Local\Temp\pip-build-env-t089xght\overlay\Lib\site-packages\pyqtbuild\builder.py", line 68, in apply_user_defaults
"specify a working qmake or add it to PATH")
sipbuild.pyproject.PyProjectOptionException
[end of output]
I had similar issues with my home system and got it figured out. The work system is using PyCharm. On my home system I needed to go into the PyCharm folder and run in venv. I am unable to do that here at work. So I am giving up and just sticking to PyQt5 here.
Thanks.
What version of python did you install? Because i had the same problem and for me the update to a recent version of python (3.9 to 3.10) have solved the problem
Hi im trying to install PyQt6 (with pip) in a venv with Python 3.9.4 x86 but im keep getting this error message
Collecting pyqt6
Using cached PyQt6-6.2.3.tar.gz (1.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "project.py", line 67, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I have no problem installing it in the same venv with a 3.9.4 x64 version. Is possible that PyQt6 is not compatible with x86 pyhton's versions? Is there any solution?
I had this problem when I wanted to install PyQt5-tools.I used Python 3.10.2 and then I removed it and install Python 3.9.10 ( without upgrading pip from 21.2.4 to 22.0.3) and problem solved.