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

CNApy&CPLEX error under Mac OS X #491

Open
fcatrambone opened this issue Jan 17, 2024 · 3 comments
Open

CNApy&CPLEX error under Mac OS X #491

fcatrambone opened this issue Jan 17, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@fcatrambone
Copy link

Hello!

I'm trying to install CNApy on an Arm Mac (M1) using miniConda (yes, the Arm version). However, it appears that the cplex package for arm64 does not exist in the repos. In fact, i get this error message:

LibMambaUnsatisfiableError: Encountered problems while solving:

  • nothing provides cplex needed by cnapy-1.1.9-py_0

Could not solve for environment specs
The following package could not be installed
└─ cnapy 1.1.9** is not installable because it requires
└─ cplex, which does not exist (perhaps a missing channel).

I have tried to install the regular cplex OSX64 package using conda install directly from the compressed file, but i still get the same error.

Anyone knows how to solve the issue? Thanks!

@fcatrambone fcatrambone added the enhancement New feature or request label Jan 17, 2024
@Paulocracy
Copy link
Member

Hello and thank you for submitting this issue! We had a user with a similar issue, it could only be solved by using the x86 version of Anaconda, and then using it with CNApy instead of Anaconda's ARM version. The problem is that, while CPLEX itself has its own Mac ARM version, CPLEX's Python binding somehow does not yet have an ARM version :-| We likely have to wait for the next (or one of the next) CPLEX versions to resolve this problem in a satisfying way, without the performance drop due to using Rosetta.

@fcatrambone
Copy link
Author

Hello and thank you for submitting this issue! We had a user with a similar issue, it could only be solved by using the x86 version of Anaconda, and then using it with CNApy instead of Anaconda's ARM version. The problem is that, while CPLEX itself has its own Mac ARM version, CPLEX's Python binding somehow does not yet have an ARM version :-| We likely have to wait for the next (or one of the next) CPLEX versions to resolve this problem in a satisfying way, without the performance drop due to using Rosetta.

Thanks, Paulo! It worked perfectly. Hopefully they will fix the issue

@Paulocracy Paulocracy pinned this issue Feb 1, 2024
@Paulocracy Paulocracy changed the title failing to install using miniconda on OSX CNApy&CPLEX error under Mac OS X Mar 1, 2024
@Paulocracy
Copy link
Member

@fcatrambone Hello once again :D We noticed that IBM pushed MacOS ARM PyPI wheels for the cplex package. Hence, with our switch to PyPI and the resulting new install procedures (for the latest version 1.2.2, see https://github.com/cnapy-org/CNApy?tab=readme-ov-file#installation-options), it might now be possible to directly use ARM-based python on MacOS. We're just lacking an Apple machine to confirm this :3

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

No branches or pull requests

2 participants