automl / random_forest_run

Other
35 stars 24 forks source link

Unable to install pyrfr using poetry #77

Open scholarazwa opened 1 year ago

scholarazwa commented 1 year ago

Hi. I'm trying to install auto-sklearn on an Apple silicon mac and I'm stuck at installing pyrfr. The error message is as follows:

Using version ^0.9.0 for pyrfr

Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 1 install, 0 updates, 0 removals

  • Installing pyrfr (0.9.0): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  [<setuptools.extension.Extension('pyrfr._regression') at 0x1038ca070>, <setuptools.extension.Extension('pyrfr._util') at 0x1038ca190>]
  error: command 'swig' failed: No such file or directory

  at ~/Library/Application Support/pypoetry/venv/lib/python3.11/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 pyrfr (0.9.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pyrfr (==0.9.0)"'.

Any help?

JosuaCarl commented 5 months ago

Got the same error. For me, the swig installation was missing, which was reported when trying to install it with pipx. Running pip install swig and pip install --upgrade --force-reinstall pyrfr fixed my installation error.

Update: poetry install was also running smoothly after installing swigfirst.