google / python-fire

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Other
26.86k stars 1.44k forks source link

Can't install fire with poetry inside of docker #445

Open yingshaoxo opened 1 year ago

yingshaoxo commented 1 year ago
  ChefBuildError

  Backend 'setuptools.build_meta:__legacy__' is not available.

  at /usr/local/lib/python3.10/site-packages/poetry/installation/chef.py:152 in _prepare
      148│ 
      149│                 error = ChefBuildError("\n\n".join(message_parts))
      150│ 
      151│             if error is not None:
    → 152│                 raise error from None
      153│ 
      154│             return path
      155│ 
      156│     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 fire (0.5.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "fire (==0.5.0)"'.

1 error occurred:
        * Status: The command '/bin/sh -c poetry install' returned a non-zero code: 1, Code: 1
yktakaha4 commented 9 months ago

I also encountered the same problem, but it was resolved by changing the Python version to 3.9, which is supported by fire 0.5.0.