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

This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyjq #960

Open
suprajasutti opened this issue May 9, 2024 · 3 comments

Comments

@suprajasutti
Copy link

suprajasutti commented May 9, 2024

Please mention the following:

  • What command was run? pip install -r requirements.txt
  • Are you working out of a virtualenv environment, Docker, or something else?virtualenv
    While running this command, I am getting failed building wheel for pyjq
    image
@CapyBarr1
Copy link

same issue here

@raghavtalwar
Copy link

Hi @suprajasutti, I've resolved this error by following these steps:

  1. Install necessary packages:
    sudo apt-get install autoconf automake libtool
  2. Install pyjq
    pip3 install pyjq - This installs pyjq version 2.6.0 without any issues.
  3. Update requirements.txt:
    Replace pyjq version with pyjq==2.6.0
  4. Reinstall dependencies:
    pip3 install -r requirements.txt

Please ensure you execute these commands within the virtual environment created for cloudmapper.

Let me know if this fixes your error.

@theazz
Copy link

theazz commented Sep 13, 2024

Same error on macos m3.

Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
    <string>:34: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
    !!

            ********************************************************************************
            Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

            By 2024-Nov-15, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
            ********************************************************************************

    !!
    Traceback (most recent call last):
      File "/Users/az/Slmn/tmp/cloudmapper/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
        main()
      File "/Users/az/Slmn/tmp/cloudmapper/venv/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 "/Users/az/Slmn/tmp/cloudmapper/venv/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/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-build-env-q8gw5y53/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
        return self._get_build_requires(config_settings, requirements=[])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-build-env-q8gw5y53/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
        self.run_setup()
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-build-env-q8gw5y53/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
        super().run_setup(setup_script=setup_script)
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-build-env-q8gw5y53/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
        exec(code, locals())
      File "<string>", line 54, in <module>
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-install-_57vroka/matplotlib_d174e27a7cc2409ba85bb712e92009cb/versioneer.py", line 1410, in get_version
        return get_versions()["version"]
               ^^^^^^^^^^^^^^
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-install-_57vroka/matplotlib_d174e27a7cc2409ba85bb712e92009cb/versioneer.py", line 1344, in get_versions
        cfg = get_config_from_root(root)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/private/var/folders/zz/1dl16zh96ds00ydgls8s08k80000gp/T/pip-install-_57vroka/matplotlib_d174e27a7cc2409ba85bb712e92009cb/versioneer.py", line 401, 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.

I followed the installation guide exactly as it was written on reame.md.

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

4 participants