duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
6k stars 810 forks source link

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

Open suprajasutti opened 6 months ago

suprajasutti commented 6 months ago

Please mention the following:

CapyBarr1 commented 4 months ago

same issue here

raghavtalwar commented 4 months ago

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 commented 2 months ago

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.