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 due to failed building wheel for rectangle-packer #265

Open
astralcai opened this issue Oct 10, 2023 · 5 comments
Open

Comments

@astralcai
Copy link

Description
Fail to install dwave-ocean-sdk through pip.

ERROR: Failed building wheel for rectangle-packer
Running setup.py clean for rectangle-packer
Failed to build rectangle-packer
ERROR: Could not build wheels for rectangle-packer, which is required to install pyproject.toml-based projects

To Reproduce
Run pip install dwave-ocean-sdk

Expected behavior
Successfully installs

Environment:

  • OS: macOS Sonoma 14.0 (23A344)
  • Python version: 3.11.5
  • Ocean SDK version: 6.5.0

Additional context
This seems to be an issue with the new macOS, because when I tried to install it on a different machine it works.

@arcondello
Copy link
Member

arcondello commented Oct 10, 2023

It's an interaction between Cython3, setuptools, and rectagle-packer. Specifically rectangle-packer does not ship ARM wheels for OSX, which means that pip will try to do an sdist install, which then runs into Penlect/rectangle-packer#21 and then cython/cython#5568.

Because we don't control that package, we're a bit beholden to the community fixing it. That said, if this persists long enough we'll look at forking rectangle-packer or similar.

There are a few open issues on the topic:
Penlect/rectangle-packer#22
Penlect/rectangle-packer#21
cython/cython#5568
pypa/cibuildwheel#1612 edit: nope, not relevant other than pointing out how to unpin build versions.

@arcondello
Copy link
Member

Opened another PR (Penlect/rectangle-packer#23) against rectangle-packer to see if that fixes it.

@astralcai
Copy link
Author

It's an interaction between Cython3, setuptools, and rectagle-packer. Specifically rectangle-packer does not ship ARM wheels for OSX, which means that pip will try to do an sdist install, which then runs into Penlect/rectangle-packer#21 and then cython/cython#5568.

Because we don't control that package, we're a bit beholden to the community fixing it. That said, if this persists long enough we'll look at forking rectangle-packer or similar.

There are a few open issues on the topic: Penlect/rectangle-packer#22 Penlect/rectangle-packer#21 cython/cython#5568 pypa/cibuildwheel#1612

Thank you! Meanwhile, would using a different version of Python fix anything?

@arcondello
Copy link
Member

Unfortunately I think any ARM osx system will run into this issue, though I don't myself have access to a mac so I haven't been able to exhaustively check.

@astralcai
Copy link
Author

@arcondello I just tried again and the issue seems to have been resolved.

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