coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
538 stars 95 forks source link

Add arm64 cbc library to complement x86_64 #392

Open knutster opened 1 month ago

knutster commented 1 month ago

Describe the bug The arm64 (aarch64) server architecture is becoming more commonplace yet python-mip doesn't not work on these architectures.

To Reproduce Try to run a model on aarch64.

Expected behavior The model is parsed and run.

Error received

An error occurred while loading the CBC library:     
cannot load library '/usr/local/lib/python3.10/site-packages/mip/libraries/cbc-c-linux-x86-64.so': /usr/local/lib/python3.10/site-packages/mip/libraries/cbc-c-linux-x86-64.so: cannot open shared object file: No such file or directory.  
Additionally, ctypes.util.find_library() did not manage to locate a library called '/usr/local/lib/python3.10/site-packages/mip/libraries/cbc-c-linux-x86-64.so'

Desktop (please complete the following information):

knutster commented 1 month ago

Add pull request #391 to solve the above.