Skip to content
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

Failed Installation using pip: failed to get requirements to build wheel #13

Open
jdgiles21 opened this issue Feb 20, 2024 · 0 comments

Comments

@jdgiles21
Copy link

When i try to install the PsvWave package using pip, directly from github, or through the setup.py script in the download I get a message that says the installation has failed due to the process of getting requirements to build wheel failing. Is this a new issue or is there an easy fix that I may be missing? Below is an example to the code i run and the output that is provided:

pip install psvWave
Collecting psvwave
Using cached psvWave-1.0.tar.gz (2.2 MB)
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
╰─> [31 lines of output]
/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-install-njt3ac78/psvwave_268277673d7b4cee95e840bbba70010a/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-build-env-bcwgkssk/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-build-env-bcwgkssk/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-build-env-bcwgkssk/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-build-env-bcwgkssk/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 127, in
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-install-njt3ac78/psvwave_268277673d7b4cee95e840bbba70010a/versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-install-njt3ac78/psvwave_268277673d7b4cee95e840bbba70010a/versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/m4/5whf6lrs3hdgj6qq1ydnyshc0000gr/T/pip-install-njt3ac78/psvwave_268277673d7b4cee95e840bbba70010a/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant