-
Notifications
You must be signed in to change notification settings - Fork 88
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
Name 'cbclib' is not defined #335
Comments
I did it in a different computer, where I have version 1.14.0 and Python 3.10.2. I do not know if the reason is related to MIP version, Python version, or something else. |
The error |
I verified that the problem exists also in version 1.14.0. |
I guess this is caused by the fact that python-mip 1.15 and CBC 2.10.8 are not compatible. While python-mip 1.15 requires libCbc.dylib to have Osi_getIntegerTolerance, Cbc 2.10.8 and other recent releases doesn't seem to include this in the interface. However, in the master branch, Osi_getIntegerTolerance is included in the interface. I guess that we have to use Cbc@master due to compatibility constraints for now. |
I think there are two slightly distinct things here:
The cbc module actually goes to some work to check for such an error and set a It seems like this means the error handling here ends up the worst of both worlds and either all of the code in this module other than the initial loading should exist in a |
I still have the same issue, which prevents me from using MIP on Windows 11. Is it possible, at least, to add some work-around to the installation docs? |
hey, has anyone found a workaround for this issue? 🙏 thaaanks |
hey, I managed to find a workaround on a M1 pro MacBook:
done :), probably is not efficient but, works |
Python-MIP’s latest release candidate version (1.16rc0) includes binaries compatible with M1/M2/M3 processors. To install it, you can use pip:
|
For me it's not working. I have a M2 and I ran Reason: did not manage to locate a library called '.../env/lib/python3.12/site-packages/mip/libraries/cbc-c-darwin-arm64.dylib' |
The fix |
I too updated mip to 1.16rc0, and I still get the same error: "NameError: name 'cbclib' is not defined". I am on Windows 11 on an HP machine. |
Describe the bug
I cannot solve even a very simple program, because the system claims that
cbclib
is not defined:To Reproduce
Expected behavior
No error.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: