dwavesystems / dwave-ocean-sdk

Installer for D-Wave's Ocean tools
https://docs.ocean.dwavesys.com
Apache License 2.0
416 stars 155 forks source link

Unable to install due to failed building wheel for rectangle-packer #265

Open astralcai opened 1 year ago

astralcai commented 1 year ago

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:

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 commented 1 year ago

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 https://github.com/Penlect/rectangle-packer/pull/21 and then https://github.com/cython/cython/issues/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: https://github.com/Penlect/rectangle-packer/issues/22 https://github.com/Penlect/rectangle-packer/pull/21 https://github.com/cython/cython/issues/5568 ~https://github.com/pypa/cibuildwheel/issues/1612~ edit: nope, not relevant other than pointing out how to unpin build versions.

arcondello commented 1 year ago

Opened another PR (https://github.com/Penlect/rectangle-packer/pull/23) against rectangle-packer to see if that fixes it.

astralcai commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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