Skip to content

Installation issue issue

I ran into an issue installing associated with my Domain review (#76 (closed)).

I'm on a mac. I use conda for managing environments and typically use a workflow as described below to use poetry-managed code.

I understand that the install passes it's pipeline... so perhaps this is a mac thing? I tested removing the lock file and having all the dependencies be re-resolved... same error.

git clone https://code.usgs.gov/ghsc/lhp/FlowAlert.git 
cd FlowAlert
conda create -n flow-alert
conda activate flow-alert
conda install pip
pip install poetry
poetry install

yields

  • Installing numpy (1.24.4): Failed

  ChefBuildError

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

  at /opt/anaconda3/envs/flow-alert/lib/python3.12/site-packages/poetry/installation/chef.py:147 in _prepare
      143│
      144│                 error = ChefBuildError("\n\n".join(message_parts))
      145│
      146│             if error is not None:
    → 147│                 raise error from None
      148│
      149│             return path
      150│
      151│     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 numpy (1.24.4) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "numpy (==1.24.4)"'.