pypa/wheel

How to ERRADICATE the wheel in PIP

Closed this issue · 4 comments

Almost everytime I try to install something on termux with pip, it just throws an error when getting the requirements to build the wheel, ALMOST EVERYTIME, so I need an argument to disable it or ERRADICATE IT FROM MY PIP INSTALATION, thanks

More of error message? The error message “failed to get requirements to build the wheel” has nothing to do with the wheel package. It means you can’t get wherever the package needs to build. A build package in Python is a wheel.

More of error message? The error message “failed to get requirements to build the wheel” has nothing to do with the wheel package. It means you can’t get wherever the package needs to build. A build package in Python is a wheel.

It's not actually the wheel, but it doesn't work most of the times, and with some packages I can install without the wheel and it works, but, here's the error message if it helps on something, if not, is there a way to disable or skip the building?

`pip3 install openglcontext --no-binary :all:
Collecting openglcontext
Using cached OpenGLContext-2.3.0b1.zip (1.0 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
╰─> [22 lines of output]
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-0020nui5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-0020nui5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-0020nui5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-0020nui5/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "", line 10
except ImportError, err:
^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
[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.`

This is with verbose argument:

pip3 install openglcontext --no-binary :all: --verbose
Using pip 24.0 from /data/data/com.termux/files/usr/lib/python3.11/site-packages/pip (python 3.11)
Collecting openglcontext
Using cached OpenGLContext-2.3.0b1.zip (1.0 MB)
Running command pip subprocess to install build dependencies
Collecting setuptools>=40.8.0
Using cached setuptools-70.1.0-py3-none-any.whl
Installing collected packages: setuptools
Successfully installed setuptools-70.1.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-ireofv5a/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-ireofv5a/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-ireofv5a/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-ireofv5a/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "", line 10
except ImportError, err:
^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
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.
full command: /data/data/com.termux/files/usr/bin/python3.11 /data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /data/data/com.termux/files/usr/tmp/tmp8nmw2oha
cwd: /data/data/com.termux/files/usr/tmp/pip-install-2ncmfogk/openglcontext_16e381227ee74f28b4e75b497ec330f8
Getting requirements to build wheel ... error
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.

That’s Python 2 syntax. You are trying to build a package that was never updated to Python 3. “pip install” makes a wheel then installs it. If the package fails, you’ll see a message mentioning issues making the wheel, but that’s just because that’s how the install process works.

—no-build-isolation will change the error message, but it will likely still be broken. The package you are trying to install was abandoned 10 years ago.

That’s Python 2 syntax. You are trying to build a package that was never updated to Python 3. “pip install” makes a wheel then installs it. If the package fails, you’ll see a message mentioning issues making the wheel, but that’s just because that’s how the install process works.

—no-build-isolation will change the error message, but it will likely still be broken. The package you are trying to install was abandoned 10 years ago.

I see, thanks, i'm trying to make PyOpenGL run on termux, but everytime I import a library other than OpenGL, it doesn't work, but anyway, thanks for explaining me that, I would probably try again to install for more 6 hours after giving up, now I will try to make the imports work instead of installing another package