mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

[Bug] Installation requires unused chumpy library which is not toml (pep 517/621) compliant, please remove chumpy

Open spacether opened this issue 5 months ago • 0 comments
trafficstars

Prerequisite

  • [x] I have searched Issues and Discussions but cannot get the expected help.
  • [x] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).

Related Issue: https://github.com/open-mmlab/mmpose/issues/2898

Environment

[Bug] Installation requires unused chumpy library which is non pep 518/pep 621 compliant Please remove chumpy from the requirements A PR was submitted with this fix and was not approved. This breaks installation of this package when poetry installing it. You can see this issue in the chumpy repo.

Reproduces the problem - code sample

n/a

Reproduces the problem - command or script

  • Add this package to a poetry installation
  • Watch it fail
poetry add mmpose

Watch adding it fail because it hits the chumpy issue

Reproduces the problem - error message

poetry add mmpose
...  
  - Installing cachecontrol (0.14.2)
  - Installing chumpy (0.70): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel
  
  Traceback (most recent call last):
    File "<string>", line 9, in <module>
  ModuleNotFoundError: No module named 'pip'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Users/justinblack/Library/Application Support/pypoetry/venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/Users/justinblack/Library/Application Support/pypoetry/venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/justinblack/Library/Application Support/pypoetry/venv/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "/var/folders/62/2nsr9jxx7vx5ccfq1lw1gb380000gn/T/tmpgk_fwx19/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/var/folders/62/2nsr9jxx7vx5ccfq1lw1gb380000gn/T/tmpgk_fwx19/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
      self.run_setup()
    File "/var/folders/62/2nsr9jxx7vx5ccfq1lw1gb380000gn/T/tmpgk_fwx19/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/var/folders/62/2nsr9jxx7vx5ccfq1lw1gb380000gn/T/tmpgk_fwx19/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
      exec(code, locals())
    File "<string>", line 11, in <module>
  ModuleNotFoundError: No module named 'pip'
  

  at ~/Library/Application Support/pypoetry/venv/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with chumpy (0.70) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "chumpy (==0.70)"'.

Additional information

No response

spacether avatar Jun 02 '25 17:06 spacether