Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install pyrfr using poetry #77

Open
scholarazwa opened this issue Jun 14, 2023 · 1 comment
Open

Unable to install pyrfr using poetry #77

scholarazwa opened this issue Jun 14, 2023 · 1 comment

Comments

@scholarazwa
Copy link

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
Copy link

JosuaCarl commented Apr 10, 2024

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 swig first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants