pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/houjiawen/sofware/admixfrog-master
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
╰─> [24 lines of output]
Traceback (most recent call last):
File "/home/zhangfengwei/software/anaconda3/envs/soft_pb/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/home/zhangfengwei/software/anaconda3/envs/soft_pb/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/zhangfengwei/software/anaconda3/envs/soft_pb/lib/python3.7/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 "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/poetry_dynamic_versioning/patch.py", line 27, in alt_poetry_create
cd=True,
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/poetry_dynamic_versioning/init.py", line 343, in _get_and_apply_version
version = _get_version(config)
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/poetry_dynamic_versioning/init.py", line 204, in _get_version
config["strict"],
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/dunamai/init.py", line 1722, in from_vcs
vcs, pattern, latest_tag, tag_dir, tag_branch, full_commit, strict
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/dunamai/init.py", line 1755, in _do_vcs_callback
return callback(**kwargs)
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/dunamai/init.py", line 940, in from_git
_detect_vcs(Vcs.Git)
File "/tmp/pip-build-env-fuibruzb/overlay/lib/python3.7/site-packages/dunamai/init.py", line 299, in _detect_vcs
"This does not appear to be a {} project".format(expected_vcs.value.title())
RuntimeError: This does not appear to be a Git project
[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.
pip list
Package Version
certifi 2022.6.15
Cython 0.29.33
numpy 1.15.4
pandas 1.0.5
pip 22.1.2
python-dateutil 2.8.2
pytz 2021.1
scipy 1.7.3
setuptools 52.0.0.post20210125
six 1.16.0
wheel 0.36.2
Anyone have any ideas what to do? Thanks in advance.
Related
I installed the openai package, but there was an error. I have no idea about this error. The Python version is 3.11.1, and the pip version is 22.3.1.
Collecting openai
Using cached openai-0.26.0.tar.gz (54 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "C:\Users\chase\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process main()
File "C:\Users\chase\AppData\Local\Programs\Python\Python311\Lib\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\chase\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chase\AppData\Local\Temp\pip-build-env-b5meduhi\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chase\AppData\Local\Temp\pip-build-env-b5meduhi\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\chase\AppData\Local\Temp\pip-build-env-b5meduhi\overlay\Lib\site-packages\setuptools\build_meta.py", line 485, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\chase\AppData\Local\Temp\pip-build-env-b5meduhi\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 13, in <module>
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 1031: illegal multibyte sequence
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I checked the pip and python versions. There seems to be no problem with the version.
I'm on ubuntu and tried to install tardis by using:
pip install tardis-sn
but the output i got was:
Defaulting to user installation because normal site-packages is not writeable
Collecting tardis-sn
Using cached tardis-sn-1.0.1.tar.gz (1.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-4mc4s8kc/tardis-sn_98dc7e578b0a49ada4013a6ad17ba118/setup.py", line 8, in <module>
import ah_bootstrap
File "/tmp/pip-install-4mc4s8kc/tardis-sn_98dc7e578b0a49ada4013a6ad17ba118/ah_bootstrap.py", line 530, in <module>
_main()
File "/tmp/pip-install-4mc4s8kc/tardis-sn_98dc7e578b0a49ada4013a6ad17ba118/ah_bootstrap.py", line 527, in _main
use_astropy_helpers(**kwargs)
File "/tmp/pip-install-4mc4s8kc/tardis-sn_98dc7e578b0a49ada4013a6ad17ba118/ah_bootstrap.py", line 198, in use_astropy_helpers
upgrade = _do_upgrade(dist, index_url)
File "/tmp/pip-install-4mc4s8kc/tardis-sn_98dc7e578b0a49ada4013a6ad17ba118/ah_bootstrap.py", line 285, in _do_upgrade
major, minor = (int(part) for part in dist.parsed_version[:2])
TypeError: 'Version' object is not subscriptable
[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.
Please help me get rid of this error
I have tried using
pip install tardis-sn --use-deprecated=legacy-resolver
but the output i got was still the same
I'm using Python 3.11. I'm trying to install pyqt6-tools using pip install pyqt6-tools command but the following error is occurred during installation:
C:\Users\Alex>pip install pyqt6-tools Collecting pyqt6-tools Using
cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB) Collecting click
Using cached click-8.1.3-py3-none-any.whl (96 kB) Collecting
pyqt6==6.1.0 Using cached PyQt6-6.1.0.tar.gz (946 kB) 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\Alex\AppData\Local\Programs\Python\Python311\Lib\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\Alex\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py",
line 351, in
main()
File "C:\Users\Alex\AppData\Local\Programs\Python\Python311\Lib\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\Alex\AppData\Local\Programs\Python\Python311\Lib\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\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\overlay\Lib\site-packages\sipbuild\api.py",
line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\overlay\Lib\site-packages\sipbuild\project.py",
line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\Alex\AppData\Local\Temp\pip-install-m5ab_lv3\pyqt6_b00490afe1cb4b13bf5a1a49acc55f24\project.py",
line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\overlay\Lib\site-packages\pyqtbuild\project.py",
line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\overlay\Lib\site-packages\sipbuild\project.py",
line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Alex\AppData\Local\Temp\pip-build-env-2mc4erbo\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.
How can I fix it?
It looks like this is might be a sort of bug, but really more that there isn't an installer yet for your version of python and OS.
You can either try installing an older version of Python, some version of 3.10 would probably do. Or you can try one of the workarounds detailed in the bug report that people have claimed to successfully have used in the github repo
The link directs you to instructions for PyQt5, but if you scroll down you will see people claiming that the same process works for PyQt6 and there are specific wheel files you can download.
I tried installing pycaw with help of pip. It raised this error. How can I solve this error or download pycaw manually?
...........................................................................................................................................................................................................................................
C:\Users\hp>pip install pycaw
Defaulting to user installation because normal site-packages is not writeable
Collecting pycaw
Using cached pycaw-20181226.tar.gz (5.7 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 2851, in get_entry_map
ep_map = self._ep_map
File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 2813, in __getattr__
raise AttributeError(attr)
AttributeError: _ep_map. Did you mean: '_dep_map'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\hp\AppData\Local\Temp\pip-install-q7kqui7h\pycaw_66d329da2c8e4069ab3ad04fde4ecaee\setup.py", line 5, in <module>
setup(name='pycaw',
File "C:\Program Files\Python310\lib\distutils\core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "C:\Program Files\Python310\lib\site-packages\setuptools\dist.py", line 453, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 641, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 2853, in get_entry_map
ep_map = self._ep_map = EntryPoint.parse_map(
File "C:\Program Files\Python310\lib\site-packages\pkg_resources\__init__.py", line 2538, in parse_map
raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
[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.
Here are some possible solutions as I can see for your problem:
Check that you have the Visual Studio C++ build tools installed:
https://visualstudio.microsoft.com/pl/visual-cpp-build-tools/
Maybe try add the following to the installation command: --use-deprecated=backtrack-on-build-failures for example: pip install pandas --use-deprecated=backtrack-on-build-failures
potentially you can install this development branch: pip install
https://github.com/AndreMiras/pycaw/archive/develop.zip
and after that, you can instal requirements
I am trying to install PyQt6, in my cmd, when I run pip install pyqt6 its just works fine but when I try to install pip install pyqt-tools its shows this error:
C:\Users\lenovo>pip install pyqt6-tools
Collecting pyqt6-tools
Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting pyqt6==6.1.0
Using cached PyQt6-6.1.0.tar.gz (946 kB)
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 "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\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:\Users\lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python310\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:\Users\lenovo\AppData\Local\Programs\Python\Python310\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\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\lenovo\AppData\Local\Temp\pip-install-4y93vt9z\pyqt6_e010daa9e104413b87d1d41abf25351d\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\lenovo\AppData\Local\Temp\pip-build-env-omd2bkc3\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'm on 22.0.3 pip version and 3.10 python version
It seems like Qt6 needs to be installed on the OS before python package:
brew install pyqt5
export PATH="/opt/homebrew/opt/qt5/bin:$PATH"
The path update is the key as the builder is not finding something that the qmake needs.