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

Incorrect CBC solver build used with macOS on ARM 64 #765

Open
6 of 16 tasks
peterjc opened this issue Aug 9, 2024 · 0 comments
Open
6 of 16 tasks

Incorrect CBC solver build used with macOS on ARM 64 #765

peterjc opened this issue Aug 9, 2024 · 0 comments

Comments

@peterjc
Copy link
Contributor

peterjc commented Aug 9, 2024

Details for the issue

I'm trying to use snakemake on macOS on the Apple ARM M3 chip, installed via conda. It failed snakemake/snakemake#3007 with the following error from pulp:

OSError: [Errno 86] Bad CPU type in executable: '/Users/peterjc/miniforge3/envs/snakemake-testing/lib/python3.12/site-packages/pulp/solverdir/cbc/osx/64/cbc'

I've looked at the conda-forge packaging of pulp and this currently uses the cbc binaries you provide conda-forge/pulp-feedstock#40 rather than compiling them or handling this as an explicit external dependency. See also #740 for a similar discussion about packaging. Currently you only have x64 binaries for macOS:

https://github.com/coin-or/pulp/tree/v2.1/pulp/solverdir/cbc/osx
https://github.com/coin-or/pulp/tree/master/pulp/solverdir/cbc/osx

This seems to be the Apple equivalent of #672 and #685 for Linux aarch64, which added Linux ARM binaries and will be a welcome addition to the next release. Can the same be done for macOS ARM too please?

Useful extra information

The info below often helps, please fill it out if you're able to. :)

What operating system are you using?

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: Sonoma 14.6 )
  • Other: ___

I'm using python version:

  • 3.7
  • 3.8
  • 3.9
  • 3.10
  • 3.11
  • 3.12
  • Other: ___

I installed PuLP via:

Did you also

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

1 participant